watchdog: orion_wdt: support SPL usage
authorChris Packham <judge.packham@gmail.com>
Sun, 17 Feb 2019 21:30:52 +0000 (10:30 +1300)
committerStefan Roese <sr@denx.de>
Fri, 12 Apr 2019 05:04:18 +0000 (07:04 +0200)
commit8562e41464e06389ea4965d71a91753700985456
tree696d554f36fc3e253c86d7709d8055ebfb3e5b15
parent3c265bbe4d1c16f7c781c0f99df78c373c2fbd79
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>
drivers/watchdog/orion_wdt.c