drivers: clock_control: Refactor drivers to use shared init priority
Refactors all of the clock control drivers to use a shared driver class initialization priority configuration, CONFIG_CLOCK_CONTROL_INIT_PRIORITY, to allow configuring clock control drivers separately from other devices. This is similar to other driver classes like I2C and SPI. Most drivers previously used CONFIG_KERNEL_INIT_PRIORITY_OBJECTS or CONFIG_KERNEL_INIT_PRIORITY_DEVICE, therefore the default for this new option is the lower of the two, which means earlier initialization. The even lower defaults for STM32 and Arm Beetle are preserved by SoC-family level overrides. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
365853a213
commit
ed9cb841c3
27 changed files with 36 additions and 41 deletions
|
@ -121,7 +121,7 @@ DEVICE_DT_INST_DEFINE(n, \
|
|||
&mcux_lpc_syscon_clock_control_init, \
|
||||
NULL, \
|
||||
NULL, NULL, \
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
PRE_KERNEL_1, CONFIG_CLOCK_CONTROL_INIT_PRIORITY, \
|
||||
&mcux_lpc_syscon_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(LPC_CLOCK_INIT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue