drivers: timer : fix rtmr and slow timer.
RTMR use slow timer be the busy_wait timers, only ARCH_HAS_CUSTOM_BUSY_WAIT if slow timer disabled. Signed-off-by: Titan Chen <titan.chen@realtek.com>
This commit is contained in:
parent
f9168ae464
commit
5179463750
3 changed files with 3 additions and 3 deletions
|
@ -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))))
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
max-value = <0xFFFFFFFF>;
|
||||
clock-frequency = <1000000>;
|
||||
prescaler = <0>;
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
rtmr: rtmr@4000c500 {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue