clk: stm32mp1: Add CLK_IGNORE_UNUSED to ck_sys_dbg clock
authorGabriel Fernandez <gabriel.fernandez@st.com>
Tue, 24 Apr 2018 07:58:43 +0000 (09:58 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 15 May 2018 18:22:11 +0000 (11:22 -0700)
Don't disable the dbg clock if was set by bootloader.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-stm32mp1.c

index edd3cf4..35dabf1 100644 (file)
@@ -1988,7 +1988,8 @@ static const struct clock_config stm32mp1_clock_cfg[] = {
                  _DIV(RCC_MCO2CFGR, 4, 4, 0, NULL)),
 
        /* Debug clocks */
-       GATE(CK_DBG, "ck_sys_dbg", "ck_axi", 0, RCC_DBGCFGR, 8, 0),
+       GATE(CK_DBG, "ck_sys_dbg", "ck_axi", CLK_IGNORE_UNUSED,
+            RCC_DBGCFGR, 8, 0),
 
        COMPOSITE(CK_TRACE, "ck_trace", ck_trace_src, CLK_OPS_PARENT_ENABLE,
                  _GATE(RCC_DBGCFGR, 9, 0),