u-boot/drivers/core
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
..
acpi.c dm: core: Don't show an ACPI warning if there is no ordering 2020-07-20 09:46:42 +08:00
device-remove.c dm: core: Add a way to skip powering down power domains 2020-04-16 08:07:58 -06:00
device.c dm: core Fix long line in device_bind_common() 2020-07-24 19:25:15 -06:00
devres.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
dump.c cmd: dm: Fixed/Added DM driver listing subcommands 2020-07-07 15:37:13 -04:00
fdtaddr.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Kconfig acpi: Enable ACPI table generation by default on x86 2020-07-17 14:32:24 +08:00
lists.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile dm: Add support for simple-pm-bus 2020-07-01 15:01:21 +08:00
of_access.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
of_addr.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
of_extra.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ofnode.c dm: fix ofnode_read_addr/size_cells() 2020-08-22 07:58:39 -06:00
read.c dm: Fix error handling for dev_read_addr_ptr 2020-07-01 15:01:21 +08:00
read_extra.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c regmap: Check for out-of-range offsets before mapping them 2020-06-11 20:52:11 -06:00
root.c dm: core: Add an ACPI name for the root node 2020-07-17 14:32:24 +08:00
simple-bus.c drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
simple-pm-bus.c dm: Add support for simple-pm-bus 2020-07-01 15:01:21 +08:00
syscon-uclass.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
uclass.c dm: uclass: don't assign aliased seq numbers 2020-06-11 20:52:11 -06:00
util.c dm: core: remove the duplicated function dm_ofnode_pre_reloc 2020-04-16 08:07:58 -06:00