Skip to content

Commit 4c30c82

Browse files
committed
clock: mcux: Use FSL_FEATURE_MCG_FFCLK_DIV to conditionalize
Use the FSL_FEATURE_MCG_FFCLK_DIV define to decide if we should call the api to get Fixed Frequency Clock. This fixes Issue #49924 Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent ef3e7a5 commit 4c30c82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/clock_control/clock_control_mcux_mcg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static int mcux_mcg_get_rate(const struct device *dev,
3737
clock_name_t clock_name;
3838

3939
switch ((uint32_t) sub_system) {
40-
#ifdef kCLOCK_McgFixedFreqClk
40+
#if defined(FSL_FEATURE_MCG_FFCLK_DIV) && (FSL_FEATURE_MCG_FFCLK_DIV)
4141
case KINETIS_MCG_FIXED_FREQ_CLK:
4242
clock_name = kCLOCK_McgFixedFreqClk;
4343
break;

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ manifest:
9393
groups:
9494
- hal
9595
- name: hal_nxp
96-
revision: 5fb81c9d0a2da9cf889587f35990edbe9c6f137d
96+
revision: 708c95825b0d5279620935a1356299fff5dfbc6e
9797
path: modules/hal/nxp
9898
groups:
9999
- hal

0 commit comments

Comments
 (0)