Skip to content

Commit 57ee64f

Browse files
khoa-nguyen-18KhiemNguyenT
authored andcommitted
hal: renesas: Keep a backport for UCK, OCTA, U60CK clock marcro
Keep a backport for UCK, OCTA, U60CK clock marcro, due to it will be remove in next FSP version. Signed-off-by: Khoa Nguyen <[email protected]>
1 parent af4898e commit 57ee64f

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

drivers/ra/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,8 @@ Patch List:
138138
drivers/ra/fsp/src/bsp/cmsis/Device/RENESAS/Include/R7FA8M1AH.h
139139
drivers/ra/fsp/src/bsp/cmsis/Device/RENESAS/Include/R7FA8D1BH.h
140140
drivers/ra/fsp/src/bsp/cmsis/Device/RENESAS/Include/R7FA8T1AH.h
141+
142+
* Keep a backport for UCK, OCTA, U60CK clock marcro in bsp_clocks.c
143+
Impacted files:
144+
drivers/ra/fsp/src/bsp/mcu/all/bsp_clocks.c
145+
Note: This will be remove in next FSP version

drivers/ra/fsp/src/bsp/mcu/all/bsp_clocks.c

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,22 @@
127127
#define BSP_PRV_PERIPHERAL_CLK_RDY_BIT_POS (7U)
128128
#define BSP_PRV_PERIPHERAL_CLK_RDY_BIT_MASK (1U << BSP_PRV_PERIPHERAL_CLK_RDY_BIT_POS)
129129

130+
/* Prepare for migrate */
131+
#if !BSP_MCU_GROUP_RA8P1
132+
#ifdef BSP_CFG_UCK_DIV
133+
#define BSP_CFG_UCLK_SOURCE BSP_CFG_UCK_SOURCE
134+
#define BSP_CFG_UCLK_DIV BSP_CFG_UCK_DIV
135+
#endif
136+
#if BSP_FEATURE_BSP_HAS_OCTASPI_CLOCK
137+
#define BSP_CFG_OCTACLK_SOURCE BSP_CFG_OCTA_SOURCE
138+
#define BSP_CFG_OCTACLK_DIV BSP_CFG_OCTA_DIV
139+
#endif
140+
#if BSP_FEATURE_BSP_HAS_USB60_CLOCK
141+
#define BSP_CFG_USB60CLK_SOURCE BSP_CFG_U60CK_SOURCE
142+
#define BSP_CFG_USB60CLK_DIV BSP_CFG_U60CK_DIV
143+
#endif
144+
#endif
145+
130146
#ifdef BSP_CFG_UCLK_DIV
131147

132148
/* If the MCU has SCKDIVCR2 for USBCK configuration. */
@@ -634,7 +650,7 @@
634650
#endif
635651

636652
#if defined(BSP_CFG_OPTION_SETTING_OFS1_ICSATS) && BSP_FEATURE_BSP_HAS_CLOCK_SUPPLY_TYPEB
637-
#define BSP_PRV_CLOCK_SUPPLY_TYPE_B (0 == BSP_CFG_OPTION_SETTING_OFS1_ICSATS)
653+
#define BSP_PRV_CLOCK_SUPPLY_TYPE_B (0 == BSP_CFG_ROM_REG_OFS1_ICSATS)
638654
#else
639655
#define BSP_PRV_CLOCK_SUPPLY_TYPE_B (0)
640656
#endif

0 commit comments

Comments
 (0)