aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorValentine Barshak <valentine.barshak@cogentembedded.com>2014-01-09 10:23:21 -0500
committerSimon Horman <horms+renesas@verge.net.au>2014-02-03 20:25:02 -0500
commit373ababd4896d6012871f03a3f6d96083dc50610 (patch)
tree2564863631a5556db21af0cb1add643cc26cde26 /arch/arm/mach-shmobile
parent5a6f994abbfde8e17671541db04399dfc4aebe62 (diff)
ARM: shmobile: r8a7791: Add SATA clocks
This adds SATA[01] clock support to R8A7791 SoC. Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/clock-r8a7791.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/clock-r8a7791.c b/arch/arm/mach-shmobile/clock-r8a7791.c
index 52d7d13609ce..e4e4dfac85e9 100644
--- a/arch/arm/mach-shmobile/clock-r8a7791.c
+++ b/arch/arm/mach-shmobile/clock-r8a7791.c
@@ -135,6 +135,7 @@ static struct clk *main_clks[] = {
135/* MSTP */ 135/* MSTP */
136enum { 136enum {
137 MSTP931, MSTP930, MSTP929, MSTP928, MSTP927, MSTP925, 137 MSTP931, MSTP930, MSTP929, MSTP928, MSTP927, MSTP925,
138 MSTP815, MSTP814,
138 MSTP813, 139 MSTP813,
139 MSTP811, MSTP810, MSTP809, 140 MSTP811, MSTP810, MSTP809,
140 MSTP726, MSTP724, MSTP723, MSTP721, MSTP720, 141 MSTP726, MSTP724, MSTP723, MSTP721, MSTP720,
@@ -153,6 +154,8 @@ static struct clk mstp_clks[MSTP_NR] = {
153 [MSTP928] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 28, MSTPSR9, 0), /* I2C3 */ 154 [MSTP928] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 28, MSTPSR9, 0), /* I2C3 */
154 [MSTP927] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 27, MSTPSR9, 0), /* I2C4 */ 155 [MSTP927] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 27, MSTPSR9, 0), /* I2C4 */
155 [MSTP925] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 25, MSTPSR9, 0), /* I2C5 */ 156 [MSTP925] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 25, MSTPSR9, 0), /* I2C5 */
157 [MSTP815] = SH_CLK_MSTP32_STS(&zs_clk, SMSTPCR8, 15, MSTPSR8, 0), /* SATA0 */
158 [MSTP814] = SH_CLK_MSTP32_STS(&zs_clk, SMSTPCR8, 14, MSTPSR8, 0), /* SATA1 */
156 [MSTP813] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR8, 13, MSTPSR8, 0), /* Ether */ 159 [MSTP813] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR8, 13, MSTPSR8, 0), /* Ether */
157 [MSTP811] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 11, MSTPSR8, 0), /* VIN0 */ 160 [MSTP811] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 11, MSTPSR8, 0), /* VIN0 */
158 [MSTP810] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 10, MSTPSR8, 0), /* VIN1 */ 161 [MSTP810] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 10, MSTPSR8, 0), /* VIN1 */
@@ -229,6 +232,8 @@ static struct clk_lookup lookups[] = {
229 CLKDEV_DEV_ID("r8a7791-vin.0", &mstp_clks[MSTP811]), 232 CLKDEV_DEV_ID("r8a7791-vin.0", &mstp_clks[MSTP811]),
230 CLKDEV_DEV_ID("r8a7791-vin.1", &mstp_clks[MSTP810]), 233 CLKDEV_DEV_ID("r8a7791-vin.1", &mstp_clks[MSTP810]),
231 CLKDEV_DEV_ID("r8a7791-vin.2", &mstp_clks[MSTP809]), 234 CLKDEV_DEV_ID("r8a7791-vin.2", &mstp_clks[MSTP809]),
235 CLKDEV_DEV_ID("sata-r8a7791.0", &mstp_clks[MSTP815]),
236 CLKDEV_DEV_ID("sata-r8a7791.1", &mstp_clks[MSTP814]),
232}; 237};
233 238
234#define R8A7791_CLOCK_ROOT(e, m, p0, p1, p30, p31) \ 239#define R8A7791_CLOCK_ROOT(e, m, p0, p1, p30, p31) \