aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentine Barshak <valentine.barshak@cogentembedded.com>2014-01-08 11:31:23 -0500
committerSimon Horman <horms+renesas@verge.net.au>2014-02-03 20:25:01 -0500
commitb89dfdfad949798e1624dd2ff494bdb7ac943b04 (patch)
treef4515ef40c1c2a2135f94aa84abe6a6b2cb7b720
parent2c578a1be846bde49cb0a916c20f526f27b59e89 (diff)
ARM: shmobile: r8a7790: Add VIN clock support
This adds VIN[0-3] clock support to R8A7790 SoC. Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com> [horms+renesas@verge.net.au: manually applied] Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/mach-shmobile/clock-r8a7790.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c
index 58f3dcf322fd..b2b232335ceb 100644
--- a/arch/arm/mach-shmobile/clock-r8a7790.c
+++ b/arch/arm/mach-shmobile/clock-r8a7790.c
@@ -197,6 +197,7 @@ enum {
197 MSTP931, MSTP930, MSTP929, MSTP928, 197 MSTP931, MSTP930, MSTP929, MSTP928,
198 MSTP917, 198 MSTP917,
199 MSTP813, 199 MSTP813,
200 MSTP811, MSTP810, MSTP809, MSTP808,
200 MSTP726, MSTP725, MSTP724, MSTP723, MSTP722, MSTP721, MSTP720, 201 MSTP726, MSTP725, MSTP724, MSTP723, MSTP722, MSTP721, MSTP720,
201 MSTP717, MSTP716, 202 MSTP717, MSTP716,
202 MSTP704, 203 MSTP704,
@@ -226,6 +227,10 @@ static struct clk mstp_clks[MSTP_NR] = {
226 [MSTP928] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 28, MSTPSR9, 0), /* I2C3 */ 227 [MSTP928] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR9, 28, MSTPSR9, 0), /* I2C3 */
227 [MSTP917] = SH_CLK_MSTP32_STS(&qspi_clk, SMSTPCR9, 17, MSTPSR9, 0), /* QSPI */ 228 [MSTP917] = SH_CLK_MSTP32_STS(&qspi_clk, SMSTPCR9, 17, MSTPSR9, 0), /* QSPI */
228 [MSTP813] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR8, 13, MSTPSR8, 0), /* Ether */ 229 [MSTP813] = SH_CLK_MSTP32_STS(&p_clk, SMSTPCR8, 13, MSTPSR8, 0), /* Ether */
230 [MSTP811] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 11, MSTPSR8, 0), /* VIN0 */
231 [MSTP810] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 10, MSTPSR8, 0), /* VIN1 */
232 [MSTP809] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 9, MSTPSR8, 0), /* VIN2 */
233 [MSTP808] = SH_CLK_MSTP32_STS(&zg_clk, SMSTPCR8, 8, MSTPSR8, 0), /* VIN3 */
229 [MSTP726] = SH_CLK_MSTP32_STS(&zx_clk, SMSTPCR7, 26, MSTPSR7, 0), /* LVDS0 */ 234 [MSTP726] = SH_CLK_MSTP32_STS(&zx_clk, SMSTPCR7, 26, MSTPSR7, 0), /* LVDS0 */
230 [MSTP725] = SH_CLK_MSTP32_STS(&zx_clk, SMSTPCR7, 25, MSTPSR7, 0), /* LVDS1 */ 235 [MSTP725] = SH_CLK_MSTP32_STS(&zx_clk, SMSTPCR7, 25, MSTPSR7, 0), /* LVDS1 */
231 [MSTP724] = SH_CLK_MSTP32_STS(&zx_clk, SMSTPCR7, 24, MSTPSR7, 0), /* DU0 */ 236 [MSTP724] = SH_CLK_MSTP32_STS(&zx_clk, SMSTPCR7, 24, MSTPSR7, 0), /* DU0 */
@@ -312,6 +317,10 @@ static struct clk_lookup lookups[] = {
312 CLKDEV_DEV_ID("e6540000.i2c", &mstp_clks[MSTP928]), 317 CLKDEV_DEV_ID("e6540000.i2c", &mstp_clks[MSTP928]),
313 CLKDEV_DEV_ID("i2c-rcar_gen2.3", &mstp_clks[MSTP928]), 318 CLKDEV_DEV_ID("i2c-rcar_gen2.3", &mstp_clks[MSTP928]),
314 CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]), 319 CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]),
320 CLKDEV_DEV_ID("r8a7790-vin.0", &mstp_clks[MSTP811]),
321 CLKDEV_DEV_ID("r8a7790-vin.1", &mstp_clks[MSTP810]),
322 CLKDEV_DEV_ID("r8a7790-vin.2", &mstp_clks[MSTP809]),
323 CLKDEV_DEV_ID("r8a7790-vin.3", &mstp_clks[MSTP808]),
315 CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]), 324 CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]),
316 CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), 325 CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]),
317 CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP502]), 326 CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP502]),