drivers: counter: Refactor drivers to use shared init priority
Refactors all of the counter drivers to use a shared driver class initialization priority configuration, CONFIG_COUNTER_INIT_PRIORITY, to allow configuring counter 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. The exceptions are the maxim_ds3231 and mcp7940n drivers which have a dependency on a SPI driver and must therefore initialize later than the default device priority. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
e297f8ee26
commit
165963c115
28 changed files with 33 additions and 38 deletions
|
@ -271,7 +271,7 @@ static struct mcux_rtc_config mcux_rtc_config_0 = {
|
|||
|
||||
DEVICE_DT_INST_DEFINE(0, &mcux_rtc_init, NULL,
|
||||
&mcux_rtc_data_0, &mcux_rtc_config_0.info,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
POST_KERNEL, CONFIG_COUNTER_INIT_PRIORITY,
|
||||
&mcux_rtc_driver_api);
|
||||
|
||||
static void mcux_rtc_irq_config_0(const struct device *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue