OSDN Git Service

clk: rockchip: Add binding ids for cpu and peri clocks on rk3066
authorPaweł Jarosz <paweljarosz3691@gmail.com>
Fri, 14 Oct 2016 12:16:39 +0000 (14:16 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 21 Oct 2016 13:26:23 +0000 (15:26 +0200)
Add bindings for ACLK_CPU, HCLK_CPU, PCLK_CPU, ACLK_PERI, HCLK_PERI, PCLK_PERI.

We need this to init it's rate at boot time.

Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
include/dt-bindings/clock/rk3188-cru-common.h

index 4f53e70..d141c1f 100644 (file)
@@ -72,6 +72,8 @@
 #define ACLK_IPP               200
 #define ACLK_RGA               201
 #define ACLK_CIF0              202
+#define ACLK_CPU               203
+#define ACLK_PERI              204
 
 /* pclk gates */
 #define PCLK_GRF               320
 #define PCLK_EFUSE             347
 #define PCLK_TZPC              348
 #define PCLK_TSADC             349
+#define PCLK_CPU               350
+#define PCLK_PERI              351
 
 /* hclk gates */
 #define HCLK_SDMMC             448
 #define HCLK_IPP               465
 #define HCLK_RGA               466
 #define HCLK_NANDC0            467
+#define HCLK_CPU               468
+#define HCLK_PERI              469
 
-#define CLK_NR_CLKS            (HCLK_NANDC0 + 1)
+#define CLK_NR_CLKS            (HCLK_PERI + 1)
 
 /* soft-reset indices */
 #define SRST_MCORE             2