Skip to content

Commit 44f0c03

Browse files
NeilChen93kartben
authored andcommitted
drivers: clock_control: update syscon driver for MCXA153
Add #if check whether the PORT count is greater than 4. Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
1 parent c41a265 commit 44f0c03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clock_control/clock_control_mcux_syscon.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ static int mcux_lpc_syscon_clock_control_on(const struct device *dev,
5959
case MCUX_PORT3_CLK:
6060
CLOCK_EnableClock(kCLOCK_GatePORT3);
6161
break;
62+
#if (defined(FSL_FEATURE_SOC_PORT_COUNT) && (FSL_FEATURE_SOC_PORT_COUNT > 4))
6263
case MCUX_PORT4_CLK:
6364
CLOCK_EnableClock(kCLOCK_GatePORT4);
6465
break;
66+
#endif /* defined(FSL_FEATURE_SOC_PORT_COUNT) */
6567
#else
6668
case MCUX_PORT0_CLK:
6769
CLOCK_EnableClock(kCLOCK_Port0);

0 commit comments

Comments
 (0)