Skip to content

Commit 34c522a

Browse files
XBursttsbogend
authored andcommitted
MIPS: CI20: Add second percpu timer for SMP.
1.Add a new TCU channel as the percpu timer of core1, this is to prepare for the subsequent SMP support. The newly added channel will not adversely affect the current single-core state. 2.Adjust the position of TCU node to make it consistent with the order in jz4780.dtsi file. Tested-by: Nikolaus Schaller <[email protected]> # on CI20 Signed-off-by: 周琰杰 (Zhou Yanjie) <[email protected]> Acked-by: Paul Cercueil <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 23c6444 commit 34c522a

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

arch/mips/boot/dts/ingenic/ci20.dts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,20 @@
118118
assigned-clock-rates = <48000000>;
119119
};
120120

121+
&tcu {
122+
/*
123+
* 750 kHz for the system timers and clocksource,
124+
* use channel #0 and #1 for the per cpu system timers,
125+
* and use channel #2 for the clocksource.
126+
*
127+
* 3000 kHz for the OST timer to provide a higher
128+
* precision clocksource.
129+
*/
130+
assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
131+
<&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_OST>;
132+
assigned-clock-rates = <750000>, <750000>, <750000>, <3000000>;
133+
};
134+
121135
&mmc0 {
122136
status = "okay";
123137

@@ -522,13 +536,3 @@
522536
bias-disable;
523537
};
524538
};
525-
526-
&tcu {
527-
/*
528-
* 750 kHz for the system timer and clocksource,
529-
* use channel #0 for the system timer, #1 for the clocksource.
530-
*/
531-
assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
532-
<&tcu TCU_CLK_OST>;
533-
assigned-clock-rates = <750000>, <750000>, <3000000>;
534-
};

0 commit comments

Comments
 (0)