12 #include <linux/kernel.h>
19 #include <plat/clock.h>
26 #include <mach/hardware.h>
28 #include <mach/regs-clock.h>
34 #ifdef CONFIG_PM_SLEEP
35 static struct sleep_save exynos4210_clock_save[] = {
51 static struct clksrc_clk exynos4210_clk_mout_g2d0 = {
59 static struct clksrc_clk exynos4210_clk_mout_g2d1 = {
67 static struct clk *exynos4210_clkset_mout_g2d_list[] = {
68 [0] = &exynos4210_clk_mout_g2d0.
clk,
69 [1] = &exynos4210_clk_mout_g2d1.
clk,
73 .sources = exynos4210_clkset_mout_g2d_list,
74 .nr_sources =
ARRAY_SIZE(exynos4210_clkset_mout_g2d_list),
77 static int exynos4_clksrc_mask_lcd1_ctrl(
struct clk *
clk,
int enable)
96 .devname =
"exynos4-fb.1",
97 .enable = exynos4_clksrc_mask_lcd1_ctrl,
105 .name =
"sclk_fimg2d",
107 .sources = &exynos4210_clkset_mout_g2d,
113 static struct clk init_clocks_off[] = {
125 .ctrlbit = (1 << 10),
128 .devname =
"exynos4-fb.1",
148 #ifdef CONFIG_PM_SLEEP
162 #define exynos4210_clock_suspend NULL
163 #define exynos4210_clock_resume NULL
166 static struct syscore_ops exynos4210_clock_syscore_ops = {
179 for (ptr = 0; ptr <
ARRAY_SIZE(sysclks); ptr++)