rv1126-uboot/drivers/core
Simon Glass 1abc22cc20 UPSTREAM: dm: core: Correct address cast in dev_read_addr_ptr()
This currently causes a warning in sandbox and will not do the right
thing:

drivers/core/read.c: In function ‘dev_read_addr_ptr’:
drivers/core/read.c:64:44: warning: cast to pointer from integer of
	different size [-Wint-to-pointer-cast]
  return (addr == FDT_ADDR_T_NONE) ? NULL : (void *)addr;

Use map_sysmem() which is the correct way to convert an address to a
pointer.

Fixes: c131c8bca8 (dm: core: add dev_read_addr_ptr())
Change-Id: Ic8ef1cb185d98d84dc6cf35a7001dcdcb4caa849
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 8ccc2db6e84244e5cb57885dc9dfd7e752071b98)
2018-01-17 15:27:28 +08:00
..
Kconfig UPSTREAM: dm: replace dm_dbg() with pr_debug() 2018-01-17 15:27:28 +08:00
Makefile UPSTREAM: dm: replace dm_dbg() with pr_debug() 2018-01-17 15:27:28 +08:00
device-remove.c
device.c UPSTREAM: dm: core: Round up size when allocating so that it is cache line aligned 2018-01-17 15:27:28 +08:00
devres.c
dump.c UPSTREAM: dm: core: Show driver name with 'dm tree' 2018-01-16 18:13:59 +08:00
fdtaddr.c
lists.c UPSTREAM: dm: replace dm_dbg() with pr_debug() 2018-01-17 15:27:28 +08:00
of_access.c dm: core: add ofnode_count_phandle_with_args() 2017-07-28 23:34:08 +02:00
of_addr.c
of_extra.c
ofnode.c UPSTREAM: dm: ofnode: query correct property in livetree ofnode_get_addr_size 2018-01-17 15:27:28 +08:00
read.c UPSTREAM: dm: core: Correct address cast in dev_read_addr_ptr() 2018-01-17 15:27:28 +08:00
read_extra.c dm: core: Add ofnode_read_resource() 2017-07-28 12:02:47 -06:00
regmap.c dtoc: Add support for 32 or 64-bit addresses 2017-09-12 16:04:36 +08:00
root.c UPSTREAM: dm: replace dm_dbg() with pr_debug() 2018-01-17 15:27:28 +08:00
simple-bus.c UPSTREAM: simple-bus: remove DECLARE_GLOBAL_DATA_PTR 2018-01-17 15:27:28 +08:00
syscon-uclass.c dm: core: Avoid calling dm_scan_fdt_dev() with of-platdata 2017-08-17 16:44:16 +09:00
uclass.c
util.c UPSTREAM: dm: replace dm_dbg() with pr_debug() 2018-01-17 15:27:28 +08:00