@@ -503,23 +503,25 @@ static struct clk *late_main_clks[] = {
503503 & sh7372_fsidivb_clk ,
504504};
505505
506- enum { MSTP001 ,
506+ enum { MSTP001 , MSTP000 ,
507507 MSTP131 , MSTP130 ,
508508 MSTP129 , MSTP128 , MSTP127 , MSTP126 , MSTP125 ,
509509 MSTP118 , MSTP117 , MSTP116 , MSTP113 ,
510510 MSTP106 , MSTP101 , MSTP100 ,
511511 MSTP223 ,
512- MSTP218 , MSTP217 , MSTP216 ,
513- MSTP207 , MSTP206 , MSTP204 , MSTP203 , MSTP202 , MSTP201 , MSTP200 ,
514- MSTP329 , MSTP328 , MSTP323 , MSTP322 , MSTP314 , MSTP313 , MSTP312 ,
515- MSTP423 , MSTP415 , MSTP413 , MSTP411 , MSTP410 , MSTP406 , MSTP403 ,
512+ MSTP218 , MSTP217 , MSTP216 , MSTP214 , MSTP208 , MSTP207 ,
513+ MSTP206 , MSTP205 , MSTP204 , MSTP203 , MSTP202 , MSTP201 , MSTP200 ,
514+ MSTP328 , MSTP323 , MSTP322 , MSTP314 , MSTP313 , MSTP312 ,
515+ MSTP423 , MSTP415 , MSTP413 , MSTP411 , MSTP410 , MSTP407 , MSTP406 ,
516+ MSTP405 , MSTP404 , MSTP403 , MSTP400 ,
516517 MSTP_NR };
517518
518519#define MSTP (_parent , _reg , _bit , _flags ) \
519520 SH_CLK_MSTP32(_parent, _reg, _bit, _flags)
520521
521522static struct clk mstp_clks [MSTP_NR ] = {
522523 [MSTP001 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR0 , 1 , 0 ), /* IIC2 */
524+ [MSTP000 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR0 , 0 , 0 ), /* MSIOF0 */
523525 [MSTP131 ] = MSTP (& div4_clks [DIV4_B ], SMSTPCR1 , 31 , 0 ), /* VEU3 */
524526 [MSTP130 ] = MSTP (& div4_clks [DIV4_B ], SMSTPCR1 , 30 , 0 ), /* VEU2 */
525527 [MSTP129 ] = MSTP (& div4_clks [DIV4_B ], SMSTPCR1 , 29 , 0 ), /* VEU1 */
@@ -538,14 +540,16 @@ static struct clk mstp_clks[MSTP_NR] = {
538540 [MSTP218 ] = MSTP (& div4_clks [DIV4_HP ], SMSTPCR2 , 18 , 0 ), /* DMAC1 */
539541 [MSTP217 ] = MSTP (& div4_clks [DIV4_HP ], SMSTPCR2 , 17 , 0 ), /* DMAC2 */
540542 [MSTP216 ] = MSTP (& div4_clks [DIV4_HP ], SMSTPCR2 , 16 , 0 ), /* DMAC3 */
543+ [MSTP214 ] = MSTP (& div4_clks [DIV4_HP ], SMSTPCR2 , 14 , 0 ), /* USBDMAC */
544+ [MSTP208 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 8 , 0 ), /* MSIOF1 */
541545 [MSTP207 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 7 , 0 ), /* SCIFA5 */
542546 [MSTP206 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 6 , 0 ), /* SCIFB */
547+ [MSTP205 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 5 , 0 ), /* MSIOF2 */
543548 [MSTP204 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 4 , 0 ), /* SCIFA0 */
544549 [MSTP203 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 3 , 0 ), /* SCIFA1 */
545550 [MSTP202 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 2 , 0 ), /* SCIFA2 */
546551 [MSTP201 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 1 , 0 ), /* SCIFA3 */
547552 [MSTP200 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR2 , 0 , 0 ), /* SCIFA4 */
548- [MSTP329 ] = MSTP (& r_clk , SMSTPCR3 , 29 , 0 ), /* CMT10 */
549553 [MSTP328 ] = MSTP (& div6_clks [DIV6_SPU ], SMSTPCR3 , 28 , 0 ), /* FSI2 */
550554 [MSTP323 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR3 , 23 , 0 ), /* IIC1 */
551555 [MSTP322 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR3 , 22 , 0 ), /* USB0 */
@@ -557,8 +561,12 @@ static struct clk mstp_clks[MSTP_NR] = {
557561 [MSTP413 ] = MSTP (& pllc1_div2_clk , SMSTPCR4 , 13 , 0 ), /* HDMI */
558562 [MSTP411 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR4 , 11 , 0 ), /* IIC3 */
559563 [MSTP410 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR4 , 10 , 0 ), /* IIC4 */
564+ [MSTP407 ] = MSTP (& div4_clks [DIV4_HP ], SMSTPCR4 , 7 , 0 ), /* USB-DMAC1 */
560565 [MSTP406 ] = MSTP (& div6_clks [DIV6_SUB ], SMSTPCR4 , 6 , 0 ), /* USB1 */
566+ [MSTP405 ] = MSTP (& r_clk , SMSTPCR4 , 5 , 0 ), /* CMT4 */
567+ [MSTP404 ] = MSTP (& r_clk , SMSTPCR4 , 4 , 0 ), /* CMT3 */
561568 [MSTP403 ] = MSTP (& r_clk , SMSTPCR4 , 3 , 0 ), /* KEYSC */
569+ [MSTP400 ] = MSTP (& r_clk , SMSTPCR4 , 0 , 0 ), /* CMT2 */
562570};
563571
564572static struct clk_lookup lookups [] = {
@@ -609,6 +617,7 @@ static struct clk_lookup lookups[] = {
609617
610618 /* MSTP32 clocks */
611619 CLKDEV_DEV_ID ("i2c-sh_mobile.2" , & mstp_clks [MSTP001 ]), /* IIC2 */
620+ CLKDEV_DEV_ID ("spi_sh_msiof.0" , & mstp_clks [MSTP000 ]), /* MSIOF0 */
612621 CLKDEV_DEV_ID ("uio_pdrv_genirq.4" , & mstp_clks [MSTP131 ]), /* VEU3 */
613622 CLKDEV_DEV_ID ("uio_pdrv_genirq.3" , & mstp_clks [MSTP130 ]), /* VEU2 */
614623 CLKDEV_DEV_ID ("uio_pdrv_genirq.2" , & mstp_clks [MSTP129 ]), /* VEU1 */
@@ -629,14 +638,16 @@ static struct clk_lookup lookups[] = {
629638 CLKDEV_DEV_ID ("sh-dma-engine.0" , & mstp_clks [MSTP218 ]), /* DMAC1 */
630639 CLKDEV_DEV_ID ("sh-dma-engine.1" , & mstp_clks [MSTP217 ]), /* DMAC2 */
631640 CLKDEV_DEV_ID ("sh-dma-engine.2" , & mstp_clks [MSTP216 ]), /* DMAC3 */
641+ CLKDEV_DEV_ID ("sh-dma-engine.3" , & mstp_clks [MSTP214 ]), /* USB-DMAC0 */
642+ CLKDEV_DEV_ID ("spi_sh_msiof.1" , & mstp_clks [MSTP208 ]), /* MSIOF1 */
632643 CLKDEV_DEV_ID ("sh-sci.5" , & mstp_clks [MSTP207 ]), /* SCIFA5 */
633644 CLKDEV_DEV_ID ("sh-sci.6" , & mstp_clks [MSTP206 ]), /* SCIFB */
645+ CLKDEV_DEV_ID ("spi_sh_msiof.2" , & mstp_clks [MSTP205 ]), /* MSIOF2 */
634646 CLKDEV_DEV_ID ("sh-sci.0" , & mstp_clks [MSTP204 ]), /* SCIFA0 */
635647 CLKDEV_DEV_ID ("sh-sci.1" , & mstp_clks [MSTP203 ]), /* SCIFA1 */
636648 CLKDEV_DEV_ID ("sh-sci.2" , & mstp_clks [MSTP202 ]), /* SCIFA2 */
637649 CLKDEV_DEV_ID ("sh-sci.3" , & mstp_clks [MSTP201 ]), /* SCIFA3 */
638650 CLKDEV_DEV_ID ("sh-sci.4" , & mstp_clks [MSTP200 ]), /* SCIFA4 */
639- CLKDEV_DEV_ID ("sh_cmt.10" , & mstp_clks [MSTP329 ]), /* CMT10 */
640651 CLKDEV_DEV_ID ("sh_fsi2" , & mstp_clks [MSTP328 ]), /* FSI2 */
641652 CLKDEV_DEV_ID ("i2c-sh_mobile.1" , & mstp_clks [MSTP323 ]), /* IIC1 */
642653 CLKDEV_DEV_ID ("r8a66597_hcd.0" , & mstp_clks [MSTP322 ]), /* USB0 */
@@ -650,10 +661,14 @@ static struct clk_lookup lookups[] = {
650661 CLKDEV_DEV_ID ("sh-mobile-hdmi" , & mstp_clks [MSTP413 ]), /* HDMI */
651662 CLKDEV_DEV_ID ("i2c-sh_mobile.3" , & mstp_clks [MSTP411 ]), /* IIC3 */
652663 CLKDEV_DEV_ID ("i2c-sh_mobile.4" , & mstp_clks [MSTP410 ]), /* IIC4 */
664+ CLKDEV_DEV_ID ("sh-dma-engine.4" , & mstp_clks [MSTP407 ]), /* USB-DMAC1 */
653665 CLKDEV_DEV_ID ("r8a66597_hcd.1" , & mstp_clks [MSTP406 ]), /* USB1 */
654666 CLKDEV_DEV_ID ("r8a66597_udc.1" , & mstp_clks [MSTP406 ]), /* USB1 */
655667 CLKDEV_DEV_ID ("renesas_usbhs.1" , & mstp_clks [MSTP406 ]), /* USB1 */
668+ CLKDEV_DEV_ID ("sh_cmt.4" , & mstp_clks [MSTP405 ]), /* CMT4 */
669+ CLKDEV_DEV_ID ("sh_cmt.3" , & mstp_clks [MSTP404 ]), /* CMT3 */
656670 CLKDEV_DEV_ID ("sh_keysc.0" , & mstp_clks [MSTP403 ]), /* KEYSC */
671+ CLKDEV_DEV_ID ("sh_cmt.2" , & mstp_clks [MSTP400 ]), /* CMT2 */
657672
658673 CLKDEV_ICK_ID ("hdmi" , "sh_mobile_lcdc_fb.1" ,
659674 & div6_reparent_clks [DIV6_HDMI ]),
0 commit comments