Skip to content

Commit a044862

Browse files
lucien-nxpjhedberg
authored andcommitted
drivers: clock_control: adapt clock driver for mcxe24x series
- add CONFIG_SOC_SERIES_MCXE24X judgment in driver Signed-off-by: Lucien Zhao <[email protected]>
1 parent eebdcb7 commit a044862

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clock_control/clock_control_mcux_scg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ static int mcux_scg_get_rate(const struct device *dev,
4646
case KINETIS_SCG_BUS_CLK:
4747
clock_name = kCLOCK_BusClk;
4848
break;
49-
#if !(defined(CONFIG_SOC_MKE17Z7) || defined(CONFIG_SOC_MKE17Z9))
49+
#if !(defined(CONFIG_SOC_MKE17Z7) || defined(CONFIG_SOC_MKE17Z9) \
50+
|| defined(CONFIG_SOC_SERIES_MCXE24X))
5051
case KINETIS_SCG_FLEXBUS_CLK:
5152
clock_name = kCLOCK_FlexBusClk;
5253
break;

0 commit comments

Comments
 (0)