UPSTREAM: rockchip: clk: rk3399: Convert to livetree

Update the clock driver for the RK3399  to support a live device tree.

Change-Id: I2cc96fe00c9a1b2937f53da9b11fa56bd9e058bf
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 75c7859803a334a41c8bdf0a31cd1cd61f579076)
This commit is contained in:
Philipp Tomsich 2017-09-12 17:32:24 +02:00 committed by Kever Yang
parent 8edf7c5aaf
commit db4c0dc88d
1 changed files with 2 additions and 2 deletions

View File

@ -1025,7 +1025,7 @@ static int rk3399_clk_ofdata_to_platdata(struct udevice *dev)
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
struct rk3399_clk_priv *priv = dev_get_priv(dev);
priv->cru = (struct rk3399_cru *)devfdt_get_addr(dev);
priv->cru = dev_read_addr_ptr(dev);
#endif
return 0;
}
@ -1233,7 +1233,7 @@ static int rk3399_pmuclk_ofdata_to_platdata(struct udevice *dev)
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
struct rk3399_pmuclk_priv *priv = dev_get_priv(dev);
priv->pmucru = (struct rk3399_pmucru *)devfdt_get_addr(dev);
priv->pmucru = dev_read_addr_ptr(dev);
#endif
return 0;
}