u-boot/drivers/core
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
..
device-remove.c Revert "dm: Export device_remove_children / device_unbind_children" 2015-11-19 20:27:51 -07:00
device.c dm: core: Add dev_get_addr_ptr() to return a pointer to the reg address 2016-04-25 07:30:16 +02:00
devres.c devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00
dump.c dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00
Kconfig spl: dm: Add SPL_DM_SEQ_ALIAS config option 2016-01-13 13:20:02 +01:00
lists.c dm: core: Display the error number when driver binding fails 2016-01-24 12:07:18 +08:00
Makefile dm: core: Add SPL Kconfig for REGMAP and SYSCON 2015-12-01 08:07:22 -07:00
regmap.c dm: Add support for register maps (regmap) 2015-07-21 17:39:23 -06:00
root.c dm: core: Add option to configure an offset for the address translation 2016-01-12 10:19:09 -07:00
simple-bus.c dm: core: make simple-bus compatible to simple-mfd 2016-03-14 15:34:50 -06:00
syscon-uclass.c syscon: Avoid returning a device on failure 2016-03-17 10:27:24 +08:00
uclass.c dm: core: Add uclass_first_device_err() to return a valid device 2016-03-14 15:34:50 -06:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00