diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-09-25 19:54:42 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-09-25 19:56:43 -0400 |
commit | e895e49ba9c0e6f5e3ca9eda9649cd8ed0fdeee3 (patch) | |
tree | f3a41d181c9bf5537dd01a8262bf819568339195 /arch/arm/mach-exynos | |
parent | a0cabc4017a78643e26d7bd79bcac548410f0480 (diff) |
ARM: EXYNOS: Add support for MSHC controller clocks
Add clock instances for bic("bus interface unit clock") and ciu("card
interface unit clock") of the all four MSHC controller instances.
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/clock-exynos5.c | 45 |
1 files changed, 16 insertions, 29 deletions
diff --git a/arch/arm/mach-exynos/clock-exynos5.c b/arch/arm/mach-exynos/clock-exynos5.c index 774533c67066..17e6c77231fa 100644 --- a/arch/arm/mach-exynos/clock-exynos5.c +++ b/arch/arm/mach-exynos/clock-exynos5.c | |||
@@ -569,35 +569,30 @@ static struct clk exynos5_init_clocks_off[] = { | |||
569 | .enable = exynos5_clk_ip_peris_ctrl, | 569 | .enable = exynos5_clk_ip_peris_ctrl, |
570 | .ctrlbit = (1 << 19), | 570 | .ctrlbit = (1 << 19), |
571 | }, { | 571 | }, { |
572 | .name = "hsmmc", | 572 | .name = "biu", /* bus interface unit clock */ |
573 | .devname = "exynos4-sdhci.0", | 573 | .devname = "dw_mmc.0", |
574 | .parent = &exynos5_clk_aclk_200.clk, | 574 | .parent = &exynos5_clk_aclk_200.clk, |
575 | .enable = exynos5_clk_ip_fsys_ctrl, | 575 | .enable = exynos5_clk_ip_fsys_ctrl, |
576 | .ctrlbit = (1 << 12), | 576 | .ctrlbit = (1 << 12), |
577 | }, { | 577 | }, { |
578 | .name = "hsmmc", | 578 | .name = "biu", |
579 | .devname = "exynos4-sdhci.1", | 579 | .devname = "dw_mmc.1", |
580 | .parent = &exynos5_clk_aclk_200.clk, | 580 | .parent = &exynos5_clk_aclk_200.clk, |
581 | .enable = exynos5_clk_ip_fsys_ctrl, | 581 | .enable = exynos5_clk_ip_fsys_ctrl, |
582 | .ctrlbit = (1 << 13), | 582 | .ctrlbit = (1 << 13), |
583 | }, { | 583 | }, { |
584 | .name = "hsmmc", | 584 | .name = "biu", |
585 | .devname = "exynos4-sdhci.2", | 585 | .devname = "dw_mmc.2", |
586 | .parent = &exynos5_clk_aclk_200.clk, | 586 | .parent = &exynos5_clk_aclk_200.clk, |
587 | .enable = exynos5_clk_ip_fsys_ctrl, | 587 | .enable = exynos5_clk_ip_fsys_ctrl, |
588 | .ctrlbit = (1 << 14), | 588 | .ctrlbit = (1 << 14), |
589 | }, { | 589 | }, { |
590 | .name = "hsmmc", | 590 | .name = "biu", |
591 | .devname = "exynos4-sdhci.3", | 591 | .devname = "dw_mmc.3", |
592 | .parent = &exynos5_clk_aclk_200.clk, | 592 | .parent = &exynos5_clk_aclk_200.clk, |
593 | .enable = exynos5_clk_ip_fsys_ctrl, | 593 | .enable = exynos5_clk_ip_fsys_ctrl, |
594 | .ctrlbit = (1 << 15), | 594 | .ctrlbit = (1 << 15), |
595 | }, { | 595 | }, { |
596 | .name = "dwmci", | ||
597 | .parent = &exynos5_clk_aclk_200.clk, | ||
598 | .enable = exynos5_clk_ip_fsys_ctrl, | ||
599 | .ctrlbit = (1 << 16), | ||
600 | }, { | ||
601 | .name = "sata", | 596 | .name = "sata", |
602 | .devname = "ahci", | 597 | .devname = "ahci", |
603 | .enable = exynos5_clk_ip_fsys_ctrl, | 598 | .enable = exynos5_clk_ip_fsys_ctrl, |
@@ -1015,8 +1010,8 @@ static struct clksrc_clk exynos5_clk_sclk_uart3 = { | |||
1015 | 1010 | ||
1016 | static struct clksrc_clk exynos5_clk_sclk_mmc0 = { | 1011 | static struct clksrc_clk exynos5_clk_sclk_mmc0 = { |
1017 | .clk = { | 1012 | .clk = { |
1018 | .name = "sclk_mmc", | 1013 | .name = "ciu", /* card interface unit clock */ |
1019 | .devname = "exynos4-sdhci.0", | 1014 | .devname = "dw_mmc.0", |
1020 | .parent = &exynos5_clk_dout_mmc0.clk, | 1015 | .parent = &exynos5_clk_dout_mmc0.clk, |
1021 | .enable = exynos5_clksrc_mask_fsys_ctrl, | 1016 | .enable = exynos5_clksrc_mask_fsys_ctrl, |
1022 | .ctrlbit = (1 << 0), | 1017 | .ctrlbit = (1 << 0), |
@@ -1026,8 +1021,8 @@ static struct clksrc_clk exynos5_clk_sclk_mmc0 = { | |||
1026 | 1021 | ||
1027 | static struct clksrc_clk exynos5_clk_sclk_mmc1 = { | 1022 | static struct clksrc_clk exynos5_clk_sclk_mmc1 = { |
1028 | .clk = { | 1023 | .clk = { |
1029 | .name = "sclk_mmc", | 1024 | .name = "ciu", |
1030 | .devname = "exynos4-sdhci.1", | 1025 | .devname = "dw_mmc.1", |
1031 | .parent = &exynos5_clk_dout_mmc1.clk, | 1026 | .parent = &exynos5_clk_dout_mmc1.clk, |
1032 | .enable = exynos5_clksrc_mask_fsys_ctrl, | 1027 | .enable = exynos5_clksrc_mask_fsys_ctrl, |
1033 | .ctrlbit = (1 << 4), | 1028 | .ctrlbit = (1 << 4), |
@@ -1037,8 +1032,8 @@ static struct clksrc_clk exynos5_clk_sclk_mmc1 = { | |||
1037 | 1032 | ||
1038 | static struct clksrc_clk exynos5_clk_sclk_mmc2 = { | 1033 | static struct clksrc_clk exynos5_clk_sclk_mmc2 = { |
1039 | .clk = { | 1034 | .clk = { |
1040 | .name = "sclk_mmc", | 1035 | .name = "ciu", |
1041 | .devname = "exynos4-sdhci.2", | 1036 | .devname = "dw_mmc.2", |
1042 | .parent = &exynos5_clk_dout_mmc2.clk, | 1037 | .parent = &exynos5_clk_dout_mmc2.clk, |
1043 | .enable = exynos5_clksrc_mask_fsys_ctrl, | 1038 | .enable = exynos5_clksrc_mask_fsys_ctrl, |
1044 | .ctrlbit = (1 << 8), | 1039 | .ctrlbit = (1 << 8), |
@@ -1048,8 +1043,8 @@ static struct clksrc_clk exynos5_clk_sclk_mmc2 = { | |||
1048 | 1043 | ||
1049 | static struct clksrc_clk exynos5_clk_sclk_mmc3 = { | 1044 | static struct clksrc_clk exynos5_clk_sclk_mmc3 = { |
1050 | .clk = { | 1045 | .clk = { |
1051 | .name = "sclk_mmc", | 1046 | .name = "ciu", |
1052 | .devname = "exynos4-sdhci.3", | 1047 | .devname = "dw_mmc.3", |
1053 | .parent = &exynos5_clk_dout_mmc3.clk, | 1048 | .parent = &exynos5_clk_dout_mmc3.clk, |
1054 | .enable = exynos5_clksrc_mask_fsys_ctrl, | 1049 | .enable = exynos5_clksrc_mask_fsys_ctrl, |
1055 | .ctrlbit = (1 << 12), | 1050 | .ctrlbit = (1 << 12), |
@@ -1123,14 +1118,6 @@ static struct clksrc_clk exynos5_clk_sclk_spi2 = { | |||
1123 | static struct clksrc_clk exynos5_clksrcs[] = { | 1118 | static struct clksrc_clk exynos5_clksrcs[] = { |
1124 | { | 1119 | { |
1125 | .clk = { | 1120 | .clk = { |
1126 | .name = "sclk_dwmci", | ||
1127 | .parent = &exynos5_clk_dout_mmc4.clk, | ||
1128 | .enable = exynos5_clksrc_mask_fsys_ctrl, | ||
1129 | .ctrlbit = (1 << 16), | ||
1130 | }, | ||
1131 | .reg_div = { .reg = EXYNOS5_CLKDIV_FSYS3, .shift = 8, .size = 8 }, | ||
1132 | }, { | ||
1133 | .clk = { | ||
1134 | .name = "sclk_fimd", | 1121 | .name = "sclk_fimd", |
1135 | .devname = "s3cfb.1", | 1122 | .devname = "s3cfb.1", |
1136 | .enable = exynos5_clksrc_mask_disp1_0_ctrl, | 1123 | .enable = exynos5_clksrc_mask_disp1_0_ctrl, |