Skip to content

Commit 5ee9392

Browse files
danieldegrassedleach02
authored andcommitted
drivers: memc: don't check pin control return code
Some SOCs, such as the RT1064 and RT1024, use internal flash and don't define pinmux settings for the flexspi. Don't check the return code of pinctrl_apply_state, because the flexspi driver will fail to initialize when the pin mux settings are simply not required. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent e2fe582 commit 5ee9392

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/memc/memc_mcux_flexspi.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,11 @@ static int memc_flexspi_init(const struct device *dev)
143143
return 0;
144144
}
145145

146-
/* Apply pinctrl state */
147-
#ifdef CONFIG_PINCTRL
146+
/*
147+
* SOCs such as the RT1064 and RT1024 have internal flash, and no pinmux
148+
* settings, so skip pin control state.
149+
*/
150+
#if defined(CONFIG_PINCTRL) && !(defined(CONFIG_SOC_MIMXRT1064) || defined(CONFIG_SOC_MIMXRT1024))
148151
int ret;
149152

150153
ret = pinctrl_apply_state(data->pincfg, PINCTRL_STATE_DEFAULT);

0 commit comments

Comments
 (0)