diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2013-08-06 03:50:09 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-08-06 04:57:01 -0400 |
commit | 9b0b9c0151a8e7d263cee180857068940463bd5f (patch) | |
tree | 4841eb53b4e89415cbfd23cc546191b4e828e2e2 | |
parent | 21c7a134051f2f753d359a02923223ad9181da31 (diff) |
ARM: shmobile: r8a7790: clocks for Ether support
Acked-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-r8a7790.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index 50d96f9cf981..fc36d3db0b4d 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c | |||
@@ -51,6 +51,7 @@ | |||
51 | #define SMSTPCR3 0xe615013c | 51 | #define SMSTPCR3 0xe615013c |
52 | #define SMSTPCR5 0xe6150144 | 52 | #define SMSTPCR5 0xe6150144 |
53 | #define SMSTPCR7 0xe615014c | 53 | #define SMSTPCR7 0xe615014c |
54 | #define SMSTPCR8 0xe6150990 | ||
54 | 55 | ||
55 | #define SDCKCR 0xE6150074 | 56 | #define SDCKCR 0xE6150074 |
56 | #define SD2CKCR 0xE6150078 | 57 | #define SD2CKCR 0xE6150078 |
@@ -180,6 +181,7 @@ static struct clk div6_clks[DIV6_NR] = { | |||
180 | 181 | ||
181 | /* MSTP */ | 182 | /* MSTP */ |
182 | enum { | 183 | enum { |
184 | MSTP813, | ||
183 | MSTP721, MSTP720, | 185 | MSTP721, MSTP720, |
184 | MSTP717, MSTP716, | 186 | MSTP717, MSTP716, |
185 | MSTP522, | 187 | MSTP522, |
@@ -190,6 +192,7 @@ enum { | |||
190 | }; | 192 | }; |
191 | 193 | ||
192 | static struct clk mstp_clks[MSTP_NR] = { | 194 | static struct clk mstp_clks[MSTP_NR] = { |
195 | [MSTP813] = SH_CLK_MSTP32(&p_clk, SMSTPCR8, 13, 0), /* Ether */ | ||
193 | [MSTP721] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 21, 0), /* SCIF0 */ | 196 | [MSTP721] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 21, 0), /* SCIF0 */ |
194 | [MSTP720] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 20, 0), /* SCIF1 */ | 197 | [MSTP720] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 20, 0), /* SCIF1 */ |
195 | [MSTP717] = SH_CLK_MSTP32(&zs_clk, SMSTPCR7, 17, 0), /* HSCIF0 */ | 198 | [MSTP717] = SH_CLK_MSTP32(&zs_clk, SMSTPCR7, 17, 0), /* HSCIF0 */ |
@@ -258,6 +261,7 @@ static struct clk_lookup lookups[] = { | |||
258 | CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP720]), | 261 | CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP720]), |
259 | CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]), | 262 | CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP717]), |
260 | CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]), | 263 | CLKDEV_DEV_ID("sh-sci.9", &mstp_clks[MSTP716]), |
264 | CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]), | ||
261 | CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), | 265 | CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), |
262 | CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]), | 266 | CLKDEV_DEV_ID("ee200000.mmcif", &mstp_clks[MSTP315]), |
263 | CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]), | 267 | CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]), |