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>
This commit is contained in:
parent
c41a2652d7
commit
44f0c0389b
1 changed files with 2 additions and 0 deletions
|
@ -59,9 +59,11 @@ static int mcux_lpc_syscon_clock_control_on(const struct device *dev,
|
|||
case MCUX_PORT3_CLK:
|
||||
CLOCK_EnableClock(kCLOCK_GatePORT3);
|
||||
break;
|
||||
#if (defined(FSL_FEATURE_SOC_PORT_COUNT) && (FSL_FEATURE_SOC_PORT_COUNT > 4))
|
||||
case MCUX_PORT4_CLK:
|
||||
CLOCK_EnableClock(kCLOCK_GatePORT4);
|
||||
break;
|
||||
#endif /* defined(FSL_FEATURE_SOC_PORT_COUNT) */
|
||||
#else
|
||||
case MCUX_PORT0_CLK:
|
||||
CLOCK_EnableClock(kCLOCK_Port0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue