drivers: flash: Refactor drivers to use shared init priority
Refactors all of the on-chip flash drivers to use a shared driver class initialization priority configuration, CONFIG_FLASH_INIT_PRIORITY, to allow configuring flash drivers separately from other devices. This is similar to other driver classes like I2C and SPI. The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to preserve the existing default initialization priority for most drivers. Driver-specific options for SPI-based flash drivers are left intact because they need to be initialized at a different priority than on-chip flash drivers. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
81ea529960
commit
e0cb96c4e3
19 changed files with 26 additions and 18 deletions
|
@ -284,4 +284,4 @@ static int flash_mcux_init(const struct device *dev)
|
|||
|
||||
DEVICE_DT_INST_DEFINE(0, flash_mcux_init, NULL,
|
||||
&flash_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_mcux_api);
|
||||
CONFIG_FLASH_INIT_PRIORITY, &flash_mcux_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue