Skip to content

Commit 55b2b01

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 93efead commit 55b2b01

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
@@ -17,6 +17,11 @@
1717
(UTIL_CAT(RX_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))), \
1818
(RX_CLOCKS_CLOCK_DISABLED))
1919

20+
#define RX_CGC_PLL_CLK_SRC(node_id) \
21+
COND_CODE_1(DT_NODE_HAS_STATUS(node_id, okay), \
22+
(UTIL_CAT(RX_PLL_CLOCKS_SOURCE_, DT_NODE_FULL_NAME_UPPER_TOKEN(node_id))), \
23+
(RX_CLOCKS_CLOCK_DISABLED))
24+
2025
struct clock_control_rx_pclk_cfg {
2126
const struct device *clock_src_dev;
2227
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
@@ -14,6 +14,11 @@
1414
#define RX_CLOCKS_SOURCE_PLL 4
1515
#define RX_CLOCKS_SOURCE_CLOCK_DISABLE 0xff
1616

17+
#ifdef CONFIG_SOC_SERIES_RX26T
18+
#define RX_PLL_CLOCKS_SOURCE_CLOCK_MAIN_OSC 0
19+
#define RX_PLL_CLOCKS_SOURCE_CLOCK_HOCO 1
20+
#endif /* CONFIG_SOC_SERIES_RX26T */
21+
1722
#define RX_PLL_MUL_4 7
1823
#define RX_PLL_MUL_4_5 8
1924
#define RX_PLL_MUL_5 9

0 commit comments

Comments
 (0)