mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 05:04:23 +08:00
watchdog: orion_wdt: support SPL usage
When run from the SPL the mvebu targets are using the hardware default offset for the SoC peripherals. devfdt_get_addr_size_index() understands how to deal with this via dm_get_translation_offset() so use this instead of fdtdec_get_addr_size_auto_noparent(). Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
3c265bbe4d
commit
8562e41464
@ -114,9 +114,7 @@ static inline bool save_reg_from_ofdata(struct udevice *dev, int index,
|
||||
fdt_addr_t addr;
|
||||
fdt_size_t off;
|
||||
|
||||
addr = fdtdec_get_addr_size_auto_noparent(
|
||||
gd->fdt_blob, dev_of_offset(dev), "reg", index, &off, true);
|
||||
|
||||
addr = devfdt_get_addr_size_index(dev, index, &off);
|
||||
if (addr == FDT_ADDR_T_NONE)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user