mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-02 12:31:31 +00:00
rockchip: timer: Convert to livetree
Update the Rockchip timer driver to support a live device tree. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
cc7ce94e02
commit
6675c952f2
1 changed files with 3 additions and 1 deletions
|
@ -101,7 +101,9 @@ static int rockchip_clk_ofdata_to_platdata(struct udevice *dev)
|
||||||
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||||
struct rockchip_timer_priv *priv = dev_get_priv(dev);
|
struct rockchip_timer_priv *priv = dev_get_priv(dev);
|
||||||
|
|
||||||
priv->timer = (struct rk_timer *)devfdt_get_addr(dev);
|
priv->timer = dev_read_addr_ptr(dev);
|
||||||
|
if (!priv->timer)
|
||||||
|
return -ENOENT;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue