From 126dca84f6a1ab745ded352083441b880e979628 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Wed, 16 Nov 2016 11:46:20 +0800 Subject: [PATCH] clk: rockchip: add clock ids for efuse on RK3366 Set the newly added id for efuse, so that they can be called in other parts. Change-Id: Id372ca207901aed689304f862412b2cf1e08fa80 Signed-off-by: Finley Xiao --- drivers/clk/rockchip/clk-rk3366.c | 4 ++-- include/dt-bindings/clock/rk3366-cru.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3366.c b/drivers/clk/rockchip/clk-rk3366.c index 2c44dc4312c9..e69899874516 100644 --- a/drivers/clk/rockchip/clk-rk3366.c +++ b/drivers/clk/rockchip/clk-rk3366.c @@ -643,8 +643,8 @@ static struct rockchip_clk_branch rk3366_clk_branches[] __initdata = { GATE(PCLK_I2C1, "pclk_i2c1", "pclk_bus", 0, RK3368_CLKGATE_CON(12), 3, GFLAGS), GATE(PCLK_DDRUPCTL, "pclk_ddrupctl", "pclk_bus", 0, RK3368_CLKGATE_CON(12), 13, GFLAGS), GATE(PCLK_DDRPHY, "pclk_ddrphy", "pclk_bus", 0, RK3368_CLKGATE_CON(12), 14, GFLAGS), - GATE(0, "pclk_efuse_1024", "pclk_bus", 0, RK3368_CLKGATE_CON(13), 0, GFLAGS), - GATE(0, "pclk_efuse_256", "pclk_bus", 0, RK3368_CLKGATE_CON(13), 1, GFLAGS), + GATE(PCLK_EFUSE_1024, "pclk_efuse_1024", "pclk_bus", 0, RK3368_CLKGATE_CON(13), 0, GFLAGS), + GATE(PCLK_EFUSE_256, "pclk_efuse_256", "pclk_bus", 0, RK3368_CLKGATE_CON(13), 1, GFLAGS), GATE(PCLK_UART2, "pclk_uart2", "pclk_bus", 0, RK3368_CLKGATE_CON(13), 5, GFLAGS), GATE(PCLK_RKPWM, "pclk_rk_pwm", "pclk_bus", 0, RK3368_CLKGATE_CON(13), 6, GFLAGS), GATE(0, "pclk_ddrnoc", "pclk_bus", CLK_IGNORE_UNUSED, RK3368_CLKGATE_CON(13), 10, GFLAGS), diff --git a/include/dt-bindings/clock/rk3366-cru.h b/include/dt-bindings/clock/rk3366-cru.h index 0ae354989c50..31ae3993b123 100644 --- a/include/dt-bindings/clock/rk3366-cru.h +++ b/include/dt-bindings/clock/rk3366-cru.h @@ -170,6 +170,8 @@ #define PCLK_PERI1 363 #define PCLK_MIPI_DSI0 364 #define PCLK_ISP 365 +#define PCLK_EFUSE_1024 366 +#define PCLK_EFUSE_256 367 /* hclk gates */ #define HCLK_I2S_8CH 448 -- 2.34.1