drivers: counter: Add vendor prefix ti to timer clock
Add vendor prefix ti to timer clock property prescale and divider. Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
This commit is contained in:
parent
a631df5cd8
commit
f672430b3b
@ -277,8 +277,8 @@ static void counter_mspm0_isr(void *arg)
|
||||
.clockSel = MSPM0_CLOCK_PERIPH_REG_MASK( \
|
||||
DT_CLOCKS_CELL_BY_IDX(DT_INST_PARENT(n), 0, clk)), \
|
||||
.divideRatio = MSPM0_CLK_DIV(DT_PROP(DT_INST_PARENT(n), \
|
||||
clk_div)), \
|
||||
.prescale = DT_PROP(DT_INST_PARENT(n), clk_prescaler), \
|
||||
ti_clk_div)), \
|
||||
.prescale = DT_PROP(DT_INST_PARENT(n), ti_clk_prescaler), \
|
||||
}, \
|
||||
.counter_info = {.max_top_value = (DT_INST_PROP(n, resolution) == 32) \
|
||||
? UINT32_MAX : UINT16_MAX, \
|
||||
|
||||
@ -33,8 +33,8 @@
|
||||
reg = <0x40084000 0x2000>;
|
||||
clocks = <&ckm MSPM0_CLOCK_LFCLK>;
|
||||
interrupts = <16 0>;
|
||||
clk-prescaler = <255>;
|
||||
clk-div = <1>;
|
||||
ti,clk-prescaler = <255>;
|
||||
ti,clk-div = <1>;
|
||||
status = "disabled";
|
||||
|
||||
counter0: counter {
|
||||
|
||||
@ -14,14 +14,14 @@ properties:
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
clk-prescaler:
|
||||
ti,clk-prescaler:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
TIMCLK clock source prescaler value.
|
||||
Valid range [0 ... 255].
|
||||
|
||||
clk-div:
|
||||
ti,clk-div:
|
||||
type: int
|
||||
required: true
|
||||
default: 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user