Skip to content

Commit 5ecafc1

Browse files
XBurstdlezcano
authored andcommitted
clocksource/drivers/ingenic: Add support for the Ingenic X1000 OST.
X1000 and SoCs after X1000 (such as X1500 and X1830) had a separate OST, it no longer belongs to TCU. This driver will register both a clocksource and a sched_clock to the system. Tested-by: 周正 (Zhou Zheng) <[email protected]> Co-developed-by: 漆鹏振 (Qi Pengzhen) <[email protected]> Signed-off-by: 漆鹏振 (Qi Pengzhen) <[email protected]> Signed-off-by: 周琰杰 (Zhou Yanjie) <[email protected]> Reviewed-by: Paul Cercueil <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ac756d0 commit 5ecafc1

File tree

3 files changed

+551
-1
lines changed

3 files changed

+551
-1
lines changed

drivers/clocksource/Kconfig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,18 @@ config INGENIC_TIMER
697697
help
698698
Support for the timer/counter unit of the Ingenic JZ SoCs.
699699

700+
config INGENIC_SYSOST
701+
bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
702+
depends on MIPS || COMPILE_TEST
703+
depends on COMMON_CLK
704+
select MFD_SYSCON
705+
select TIMER_OF
706+
select IRQ_DOMAIN
707+
help
708+
Support for the SYSOST of the Ingenic X Series SoCs.
709+
700710
config INGENIC_OST
701-
bool "Clocksource for Ingenic OS Timer"
711+
bool "Clocksource using the OST in Ingenic JZ SoCs"
702712
depends on MIPS || COMPILE_TEST
703713
depends on COMMON_CLK
704714
select MFD_SYSCON

drivers/clocksource/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ obj-$(CONFIG_H8300_TMR8) += h8300_timer8.o
8282
obj-$(CONFIG_H8300_TMR16) += h8300_timer16.o
8383
obj-$(CONFIG_H8300_TPU) += h8300_tpu.o
8484
obj-$(CONFIG_INGENIC_OST) += ingenic-ost.o
85+
obj-$(CONFIG_INGENIC_SYSOST) += ingenic-sysost.o
8586
obj-$(CONFIG_INGENIC_TIMER) += ingenic-timer.o
8687
obj-$(CONFIG_CLKSRC_ST_LPC) += clksrc_st_lpc.o
8788
obj-$(CONFIG_X86_NUMACHIP) += numachip.o

0 commit comments

Comments
 (0)