diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-04-17 01:17:04 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-07 01:24:47 -0400 |
commit | 1189b1cb50a0f9e039594ccd504f7de641e30bdf (patch) | |
tree | e5b234badab50ed7ec12d19baa26d8cfa44be5ac | |
parent | 08b93ec126ffc0b810ac615729e14c4a3571b9c8 (diff) |
ARM: shmobile: r8a7778: add SDHI clock support
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm/mach-shmobile/clock-r8a7778.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/clock-r8a7778.c b/arch/arm/mach-shmobile/clock-r8a7778.c index 5cc271ecb5d9..b251e4d0924d 100644 --- a/arch/arm/mach-shmobile/clock-r8a7778.c +++ b/arch/arm/mach-shmobile/clock-r8a7778.c | |||
@@ -103,12 +103,16 @@ static struct clk *main_clks[] = { | |||
103 | }; | 103 | }; |
104 | 104 | ||
105 | enum { | 105 | enum { |
106 | MSTP323, MSTP322, MSTP321, | ||
106 | MSTP114, | 107 | MSTP114, |
107 | MSTP026, MSTP025, MSTP024, MSTP023, MSTP022, MSTP021, | 108 | MSTP026, MSTP025, MSTP024, MSTP023, MSTP022, MSTP021, |
108 | MSTP016, MSTP015, | 109 | MSTP016, MSTP015, |
109 | MSTP_NR }; | 110 | MSTP_NR }; |
110 | 111 | ||
111 | static struct clk mstp_clks[MSTP_NR] = { | 112 | static struct clk mstp_clks[MSTP_NR] = { |
113 | [MSTP323] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 23, 0), /* SDHI0 */ | ||
114 | [MSTP322] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 22, 0), /* SDHI1 */ | ||
115 | [MSTP321] = SH_CLK_MSTP32(&p_clk, MSTPCR3, 21, 0), /* SDHI2 */ | ||
112 | [MSTP114] = SH_CLK_MSTP32(&p_clk, MSTPCR1, 14, 0), /* Ether */ | 116 | [MSTP114] = SH_CLK_MSTP32(&p_clk, MSTPCR1, 14, 0), /* Ether */ |
113 | [MSTP026] = SH_CLK_MSTP32(&p_clk, MSTPCR0, 26, 0), /* SCIF0 */ | 117 | [MSTP026] = SH_CLK_MSTP32(&p_clk, MSTPCR0, 26, 0), /* SCIF0 */ |
114 | [MSTP025] = SH_CLK_MSTP32(&p_clk, MSTPCR0, 25, 0), /* SCIF1 */ | 118 | [MSTP025] = SH_CLK_MSTP32(&p_clk, MSTPCR0, 25, 0), /* SCIF1 */ |
@@ -122,6 +126,9 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
122 | 126 | ||
123 | static struct clk_lookup lookups[] = { | 127 | static struct clk_lookup lookups[] = { |
124 | /* MSTP32 clocks */ | 128 | /* MSTP32 clocks */ |
129 | CLKDEV_DEV_ID("sh_mobile_sdhi.0", &mstp_clks[MSTP323]), /* SDHI0 */ | ||
130 | CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[MSTP322]), /* SDHI1 */ | ||
131 | CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP321]), /* SDHI2 */ | ||
125 | CLKDEV_DEV_ID("sh-eth", &mstp_clks[MSTP114]), /* Ether */ | 132 | CLKDEV_DEV_ID("sh-eth", &mstp_clks[MSTP114]), /* Ether */ |
126 | CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP026]), /* SCIF0 */ | 133 | CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP026]), /* SCIF0 */ |
127 | CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP025]), /* SCIF1 */ | 134 | CLKDEV_DEV_ID("sh-sci.1", &mstp_clks[MSTP025]), /* SCIF1 */ |