projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Drop linux/delay.h from common header
[oweals/u-boot.git]
/
drivers
/
clk
/
rockchip
/
clk_rk3188.c
diff --git
a/drivers/clk/rockchip/clk_rk3188.c
b/drivers/clk/rockchip/clk_rk3188.c
index 9bb9959c9d3ac0512be40a741fa15b47c70d19c4..11e3bd33cbeadadeb4de22079b191814a0c74df0 100644
(file)
--- a/
drivers/clk/rockchip/clk_rk3188.c
+++ b/
drivers/clk/rockchip/clk_rk3188.c
@@
-9,6
+9,8
@@
#include <dm.h>
#include <dt-structs.h>
#include <errno.h>
#include <dm.h>
#include <dt-structs.h>
#include <errno.h>
+#include <log.h>
+#include <malloc.h>
#include <mapmem.h>
#include <syscon.h>
#include <asm/io.h>
#include <mapmem.h>
#include <syscon.h>
#include <asm/io.h>
@@
-20,7
+22,10
@@
#include <dm/device-internal.h>
#include <dm/lists.h>
#include <dm/uclass-internal.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
#include <dm/uclass-internal.h>
+#include <linux/delay.h>
+#include <linux/err.h>
#include <linux/log2.h>
#include <linux/log2.h>
+#include <linux/stringify.h>
enum rk3188_clk_type {
RK3188_CRU,
enum rk3188_clk_type {
RK3188_CRU,
@@
-562,6
+567,9
@@
static int rk3188_clk_probe(struct udevice *dev)
#endif
rkclk_init(priv->cru, priv->grf, priv->has_bwadj);
#endif
rkclk_init(priv->cru, priv->grf, priv->has_bwadj);
+
+ /* Init CPU frequency */
+ rkclk_configure_cpu(priv->cru, priv->grf, APLL_HZ, priv->has_bwadj);
#endif
return 0;
#endif
return 0;
@@
-587,7
+595,7
@@
static int rk3188_clk_bind(struct udevice *dev)
sys_child->priv = priv;
}
sys_child->priv = priv;
}
-#if CONFIG_IS_ENABLED(
CONFIG_
RESET_ROCKCHIP)
+#if CONFIG_IS_ENABLED(RESET_ROCKCHIP)
ret = offsetof(struct rk3188_cru, cru_softrst_con[0]);
ret = rockchip_reset_bind(dev, ret, 9);
if (ret)
ret = offsetof(struct rk3188_cru, cru_softrst_con[0]);
ret = rockchip_reset_bind(dev, ret, 9);
if (ret)