]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
clk: hi6220: add debug APB clock
authorLeo Yan <leo.yan@linaro.org>
Sat, 25 Mar 2017 18:23:15 +0000 (02:23 +0800)
committerMichael Turquette <mturquette@baylibre.com>
Wed, 12 Apr 2017 16:07:31 +0000 (18:07 +0200)
The debug APB clock is absent in hi6220 driver, so this patch is to add
support for it.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/hisilicon/clk-hi6220.c
include/dt-bindings/clock/hi6220-clock.h

index c0e8e1f196aae4f15c39bf39a725db8fd192f101..2ae151ce623a9602f389c09a6817eb5698c3a32e 100644 (file)
@@ -134,6 +134,7 @@ static struct hisi_gate_clock hi6220_separated_gate_clks_sys[] __initdata = {
        { HI6220_UART4_PCLK,    "uart4_pclk",    "uart4_src",      CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x230, 8,  0, },
        { HI6220_SPI_CLK,       "spi_clk",       "clk_150m",       CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x230, 9,  0, },
        { HI6220_TSENSOR_CLK,   "tsensor_clk",   "clk_bus",        CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x230, 12, 0, },
+       { HI6220_DAPB_CLK,      "dapb_clk",      "cs_dapb",        CLK_SET_RATE_PARENT|CLK_IS_CRITICAL,   0x230, 18, 0, },
        { HI6220_MMU_CLK,       "mmu_clk",       "ddrc_axi1",      CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x240, 11, 0, },
        { HI6220_HIFI_SEL,      "hifi_sel",      "hifi_src",       CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 0,  0, },
        { HI6220_MMC0_SYSPLL,   "mmc0_syspll",   "syspll",         CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 1,  0, },
index 6b03c84f42783635573307c053d63e9f0d3ee083..b8ba665aab7b3486ad39777acda4a4aa0a249a5d 100644 (file)
 #define HI6220_CS_DAPB         57
 #define HI6220_CS_ATB_DIV      58
 
-#define HI6220_SYS_NR_CLKS     59
+/* gate clock */
+#define HI6220_DAPB_CLK                59
+
+#define HI6220_SYS_NR_CLKS     60
 
 /* clk in Hi6220 media controller */
 /* gate clocks */