u-boot/include/dm
Stefan Roese 28027521be dm: core: Add dev_get_addr_ptr() to return a pointer to the reg address
On some platforms (e.g. x86), the return value of dev_get_addr() can't
be assigned to a pointer type variable directly. As there might be a
difference between the size of fdt_addr_t and the pointer type. On
x86 for example, "fdt_addr_t" is 64bit but "void *" only 32bit. So
assigning the register base directly in dev_get_addr() results in this
compilation warning:
  warning: cast to pointer from integer of different size

This patch introduces the new function dev_get_addr_ptr() that
returns a pointer to the 'reg' address that can be used by drivers
in this case.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2016-04-25 07:30:16 +02:00
..
platform_data serial: add BCM283x mini UART driver 2016-03-27 09:12:52 -04:00
device-internal.h dm: Remove device_probe_child() 2016-01-28 21:01:23 -07:00
device.h dm: core: Add dev_get_addr_ptr() to return a pointer to the reg address 2016-04-25 07:30:16 +02:00
lists.h dm: core: allow device_bind() to not return a device pointer 2015-08-31 07:57:29 -06:00
pinctrl.h dm: pinctrl: Add a way for a GPIO driver to obtain a pin function 2016-01-21 20:42:35 -07:00
platdata.h dm: Add platform data advice and admonishment 2015-07-21 17:39:30 -06:00
root.h dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
test.h video: sandbox: Allow selection of font size and console name 2016-01-30 10:57:30 +01:00
uclass-id.h drivers: Add SPMI bus uclass 2016-04-01 17:18:12 -04:00
uclass-internal.h dm: core: Export uclass_find_device_by_of_offset() 2016-01-21 20:42:35 -07:00
uclass.h dm: core: Add uclass_first_device_err() to return a valid device 2016-03-14 15:34:50 -06:00
util.h devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00