Skip to content

drivers: timer : fix rtmr and slow timer. #88590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions drivers/timer/realtek_rts5912_rtmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) == 1,

#define RTMR_REG ((RTOSTMR_Type *)DT_INST_REG_ADDR(0))

#define SLWTMR_REG \
((RTOSTMR_Type *)(DT_REG_ADDR(DT_COMPAT_GET_ANY_STATUS_OKAY(realtek_rts5912_slwtimer))))
#define SLWTMR_REG ((RTOSTMR_Type *)(DT_REG_ADDR(DT_NODELABEL(slwtmr0))))

#define SSCON_REG ((SYSTEM_Type *)(DT_REG_ADDR(DT_NODELABEL(sccon))))

Expand Down
2 changes: 1 addition & 1 deletion dts/arm/realtek/ec/rts5912.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
max-value = <0xFFFFFFFF>;
clock-frequency = <1000000>;
prescaler = <0>;
status = "okay";
status = "disabled";
};

rtmr: rtmr@4000c500 {
Expand Down
1 change: 1 addition & 0 deletions soc/realtek/ec/rts5912/Kconfig.defconfig.rts5912
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config SYS_CLOCK_TICKS_PER_SEC

config ARCH_HAS_CUSTOM_BUSY_WAIT
default y
depends on !COUNTER_REALTEK_RTS5912_SLWTMR

endif # REALTEK_RTS5912_RTMR

Expand Down