Skip to content

Commit 098db0c

Browse files
committed
include: clock_control: Add define configurations for RX26T MCU
RX26T MCU uses a clock source marcos with different value compared to the previous, this commit add new one Signed-off-by: Quy Tran <[email protected]>
1 parent 5d1624b commit 098db0c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

include/zephyr/drivers/clock_control/renesas_rx_cgc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
(UTIL_CAT(RX_LPT_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))),\
2828
(RX_LPT_CLOCKS_NON_USE))
2929

30+
#define RX_CGC_PLL_CLK_SRC(node_id) \
31+
COND_CODE_1(DT_NODE_HAS_STATUS(node_id, okay), \
32+
(UTIL_CAT(RX_PLL_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))), \
33+
(RX_CLOCKS_CLOCK_DISABLED))
34+
3035
struct clock_control_rx_pclk_cfg {
3136
const struct device *clock_src_dev;
3237
uint32_t clk_div;

include/zephyr/dt-bindings/clock/rx_clock.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
#define RX_LPT_CLOCKS_NON_USE 2
2525
#define RX_LPT_CLOCKS_SOURCE_CLOCK_LOCO 3
2626

27+
#ifdef CONFIG_SOC_SERIES_RX26T
28+
#define RX_PLL_CLOCKS_SOURCE_CLOCK_MAIN_OSC 0
29+
#define RX_PLL_CLOCKS_SOURCE_CLOCK_HOCO 1
30+
#endif /* CONFIG_SOC_SERIES_RX26T */
31+
2732
#define RX_PLL_MUL_4 7
2833
#define RX_PLL_MUL_4_5 8
2934
#define RX_PLL_MUL_5 9

0 commit comments

Comments
 (0)