summaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-starfive.c
AgeCommit message (Collapse)AuthorFilesLines
2022-09-15clocksource: starfive: Remove struct reset_controlLey Foon Tan1-4/+3
Remove struct reset_control from starfive_clkevt struct, uses local struct reset_control instead. Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
2022-09-01clocksource:timer:Modify compatible nameXingyu Wu1-1/+1
Modify compatible name to 'starfive,jh7110-timers'. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-07-12clocksource: starfive: Update timer namesLey Foon Tan1-3/+6
The existing implementation uses DT clock-names 'timer0', 'timer1' and etc as timer names. This will have issue if there are two timer instance IPs in the system. This patch update timer names to format below, example: timer@13050000.ch0 timer@13050000.ch1 timer@13050000.ch2 timer@13050000.ch3 Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
2022-07-12clocksource: starfive: Add reset control supportxingyu.wu1-0/+20
Reset the timer if the reset control is available. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
2022-07-12clocksource: starfive: Update compatible string to "starfive,timers"Ley Foon Tan1-2/+1
Update compatible string to "starfive,timers". Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
2022-06-30clocksource: starfive: Allocates struct starfive_clkevt in driverxingyu.wu1-32/+32
Allocates struct starfive_clkevt in driver dynamically instead of global struct to support more than one instance of IP. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
2022-06-30drivers:clocksource:Modify timer driver and add exit codesxingyu.wu1-5/+23
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-06-30drivers:clocksource:Modify timer driver formatxingyu.wu1-16/+23
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-05-07drivers:timer:Fix warning by checkpatch.plxingyu.wu1-16/+25
Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
2021-11-26clocksource: add starfive hw-timer driverSamin Guo1-0/+410
This driver applies to JH7100|JH7110 Signed-off-by: samin <samin.guo@starfivetech.com>