u-boot/include/dm
Heinrich Schuchardt ae6b33dcc3 dm: fix ofnode_read_addr/size_cells()
In the case of the live tree ofnode_read_addr_cells() and
ofnode_read_size_cells() return the #address-cells and #size-cells defined
in the parent node. With the patch the same is done for a non-live tree.

The only consumer of these functions is currently the CFI flash driver.

This patch fixes the incorrect parsing of the device tree leading to
'saveenv' failing on qemu_arm64_defconfig.

For testing qemu-system-aarch64 has to be called with

    -drive if=pflash,format=raw,index=1,file=envstore.img

to provide the flash memory. envstore.img must be 64 MiB large.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
2020-08-22 07:58:39 -06:00
..
platform_data arm: pxa: mmc: add driver model support 2020-06-30 11:13:11 -04:00
acpi.h dm: acpi: Add support for the NHLT table 2020-07-17 14:32:24 +08:00
device-internal.h core: drop const for struct driver_info 2020-07-09 22:00:29 -06:00
device.h pci: Avoid a crash in device_is_on_pci_bus() 2020-07-17 14:32:24 +08:00
device_compat.h dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07: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: Correct pre_reloc_only parameter description in several APIs' comments 2018-11-14 09:16:27 -08:00
of.h dm: Fix default address cells return value 2019-10-15 08:40:02 -06:00
of_access.h dm: core: add ofnode and dev function to iterate on node property 2020-04-16 23:06:54 -04:00
of_addr.h dm: core: Introduce xxx_translate_dma_address() 2019-07-22 09:21:28 +02:00
of_extra.h dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
ofnode.h dm: remove superfluous comment for union ofnode_union 2020-07-28 19:30:39 -06:00
pci.h dm: pci: Move pci_get_devfn() into a common file 2019-12-15 08:52:29 +08:00
pinctrl.h pinctrol: dm: remove the function pinctrl_decode_pin_config 2019-11-14 07:09:34 -06:00
platdata.h core: extend struct driver_info to point to device 2020-07-09 22:00:29 -06:00
read.h dm: fix ofnode_read_addr/size_cells() 2020-08-22 07:58:39 -06:00
root.h dm: Correct pre_reloc_only parameter description in several APIs' comments 2018-11-14 09:16:27 -08:00
test.h dm: Rename DM test flags to make them more generic 2020-08-07 22:31:32 -04:00
uclass-id.h xen: pvblock: Add initial support for para-virtualized block driver 2020-08-14 15:18:30 -04:00
uclass-internal.h dm: core: Correct the return value for uclass_find_first_device() 2019-10-08 13:57:38 +08:00
uclass.h dm: core: Correct comment on uclass_id_foreach_dev() 2020-07-09 18:57:22 -06:00
util.h cmd: dm: Fixed/Added DM driver listing subcommands 2020-07-07 15:37:13 -04:00