u-boot-brain/include/dm
Bin Meng 80279fa129 dm: core: Correctly read <ranges> of simple-bus
At present we decode simple bus <ranges> using the following assumption:

- parent #address-cells 1
- child #address-cells 1
- child #size-cells 1

However this might not always be the case.

Update to use fdt_addr_t and fdt_size_t in 'struct simple_bus_plat', and
use fdt_read_ranges() to correctly decode it according to the actual
parent and child #address-cells / #size-cells under a Kconfig option
CONFIG_SIMPLE_BUS_CORRECT_RANGE which can be turned on for any board
that needs it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2021-04-15 14:22:17 +05:30
..
platform_data dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO() 2021-01-05 12:26:35 -07:00
acpi.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
device_compat.h dm: Don't undefine dev_xxx macros 2020-10-16 09:44:27 -04:00
device-internal.h dm: core: Add warnings to private / platform setters 2021-03-26 17:03:09 +13:00
device.h dm: core: Move flags to device-runtime info 2021-03-26 17:03:09 +13:00
devres.h dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
fdtaddr.h dm: core: Use const device for the devfdt...() interface 2020-02-05 19:33:45 -07:00
lists.h dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO() 2021-01-05 12:26:35 -07:00
of_access.h dm: add cells_count parameter in *_count_phandle_with_args 2020-10-06 09:07:54 -06:00
of_addr.h dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01:00
of_extra.h of: extra: Introduce ofnode_phy_is_fixed_link() API 2021-04-15 14:22:17 +05:30
of.h dm: Avoid using #ifdef for CONFIG_OF_LIVE 2020-10-29 14:42:17 -06:00
ofnode.h dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01:00
pci.h dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
pinctrl.h pinctrl: Reformat documentation in dm/pinctrl.h 2020-10-08 11:42:36 -04:00
platdata.h dm: core: Drop device_get_by_driver_info() 2021-03-26 17:03:08 +13:00
read.h dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01:00
root.h dm: core: Adjust uclass setup with of-platdata 2021-03-22 19:23:28 +13:00
simple_bus.h dm: core: Correctly read <ranges> of simple-bus 2021-04-15 14:22:17 +05:30
test.h Prepare v2021.04-rc5 2021-03-29 18:00:21 -04:00
uclass-id.h x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
uclass-internal.h dm: core: Add warnings to private / platform setters 2021-03-26 17:03:09 +13:00
uclass.h dm: core: Add macros to access the new linker lists 2021-03-22 19:23:28 +13:00
util.h dm: core: Use separate priv/plat data region 2021-03-26 17:03:09 +13:00