diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-04-04 00:33:34 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-04-04 02:51:15 -0400 |
commit | 017ab64bdbca6f2f421d59a8235cdee90da08463 (patch) | |
tree | 3fd1a93e4bb08808d0b8ad7d935143cb789a21ea /drivers/clk/samsung/clk-exynos4.c | |
parent | 6d7190f846e74be2cbaae4cd56d1a5385e46f6ff (diff) |
clk: exynos4: Use SRC_MASK_PERIL{0,1} definitions
There are definitions of SRC_MASK_PERIL0 and SRC_MASK_PERIL1 registers,
but they are not used for clock definitions. This patch modifies related
clock definitions to use defined macros instead of numeric offsets.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/clk/samsung/clk-exynos4.c')
-rw-r--r-- | drivers/clk/samsung/clk-exynos4.c | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index 57aa527981b5..5e26d5d0d8a3 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c | |||
@@ -550,7 +550,7 @@ struct samsung_gate_clock exynos4_gate_clks[] __initdata = { | |||
550 | * of the clocks can be removed. | 550 | * of the clocks can be removed. |
551 | */ | 551 | */ |
552 | GATE(sclk_hdmi, "sclk_hdmi", "mout_hdmi", SRC_MASK_TV, 0, 0, 0), | 552 | GATE(sclk_hdmi, "sclk_hdmi", "mout_hdmi", SRC_MASK_TV, 0, 0, 0), |
553 | GATE(sclk_spdif, "sclk_spdif", "mout_spdif", 0xc354, 8, 0, 0), | 553 | GATE(sclk_spdif, "sclk_spdif", "mout_spdif", SRC_MASK_PERIL1, 8, 0, 0), |
554 | GATE(jpeg, "jpeg", "aclk160", GATE_IP_CAM, 6, 0, 0), | 554 | GATE(jpeg, "jpeg", "aclk160", GATE_IP_CAM, 6, 0, 0), |
555 | GATE(mie0, "mie0", "aclk160", GATE_IP_LCD0, 1, 0, 0), | 555 | GATE(mie0, "mie0", "aclk160", GATE_IP_LCD0, 1, 0, 0), |
556 | GATE(dsim0, "dsim0", "aclk160", GATE_IP_LCD0, 3, 0, 0), | 556 | GATE(dsim0, "dsim0", "aclk160", GATE_IP_LCD0, 3, 0, 0), |
@@ -576,7 +576,7 @@ struct samsung_gate_clock exynos4_gate_clks[] __initdata = { | |||
576 | SRC_MASK_LCD0, 12, CLK_SET_RATE_PARENT, 0), | 576 | SRC_MASK_LCD0, 12, CLK_SET_RATE_PARENT, 0), |
577 | GATE(sclk_audio0, "sclk_audio0", "div_audio0", SRC_MASK_MAUDIO, 0, | 577 | GATE(sclk_audio0, "sclk_audio0", "div_audio0", SRC_MASK_MAUDIO, 0, |
578 | CLK_SET_RATE_PARENT, 0), | 578 | CLK_SET_RATE_PARENT, 0), |
579 | GATE(sclk_audio1, "sclk_audio1", "div_audio1", 0xc354, 0, | 579 | GATE(sclk_audio1, "sclk_audio1", "div_audio1", SRC_MASK_PERIL1, 0, |
580 | CLK_SET_RATE_PARENT, 0), | 580 | CLK_SET_RATE_PARENT, 0), |
581 | GATE_D(vp, "s5p-mixer", "vp", "aclk160", GATE_IP_TV, 0, 0, 0), | 581 | GATE_D(vp, "s5p-mixer", "vp", "aclk160", GATE_IP_TV, 0, 0, 0), |
582 | GATE_D(mixer, "s5p-mixer", "mixer", "aclk160", GATE_IP_TV, 1, 0, 0), | 582 | GATE_D(mixer, "s5p-mixer", "mixer", "aclk160", GATE_IP_TV, 1, 0, 0), |
@@ -614,23 +614,31 @@ struct samsung_gate_clock exynos4_gate_clks[] __initdata = { | |||
614 | GATE_DA(sclk_mmc4, NULL, "sclk_mmc4", "div_mmc_pre4", | 614 | GATE_DA(sclk_mmc4, NULL, "sclk_mmc4", "div_mmc_pre4", |
615 | SRC_MASK_FSYS, 16, CLK_SET_RATE_PARENT, 0, "ciu"), | 615 | SRC_MASK_FSYS, 16, CLK_SET_RATE_PARENT, 0, "ciu"), |
616 | GATE_DA(sclk_uart0, "exynos4210-uart.0", "uclk0", "div_uart0", | 616 | GATE_DA(sclk_uart0, "exynos4210-uart.0", "uclk0", "div_uart0", |
617 | 0xc350, 0, CLK_SET_RATE_PARENT, 0, "clk_uart_baud0"), | 617 | SRC_MASK_PERIL0, 0, CLK_SET_RATE_PARENT, |
618 | 0, "clk_uart_baud0"), | ||
618 | GATE_DA(sclk_uart1, "exynos4210-uart.1", "uclk1", "div_uart1", | 619 | GATE_DA(sclk_uart1, "exynos4210-uart.1", "uclk1", "div_uart1", |
619 | 0xc350, 4, CLK_SET_RATE_PARENT, 0, "clk_uart_baud0"), | 620 | SRC_MASK_PERIL0, 4, CLK_SET_RATE_PARENT, |
621 | 0, "clk_uart_baud0"), | ||
620 | GATE_DA(sclk_uart2, "exynos4210-uart.2", "uclk2", "div_uart2", | 622 | GATE_DA(sclk_uart2, "exynos4210-uart.2", "uclk2", "div_uart2", |
621 | 0xc350, 8, CLK_SET_RATE_PARENT, 0, "clk_uart_baud0"), | 623 | SRC_MASK_PERIL0, 8, CLK_SET_RATE_PARENT, |
624 | 0, "clk_uart_baud0"), | ||
622 | GATE_DA(sclk_uart3, "exynos4210-uart.3", "uclk3", "div_uart3", | 625 | GATE_DA(sclk_uart3, "exynos4210-uart.3", "uclk3", "div_uart3", |
623 | 0xc350, 12, CLK_SET_RATE_PARENT, 0, "clk_uart_baud0"), | 626 | SRC_MASK_PERIL0, 12, CLK_SET_RATE_PARENT, |
627 | 0, "clk_uart_baud0"), | ||
624 | GATE_DA(sclk_uart4, "exynos4210-uart.4", "uclk4", "div_uart4", | 628 | GATE_DA(sclk_uart4, "exynos4210-uart.4", "uclk4", "div_uart4", |
625 | 0xc350, 16, CLK_SET_RATE_PARENT, 0, "clk_uart_baud0"), | 629 | SRC_MASK_PERIL0, 16, CLK_SET_RATE_PARENT, |
626 | GATE(sclk_audio2, "sclk_audio2", "div_audio2", 0xc354, 4, | 630 | 0, "clk_uart_baud0"), |
631 | GATE(sclk_audio2, "sclk_audio2", "div_audio2", SRC_MASK_PERIL1, 4, | ||
627 | CLK_SET_RATE_PARENT, 0), | 632 | CLK_SET_RATE_PARENT, 0), |
628 | GATE_DA(sclk_spi0, "exynos4210-spi.0", "sclk_spi0", "div_spi_pre0", | 633 | GATE_DA(sclk_spi0, "exynos4210-spi.0", "sclk_spi0", "div_spi_pre0", |
629 | 0xc354, 16, CLK_SET_RATE_PARENT, 0, "spi_busclk0"), | 634 | SRC_MASK_PERIL1, 16, CLK_SET_RATE_PARENT, |
635 | 0, "spi_busclk0"), | ||
630 | GATE_DA(sclk_spi1, "exynos4210-spi.1", "sclk_spi1", "div_spi_pre1", | 636 | GATE_DA(sclk_spi1, "exynos4210-spi.1", "sclk_spi1", "div_spi_pre1", |
631 | 0xc354, 20, CLK_SET_RATE_PARENT, 0, "spi_busclk0"), | 637 | SRC_MASK_PERIL1, 20, CLK_SET_RATE_PARENT, |
638 | 0, "spi_busclk0"), | ||
632 | GATE_DA(sclk_spi2, "exynos4210-spi.2", "sclk_spi2", "div_spi_pre2", | 639 | GATE_DA(sclk_spi2, "exynos4210-spi.2", "sclk_spi2", "div_spi_pre2", |
633 | 0xc354, 24, CLK_SET_RATE_PARENT, 0, "spi_busclk0"), | 640 | SRC_MASK_PERIL1, 24, CLK_SET_RATE_PARENT, |
641 | 0, "spi_busclk0"), | ||
634 | GATE_DA(fimc0, "exynos4-fimc.0", "fimc0", "aclk160", | 642 | GATE_DA(fimc0, "exynos4-fimc.0", "fimc0", "aclk160", |
635 | GATE_IP_CAM, 0, 0, 0, "fimc"), | 643 | GATE_IP_CAM, 0, 0, 0, "fimc"), |
636 | GATE_DA(fimc1, "exynos4-fimc.1", "fimc1", "aclk160", | 644 | GATE_DA(fimc1, "exynos4-fimc.1", "fimc1", "aclk160", |