ARM: mach-shmobile: add TMU platform data for sh7372
Magnus Damm
maintainerPATCH 1/1 ARM: mach-shmobile: add TMU platform data for sh7372
From: Magnus Damm <[email protected]>
This patch adds support for the two first channels of the TMU0 timer block on sh7372. One channel is used for clock event, the other for clock source.
Signed-off-by Magnus Damm <[email protected]>
---
arch/arm/mach-shmobile/clock-sh7372.c | 5 ++ arch/arm/mach-shmobile/setup-sh7372.c | 63 +++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-)
arch/arm/mach-shmobile/clock-sh7372.c +4 -1
@@ -394,7 +394,7 @@ static struct clk div6_reparent_clks[DIVenum {MSTP001 ,MSTP131 ,MSTP130 , -MSTP129 ,MSTP128 ,MSTP127 ,MSTP126 , +MSTP129 ,MSTP128 ,MSTP127 ,MSTP126 ,MSTP125 ,MSTP118 ,MSTP117 ,MSTP116 ,MSTP106 ,MSTP101 ,MSTP100 ,MSTP223 ,
@@ -414,6 +414,7 @@ static struct clk mstp_clks[MSTP_NR] = { [MSTP128] = MSTP(&div4_clks[DIV4_B], SMSTPCR1, 28, 0), /* VEU0 */ [MSTP127] = MSTP(&div4_clks[DIV4_B], SMSTPCR1, 27, 0), /* CEU */ [MSTP126] = MSTP(&div4_clks[DIV4_B], SMSTPCR1, 26, 0), /* CSI2 */ + [MSTP125] = MSTP(&div6_clks[DIV6_SUB], SMSTPCR1, 25, 0), /* TMU0 */ [MSTP118] = MSTP(&div4_clks[DIV4_B], SMSTPCR1, 18, 0), /* DSITX */ [MSTP117] = MSTP(&div4_clks[DIV4_B], SMSTPCR1, 17, 0), /* LCDC1 */ [MSTP116] = MSTP(&div6_clks[DIV6_SUB], SMSTPCR1, 16, 0), /* IIC0 */
@@ -501,6 +502,8 @@ static struct clk_lookup lookups[] = {CLKDEV_DEV_ID ("uio_pdrv_genirq.1" , &mstp_clks[MSTP128 ]),/* VEU0 */ CLKDEV_DEV_ID ("sh_mobile_ceu.0" , &mstp_clks[MSTP127 ]),/* CEU */ CLKDEV_DEV_ID ("sh-mobile-csi2.0" , &mstp_clks[MSTP126 ]),/* CSI2 */ +CLKDEV_DEV_ID ("sh_tmu.0" , &mstp_clks[MSTP125 ]),/* TMU00 */ +CLKDEV_DEV_ID ("sh_tmu.1" , &mstp_clks[MSTP125 ]),/* TMU01 */ CLKDEV_DEV_ID ("sh-mipi-dsi.0" , &mstp_clks[MSTP118 ]),/* DSITX */ CLKDEV_DEV_ID ("sh_mobile_lcdc_fb.1" , &mstp_clks[MSTP117 ]),/* LCDC1 */ CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP116]), /* IIC0 */
arch/arm/mach-shmobile/setup-sh7372.c +63 -0
75 lines not on this page · raw message
Quoted 6 lines
This patch adds support for the two first channels of the TMU0 timer block on sh7372. One channel is used for clock event, the other for clock source.
Signed-off-by Magnus Damm <[email protected]>
Yes.
It works for me
Tested-by Kuninori Morimoto <[email protected]>
Best regards
--
Kuninori Morimoto