clk: samsung: set SPI0 ioclk and slck as ignore unused 28/84528/3
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 17 Aug 2016 06:54:51 +0000 (15:54 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Sat, 20 Aug 2016 03:05:45 +0000 (20:05 -0700)
There is no one who handles the ioclk and sclk for the SPI0 bus,
in order to be able to use the SPI 0 bus, set them as ignore
unused by using the CLK_IGNORE_UNUSED flag in the gate
declaration.

The Exynos5433 SoC needs to have all the clocks enabled, they get
all disabled even if one of them is disabled.

Change-Id: I57a625f20c40b4d76046da1a8caf5976454dda1b
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/clk/samsung/clk-exynos5433.c

index 697bc91..3151c5c 100644 (file)
@@ -1785,7 +1785,8 @@ static struct samsung_gate_clock peric_gate_clks[] __initdata = {
                        ENABLE_SCLK_PERIC, 12,
                        CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0),
        GATE(CLK_SCLK_IOCLK_SPI0, "sclk_ioclk_spi0", "ioclk_spi0_clk_in",
-                       ENABLE_SCLK_PERIC, 11, CLK_SET_RATE_PARENT, 0),
+                       ENABLE_SCLK_PERIC, 11,
+                       CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0),
        GATE(CLK_SCLK_IOCLK_I2S1_BCLK, "sclk_ioclk_i2s1_bclk",
                        "ioclk_i2s1_bclk_in", ENABLE_SCLK_PERIC, 10,
                        CLK_SET_RATE_PARENT, 0),
@@ -1800,7 +1801,7 @@ static struct samsung_gate_clock peric_gate_clks[] __initdata = {
        GATE(CLK_SCLK_SPI1, "sclk_spi1", "sclk_spi1_peric", ENABLE_SCLK_PERIC,
                        4, CLK_IGNORE_UNUSED | CLK_SET_RATE_PARENT, 0),
        GATE(CLK_SCLK_SPI0, "sclk_spi0", "sclk_spi0_peric", ENABLE_SCLK_PERIC,
-                       3, CLK_SET_RATE_PARENT, 0),
+                       3, CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0),
        GATE(CLK_SCLK_UART2, "sclk_uart2", "sclk_uart2_peric",
                        ENABLE_SCLK_PERIC, 2,
                        CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, 0),