Skip to contentSkip to conversation

timer: starfive: Add Starfive timer support

PATCH In review Kuan Lim Lee 2 participants 2 messages Nov 28, 2023 – Dec 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 timer: starfive: Add Starfive timer support

Add timer driver in Starfive SoC. It is an timer that outside of CPU core and inside Starfive SoC.

Changes for v2:
- correct driver name, comment, variable

---
 drivers/timer/Kconfig          |  7 +++
 drivers/timer/Makefile         |  1 +
 drivers/timer/starfive-timer.c | 96 ++++++++++++++++++++++++++++++++++
 3 files changed, 104 insertions(+)
 create mode 100644 drivers/timer/starfive-timer.c
drivers/timer/Kconfig +7 -0
index 915b2af160..a98be9dfae 100644
@@ -326,4 +326,11 @@ config XILINX_TIMER
 	  Select this to enable support for the timer found on
 	  any Xilinx boards (axi timer).
 
+config STARFIVE_TIMER
+	bool "Starfive timer support"
+	depends on TIMER
+	help
+	  Select this to enable support for the timer found on
+	  Starfive SoC.
+
 endmenu
drivers/timer/Makefile +1 -0
index 1ca74805fd..1ef814970b 100644
@@ -34,3 +34,4 @@ obj-$(CONFIG_MTK_TIMER)		+= mtk_timer.o
 obj-$(CONFIG_MCHP_PIT64B_TIMER)	+= mchp-pit64b-timer.o
 obj-$(CONFIG_IMX_GPT_TIMER)	+= imx-gpt-timer.o
 obj-$(CONFIG_XILINX_TIMER)	+= xilinx-timer.o
+obj-$(CONFIG_STARFIVE_TIMER)	+= starfive-timer.o
drivers/timer/starfive-timer.c new file +96 -0

96 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw

Hi Kuan Lim,

Quoted 6 lines · Kuan Lim Lee

Add timer driver in Starfive SoC. It is an timer that outside of CPU core and inside Starfive SoC.

Quoted 8 lines

Changes for v2:
- correct driver name, comment, variable

---
 drivers/timer/Kconfig          |  7 +++
 drivers/timer/Makefile         |  1 +
 drivers/timer/starfive-timer.c | 96 ++++++++++++++++++++++++++++++++++
 3 files changed, 104 insertions(+)
 create mode 100644 drivers/timer/starfive-timer.c

I have already merged your v1 patch.
So could you re-send a patch based on the current master with all the fixes you have in this patch ?

Other than that,
LGTM.

Best regards,
Leo