diff options
author | Jongpill Lee <boyko.lee@samsung.com> | 2010-08-18 09:51:23 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-20 18:52:17 -0400 |
commit | 06cba8d5b64945c137c47065ca864a16a2d5710c (patch) | |
tree | 0e6817245822f4f71791641ec3baf60e3c5ead43 | |
parent | 82260bf38f36950f413ea6beb29717a3944752c3 (diff) |
ARM: S5PV310: Add video clocks
This patch adds video clocks for S5PV310/S5PC210.
Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-s5pv310/clock.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv310/clock.c b/arch/arm/mach-s5pv310/clock.c index 1f9ed85d3016..b6ad76ff6421 100644 --- a/arch/arm/mach-s5pv310/clock.c +++ b/arch/arm/mach-s5pv310/clock.c | |||
@@ -588,6 +588,54 @@ static struct clksrc_sources clkset_group = { | |||
588 | .nr_sources = ARRAY_SIZE(clkset_group_list), | 588 | .nr_sources = ARRAY_SIZE(clkset_group_list), |
589 | }; | 589 | }; |
590 | 590 | ||
591 | static struct clk *clkset_mout_g2d0_list[] = { | ||
592 | [0] = &clk_mout_mpll.clk, | ||
593 | [1] = &clk_sclk_apll.clk, | ||
594 | }; | ||
595 | |||
596 | static struct clksrc_sources clkset_mout_g2d0 = { | ||
597 | .sources = clkset_mout_g2d0_list, | ||
598 | .nr_sources = ARRAY_SIZE(clkset_mout_g2d0_list), | ||
599 | }; | ||
600 | |||
601 | static struct clksrc_clk clk_mout_g2d0 = { | ||
602 | .clk = { | ||
603 | .name = "mout_g2d0", | ||
604 | .id = -1, | ||
605 | }, | ||
606 | .sources = &clkset_mout_g2d0, | ||
607 | .reg_src = { .reg = S5P_CLKSRC_IMAGE, .shift = 0, .size = 1 }, | ||
608 | }; | ||
609 | |||
610 | static struct clk *clkset_mout_g2d1_list[] = { | ||
611 | [0] = &clk_mout_epll.clk, | ||
612 | [1] = &clk_sclk_vpll.clk, | ||
613 | }; | ||
614 | |||
615 | static struct clksrc_sources clkset_mout_g2d1 = { | ||
616 | .sources = clkset_mout_g2d1_list, | ||
617 | .nr_sources = ARRAY_SIZE(clkset_mout_g2d1_list), | ||
618 | }; | ||
619 | |||
620 | static struct clksrc_clk clk_mout_g2d1 = { | ||
621 | .clk = { | ||
622 | .name = "mout_g2d1", | ||
623 | .id = -1, | ||
624 | }, | ||
625 | .sources = &clkset_mout_g2d1, | ||
626 | .reg_src = { .reg = S5P_CLKSRC_IMAGE, .shift = 4, .size = 1 }, | ||
627 | }; | ||
628 | |||
629 | static struct clk *clkset_mout_g2d_list[] = { | ||
630 | [0] = &clk_mout_g2d0.clk, | ||
631 | [1] = &clk_mout_g2d1.clk, | ||
632 | }; | ||
633 | |||
634 | static struct clksrc_sources clkset_mout_g2d = { | ||
635 | .sources = clkset_mout_g2d_list, | ||
636 | .nr_sources = ARRAY_SIZE(clkset_mout_g2d_list), | ||
637 | }; | ||
638 | |||
591 | static struct clksrc_clk clk_dout_mmc0 = { | 639 | static struct clksrc_clk clk_dout_mmc0 = { |
592 | .clk = { | 640 | .clk = { |
593 | .name = "dout_mmc0", | 641 | .name = "dout_mmc0", |