diff options
author | Chris Packham <judge.packham@gmail.com> | 2019-02-18 10:30:52 +1300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2019-04-12 07:04:18 +0200 |
commit | 8562e41464e06389ea4965d71a91753700985456 (patch) | |
tree | 696d554f36fc3e253c86d7709d8055ebfb3e5b15 /drivers/watchdog | |
parent | 3c265bbe4d1c16f7c781c0f99df78c373c2fbd79 (diff) | |
download | u-boot-8562e41464e06389ea4965d71a91753700985456.tar.gz |
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/orion_wdt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index a0df02d103..c1add3e7c1 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -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; |