kernel: deprecate old init levels

PRIMARY, SECONDARY, NANOKERNEL, MICROKERNEL init levels are now
deprecated.

New init levels introduced: PRE_KERNEL_1, PRE_KERNEL_2, POST_KERNEL
to replace them.

Most existing code has instances of PRIMARY replaced with PRE_KERNEL_1,
SECONDARY with POST_KERNEL as SECONDARY has had a longstanding bug
where the documentation specified SECONDARY ran before the kernel started
up, but actually ran afterwards.

Change-Id: I771bc634e9caf7f17dbf214a270bc9967eed7d32
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-11-08 11:06:55 -08:00
commit 0b474eef9c
150 changed files with 281 additions and 238 deletions

View file

@ -178,7 +178,7 @@ static int init_dcache(struct device *unused)
return 0;
}
SYS_INIT(init_dcache, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(init_dcache, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_CACHE_FLUSHING */

View file

@ -43,4 +43,4 @@ static int em11d_arc_init(struct device *arg)
return 0;
}
SYS_INIT(em11d_arc_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(em11d_arc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -40,6 +40,6 @@ static int uart_ns16550_init(struct device *dev)
return 0;
}
SYS_INIT(uart_ns16550_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(uart_ns16550_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_UART_NS16550 */

View file

@ -43,4 +43,4 @@ static int em7d_arc_init(struct device *arg)
return 0;
}
SYS_INIT(em7d_arc_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(em7d_arc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -40,6 +40,6 @@ static int uart_ns16550_init(struct device *dev)
return 0;
}
SYS_INIT(uart_ns16550_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(uart_ns16550_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_UART_NS16550 */

View file

@ -43,4 +43,4 @@ static int em9d_arc_init(struct device *arg)
return 0;
}
SYS_INIT(em9d_arc_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(em9d_arc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -40,6 +40,6 @@ static int uart_ns16550_init(struct device *dev)
return 0;
}
SYS_INIT(uart_ns16550_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(uart_ns16550_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_UART_NS16550 */

View file

@ -45,4 +45,4 @@ static int quark_se_arc_init(struct device *arg)
return 0;
}
SYS_INIT(quark_se_arc_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(quark_se_arc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -35,7 +35,7 @@ static struct quark_se_ipm_controller_config_info ipm_controller_config = {
};
DEVICE_AND_API_INIT(quark_se_ipm, "", quark_se_ipm_controller_initialize,
NULL, &ipm_controller_config,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&ipm_quark_se_api_funcs);
#if CONFIG_IPM_CONSOLE_SENDER
@ -48,7 +48,7 @@ static struct ipm_console_sender_config_info quark_se_ipm_sender_config = {
};
DEVICE_INIT(ipm_console, "ipm_console", ipm_console_sender_init,
NULL, &quark_se_ipm_sender_config,
SECONDARY, CONFIG_IPM_CONSOLE_INIT_PRIORITY);
POST_KERNEL, CONFIG_IPM_CONSOLE_INIT_PRIORITY);
#endif /* CONFIG_IPM_CONSOLE_SENDER */
#endif /* CONFIG_IPM_QUARK_SE */
@ -72,6 +72,6 @@ static int uart_ns16550_init(struct device *dev)
return 0;
}
SYS_INIT(uart_ns16550_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(uart_ns16550_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_UART_NS16550 */

View file

@ -200,4 +200,4 @@ static int atmel_sam3_init(struct device *arg)
return 0;
}
SYS_INIT(atmel_sam3_init, PRIMARY, 0);
SYS_INIT(atmel_sam3_init, PRE_KERNEL_1, 0);

View file

@ -126,4 +126,4 @@ static bool ftpan_59(void)
return false;
}
SYS_INIT(nordicsemi_nrf51_init, PRIMARY, 0);
SYS_INIT(nordicsemi_nrf51_init, PRE_KERNEL_1, 0);

View file

@ -247,4 +247,4 @@ static bool ftpan_36(void)
return false;
}
SYS_INIT(nordicsemi_nrf52_init, PRIMARY, 0);
SYS_INIT(nordicsemi_nrf52_init, PRE_KERNEL_1, 0);

View file

@ -209,4 +209,4 @@ static int fsl_frdm_k64f_init(struct device *arg)
return 0;
}
SYS_INIT(fsl_frdm_k64f_init, PRIMARY, 0);
SYS_INIT(fsl_frdm_k64f_init, PRE_KERNEL_1, 0);

View file

@ -119,6 +119,6 @@ static int uart_k20_init(struct device *dev)
DEVICE_INIT(_uart_k20_init, "", uart_k20_init,
NULL, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_UART_K20 */

View file

@ -63,4 +63,4 @@ static int stm32f1_init(struct device *arg)
return 0;
}
SYS_INIT(stm32f1_init, PRIMARY, 0);
SYS_INIT(stm32f1_init, PRE_KERNEL_1, 0);

View file

@ -64,4 +64,4 @@ static int st_stm32f4_init(struct device *arg)
return 0;
}
SYS_INIT(st_stm32f4_init, PRIMARY, 0);
SYS_INIT(st_stm32f4_init, PRE_KERNEL_1, 0);

View file

@ -51,4 +51,4 @@ static int ti_lm3s6965_init(struct device *arg)
return 0;
}
SYS_INIT(ti_lm3s6965_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(ti_lm3s6965_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -51,6 +51,6 @@ static int uart_stellaris_init(struct device *dev)
return 0;
}
SYS_INIT(uart_stellaris_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
SYS_INIT(uart_stellaris_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
#endif /* CONFIG_UART_STELLARIS */

View file

@ -28,4 +28,4 @@ static int ti_cc3200_init(struct device *arg)
return 0;
}
SYS_INIT(ti_cc3200_init, PRIMARY, 0);
SYS_INIT(ti_cc3200_init, PRE_KERNEL_1, 0);

View file

@ -108,6 +108,6 @@ static int init_cache(struct device *unused)
return 0;
}
SYS_INIT(init_cache, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(init_cache, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_CLFLUSH_DETECT || CONFIG_CACHE_LINE_SIZE_DETECT */

View file

@ -93,7 +93,7 @@ skip_arc_init:
return 0;
}
SYS_INIT(arc_init, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(arc_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /*CONFIG_ARC_INIT*/

View file

@ -40,7 +40,7 @@ static struct quark_se_ipm_controller_config_info ipm_controller_config = {
};
DEVICE_AND_API_INIT(quark_se_ipm, "", quark_se_ipm_controller_initialize,
NULL, &ipm_controller_config,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&ipm_quark_se_api_funcs);
#if defined(CONFIG_IPM_CONSOLE_RECEIVER) && defined(CONFIG_PRINTK)
@ -66,7 +66,7 @@ static struct ipm_console_receiver_config_info quark_se_ipm_receiver_config = {
struct ipm_console_receiver_runtime_data quark_se_ipm_receiver_driver_data;
DEVICE_INIT(ipm_console0, "ipm_console0", ipm_console_receiver_init,
&quark_se_ipm_receiver_driver_data, &quark_se_ipm_receiver_config,
SECONDARY, CONFIG_IPM_CONSOLE_INIT_PRIORITY);
POST_KERNEL, CONFIG_IPM_CONSOLE_INIT_PRIORITY);
#endif /* CONFIG_PRINTK && CONFIG_IPM_CONSOLE_RECEIVER */
#endif /* CONFIG_IPM_QUARK_SE */

View file

@ -72,5 +72,5 @@ static int pci_legacy_bridge_irq_config(struct device *unused)
}
SYS_INIT(pci_legacy_bridge_irq_config,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
#endif /* CONFIG_PCI_LEGACY_BRIDGE */

View file

@ -301,4 +301,4 @@ static int pinmux_init(struct device *port)
return 0;
}
SYS_INIT(pinmux_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(pinmux_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -86,4 +86,4 @@ int pinmux_initialize(struct device *port)
return 0;
}
SYS_INIT(pinmux_initialize, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(pinmux_initialize, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -173,4 +173,4 @@ static int pinmux_initialize(struct device *port)
return 0;
}
SYS_INIT(pinmux_initialize, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(pinmux_initialize, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -697,4 +697,4 @@ static int pinmux_galileo_initialize(struct device *port)
*/
DEVICE_INIT(pmux, CONFIG_PINMUX_NAME, &pinmux_galileo_initialize,
&galileo_pinmux_driver, NULL,
SECONDARY, CONFIG_PINMUX_INIT_PRIORITY);
POST_KERNEL, CONFIG_PINMUX_INIT_PRIORITY);

View file

@ -106,5 +106,5 @@ static int pinmux_dev_galileo_initialize(struct device *port)
DEVICE_AND_API_INIT(pmux_dev, CONFIG_PINMUX_DEV_NAME,
&pinmux_dev_galileo_initialize,
&galileo_pinmux_driver, NULL,
SECONDARY, CONFIG_PINMUX_INIT_PRIORITY,
POST_KERNEL, CONFIG_PINMUX_INIT_PRIORITY,
&api_funcs);

View file

@ -109,4 +109,4 @@ static int pinmux_initialize(struct device *port)
return 0;
}
SYS_INIT(pinmux_initialize, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(pinmux_initialize, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -152,4 +152,4 @@ static int pinmux_initialize(struct device *port)
return 0;
}
SYS_INIT(pinmux_initialize, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(pinmux_initialize, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -306,7 +306,7 @@ require the use of kernel services. The DEVICE_INIT() APIs allow the user to
specify at what time during the boot sequence the init function will be
executed. Any driver will specify one of five initialization levels:
`PRIMARY`
`PRE_KERNEL_1`
Used for devices that have no dependencies, such as those that rely
solely on hardware present in the processor/SOC. These devices cannot
use any kernel services during configuration, since the services are
@ -314,30 +314,21 @@ executed. Any driver will specify one of five initialization levels:
so it's OK to set up interrupts. Init functions at this level run on the
interrupt stack.
`SECONDARY`
`PRE_KERNEL_2`
Used for devices that rely on the initialization of devices initialized
as part of the PRIMARY level. These devices cannot use any kernel
services during configuration, since the kerne services are not yet
available. Init functions at this level run on the interrupt stack.
`NANOKERNEL`
Used for devices that require nanokernel services during configuration.
Init functions at this level run in context of the nanokernel
background task or microkernel idle task depending on kernel
configuration.
`MICROKERNEL`
Used for devices that require microkernel services during
configuration. Init functions at this level run in context of the
microkernel idle task. This init level is skipped if the microkernel is
not enabled.
`POST_KERNEL`
Used for devices that require kernel services during configuration.
Init functions at this level run in context of the kernel main task.
`APPLICATION`
Used for application components (i.e. non-kernel components) that need
automatic configuration. These devices can use all services provided by
the kernel during configuration. Init functions at this level run on
either the nanokernel background task or microkernel idle task
depending on kernel configuration.
the kernel main task.
Within each initialization level you may specify a priority level, relative to
other devices in the same initialization level. The priority level is specified

View file

@ -499,7 +499,7 @@ static struct adc_config adc_config_dev = {
DEVICE_AND_API_INIT(adc_dw, CONFIG_ADC_0_NAME, &adc_dw_init,
&adc_info_dev, &adc_config_dev,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&api_funcs);
static void adc_config_irq(void)

View file

@ -263,7 +263,7 @@ struct adc_info adc_info_dev;
DEVICE_AND_API_INIT(adc_qmsi, CONFIG_ADC_0_NAME, &adc_qmsi_init,
&adc_info_dev, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
(void *)&api_funcs);
static void adc_config_irq(void)

View file

@ -274,7 +274,7 @@ struct adc_info adc_info_dev;
DEVICE_INIT(adc_qmsi_ss, CONFIG_ADC_0_NAME, &adc_qmsi_ss_init,
&adc_info_dev, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
static void adc_config_irq(void)
{

View file

@ -238,6 +238,6 @@ static const struct ti_adc108s102_config adc108s102_config = {
DEVICE_INIT(adc108s102, CONFIG_ADC_0_NAME,
ti_adc108s102_init,
&adc108s102_data, &adc108s102_config,
SECONDARY, CONFIG_ADC_INIT_PRIORITY);
POST_KERNEL, CONFIG_ADC_INIT_PRIORITY);
#endif /* CONFIG_ADC_TI_ADC108S102 */

View file

@ -188,7 +188,7 @@ struct aio_qmsi_cmp_dev_data_t aio_qmsi_cmp_dev_data = {
DEVICE_AND_API_INIT(aio_qmsi_cmp, CONFIG_AIO_COMPARATOR_0_NAME,
&aio_qmsi_cmp_init, &aio_qmsi_cmp_dev_data, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
(void *)&aio_cmp_funcs);
static int aio_cmp_config(struct device *dev)

View file

@ -325,7 +325,7 @@ static const struct clock_control_driver_api _m16src_clock_control_api = {
DEVICE_AND_API_INIT(clock_nrf5_m16src,
CONFIG_CLOCK_CONTROL_NRF5_M16SRC_DRV_NAME,
_clock_control_init, NULL, NULL, PRIMARY,
_clock_control_init, NULL, NULL, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&_m16src_clock_control_api);
@ -337,6 +337,6 @@ static const struct clock_control_driver_api _k32src_clock_control_api = {
DEVICE_AND_API_INIT(clock_nrf5_k32src,
CONFIG_CLOCK_CONTROL_NRF5_K32SRC_DRV_NAME,
_clock_control_init, NULL, NULL, PRIMARY,
_clock_control_init, NULL, NULL, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&_k32src_clock_control_api);

View file

@ -95,7 +95,7 @@ DEVICE_AND_API_INIT(clock_quark_se_peripheral,
CONFIG_CLOCK_CONTROL_QUARK_SE_PERIPHERAL_DRV_NAME,
&quark_se_clock_control_init,
NULL, &clock_quark_se_peripheral_config,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&quark_se_clock_control_api);
#endif /* CONFIG_CLOCK_CONTROL_QUARK_SE_PERIPHERAL */
@ -109,7 +109,7 @@ DEVICE_AND_API_INIT(clock_quark_se_external,
CONFIG_CLOCK_CONTROL_QUARK_SE_EXTERNAL_DRV_NAME,
&quark_se_clock_control_init,
NULL, &clock_quark_se_external_config,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&quark_se_clock_control_api);
#endif /* CONFIG_CLOCK_CONTROL_QUARK_SE_EXTERNAL */
@ -123,7 +123,7 @@ DEVICE_AND_API_INIT(clock_quark_se_sensor,
CONFIG_CLOCK_CONTROL_QUARK_SE_SENSOR_DRV_NAME,
&quark_se_clock_control_init,
NULL, &clock_quark_se_sensor_config,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&quark_se_clock_control_api);
#endif /* CONFIG_CLOCK_CONTROL_QUARK_SE_SENSOR */

View file

@ -325,6 +325,6 @@ static struct stm32f10x_rcc_data stm32f10x_rcc_data = {
DEVICE_AND_API_INIT(rcc_stm32f10x, STM32_CLOCK_CONTROL_NAME,
&stm32f10x_clock_control_init,
&stm32f10x_rcc_data, NULL,
PRIMARY,
PRE_KERNEL_1,
CONFIG_CLOCK_CONTROL_STM32F10X_DEVICE_INIT_PRIORITY,
&stm32f10x_clock_control_api);

View file

@ -355,6 +355,6 @@ static struct stm32f4x_rcc_data stm32f4x_rcc_data = {
DEVICE_AND_API_INIT(rcc_stm32f4x, STM32_CLOCK_CONTROL_NAME,
&stm32f4x_clock_control_init,
&stm32f4x_rcc_data, NULL,
PRIMARY,
PRE_KERNEL_1,
CONFIG_CLOCK_CONTROL_STM32F4X_DEVICE_INIT_PRIORITY,
&stm32f4x_clock_control_api);

View file

@ -45,4 +45,4 @@ static int ram_console_init(struct device *d)
return 0;
}
SYS_INIT(ram_console_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(ram_console_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -505,8 +505,8 @@ static int uart_console_init(struct device *arg)
/* UART console initializes after the UART device itself */
SYS_INIT(uart_console_init,
#if defined(CONFIG_EARLY_CONSOLE)
PRIMARY,
PRE_KERNEL_1,
#else
SECONDARY,
POST_KERNEL,
#endif
CONFIG_UART_CONSOLE_INIT_PRIORITY);

View file

@ -68,6 +68,6 @@ static int aon_counter_init(struct device *dev)
}
DEVICE_AND_API_INIT(aon_counter, CONFIG_AON_COUNTER_QMSI_DEV_NAME,
aon_counter_init, NULL, NULL, SECONDARY,
aon_counter_init, NULL, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&aon_counter_qmsi_api);

View file

@ -271,7 +271,7 @@ static int aon_timer_init(struct device *dev)
DEVICE_DEFINE(aon_timer, CONFIG_AON_TIMER_QMSI_DEV_NAME, aon_timer_init,
aonpt_qmsi_device_ctrl, AONPT_CONTEXT, NULL, SECONDARY,
aonpt_qmsi_device_ctrl, AONPT_CONTEXT, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&aon_timer_qmsi_api);

View file

@ -217,7 +217,7 @@ static int dma_qmsi_device_ctrl(struct device *dev, uint32_t ctrl_command,
#endif
DEVICE_DEFINE(dma_qmsi, CONFIG_DMA_0_NAME, &dma_qmsi_init, dma_qmsi_device_ctrl,
&dma_qmsi_dev_data, &dma_qmsi_config_data, SECONDARY,
&dma_qmsi_dev_data, &dma_qmsi_config_data, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, (void *)&dma_funcs);
static void dma_qmsi_config(struct device *dev)

View file

@ -627,7 +627,7 @@ static const struct eth_enc28j60_config eth_enc28j60_0_config = {
DEVICE_AND_API_INIT(eth_enc28j60_0, CONFIG_ETH_ENC28J60_0_NAME,
&eth_enc28j60_init, &eth_enc28j60_0_runtime,
&eth_enc28j60_0_config, SECONDARY,
&eth_enc28j60_0_config, POST_KERNEL,
CONFIG_ETH_ENC28J60_0_INIT_PRIORITY, &api_funcs);
static int eth_net_tx(struct net_buf *buf)

View file

@ -115,6 +115,6 @@ static int flash_ksdk_init(struct device *dev)
}
DEVICE_AND_API_INIT(flash_ksdk, CONFIG_SOC_FLASH_KSDK_DEV_NAME,
flash_ksdk_init, &flash_data, NULL, SECONDARY,
flash_ksdk_init, &flash_data, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_ksdk_api);

View file

@ -168,4 +168,4 @@ static int nrf5_flash_init(struct device *dev)
}
DEVICE_INIT(nrf5_flash, CONFIG_SOC_FLASH_NRF5_DEV_NAME, nrf5_flash_init,
NULL, NULL, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
NULL, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -364,5 +364,5 @@ static int quark_flash_init(struct device *dev)
}
DEVICE_DEFINE(quark_flash, CONFIG_SOC_FLASH_QMSI_DEV_NAME, quark_flash_init,
flash_qmsi_device_ctrl, FLASH_CONTEXT, NULL, SECONDARY,
flash_qmsi_device_ctrl, FLASH_CONTEXT, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, (void *)&flash_qmsi_api);

View file

@ -383,5 +383,5 @@ static int spi_flash_init(struct device *dev)
static struct spi_flash_data spi_flash_memory_data;
DEVICE_INIT(spi_flash_memory, CONFIG_SPI_FLASH_W25QXXDV_DRV_NAME, spi_flash_init,
&spi_flash_memory_data, NULL, SECONDARY,
&spi_flash_memory_data, NULL, POST_KERNEL,
CONFIG_SPI_FLASH_W25QXXDV_INIT_PRIORITY);

View file

@ -307,7 +307,7 @@ static struct gpio_sam3_runtime gpio_sam3_a_runtime;
DEVICE_AND_API_INIT(gpio_sam3_a, CONFIG_GPIO_ATMEL_SAM3_PORTA_DEV_NAME,
gpio_sam3_init, &gpio_sam3_a_runtime, &gpio_sam3_a_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
static void gpio_sam3_config_a(struct device *dev)
@ -335,7 +335,7 @@ static struct gpio_sam3_runtime gpio_sam3_b_runtime;
DEVICE_AND_API_INIT(gpio_sam3_b, CONFIG_GPIO_ATMEL_SAM3_PORTB_DEV_NAME,
gpio_sam3_init, &gpio_sam3_b_runtime, &gpio_sam3_b_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
static void gpio_sam3_config_b(struct device *dev)
@ -363,7 +363,7 @@ static struct gpio_sam3_runtime gpio_sam3_c_runtime;
DEVICE_AND_API_INIT(gpio_sam3_c, CONFIG_GPIO_ATMEL_SAM3_PORTC_DEV_NAME,
gpio_sam3_init, &gpio_sam3_c_runtime, &gpio_sam3_c_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
static void gpio_sam3_config_c(struct device *dev)
@ -391,7 +391,7 @@ static struct gpio_sam3_runtime gpio_sam3_d_runtime;
DEVICE_AND_API_INIT(gpio_sam3_d, CONFIG_GPIO_ATMEL_SAM3_PORTD_DEV_NAME,
gpio_sam3_init, &gpio_sam3_d_runtime, &gpio_sam3_d_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
static void gpio_sam3_config_d(struct device *dev)

View file

@ -537,12 +537,12 @@ static struct gpio_dw_runtime gpio_0_runtime = {
DEVICE_DEFINE(gpio_dw_0, CONFIG_GPIO_DW_0_NAME, gpio_dw_initialize,
gpio_dw_device_ctrl, &gpio_0_runtime, &gpio_config_0,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#else
DEVICE_AND_API_INIT(gpio_dw_0, CONFIG_GPIO_DW_0_NAME, gpio_dw_initialize,
&gpio_0_runtime, &gpio_config_0,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#endif
@ -605,12 +605,12 @@ static struct gpio_dw_runtime gpio_1_runtime = {
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
DEVICE_DEFINE(gpio_dw_1, CONFIG_GPIO_DW_1_NAME, gpio_dw_initialize,
gpio_dw_device_ctrl, &gpio_1_runtime, &gpio_dw_config_1,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#else
DEVICE_AND_API_INIT(gpio_dw_1, CONFIG_GPIO_DW_1_NAME, gpio_dw_initialize,
&gpio_1_runtime, &gpio_dw_config_1,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#endif
@ -672,12 +672,12 @@ static struct gpio_dw_runtime gpio_2_runtime = {
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
DEVICE_DEFINE(gpio_dw_2, CONFIG_GPIO_DW_2_NAME, gpio_dw_initialize,
gpio_dw_device_ctrl, &gpio_2_runtime, &gpio_dw_config_2,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#else
DEVICE_AND_API_INIT(gpio_dw_2, CONFIG_GPIO_DW_2_NAME, gpio_dw_initialize,
&gpio_2_runtime, &gpio_dw_config_2,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#endif
@ -739,12 +739,12 @@ static struct gpio_dw_runtime gpio_3_runtime = {
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
DEVICE_DEFINE(gpio_dw_3, CONFIG_GPIO_DW_3_NAME, gpio_dw_initialize,
gpio_dw_device_ctrl, &gpio_3_runtime, &gpio_dw_config_3,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#else
DEVICE_AND_API_INIT(gpio_dw_3, CONFIG_GPIO_DW_3_NAME, gpio_dw_initialize,
&gpio_3_runtime, &gpio_dw_config_3,
SECONDARY, CONFIG_GPIO_DW_INIT_PRIORITY,
POST_KERNEL, CONFIG_GPIO_DW_INIT_PRIORITY,
&api_funcs);
#endif

View file

@ -274,7 +274,7 @@ static struct gpio_k64_data gpio_data_A;
DEVICE_AND_API_INIT(gpio_k64_A, CONFIG_GPIO_K64_A_DEV_NAME, gpio_k64_A_init,
&gpio_data_A, &gpio_k64_A_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&gpio_k64_drv_api_funcs);
static int gpio_k64_A_init(struct device *dev)
@ -303,7 +303,7 @@ static struct gpio_k64_data gpio_data_B;
DEVICE_AND_API_INIT(gpio_k64_B, CONFIG_GPIO_K64_B_DEV_NAME, gpio_k64_B_init,
&gpio_data_B, &gpio_k64_B_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&gpio_k64_drv_api_funcs);
static int gpio_k64_B_init(struct device *dev)
@ -332,7 +332,7 @@ static struct gpio_k64_data gpio_data_C;
DEVICE_AND_API_INIT(gpio_k64_C, CONFIG_GPIO_K64_C_DEV_NAME, gpio_k64_C_init,
&gpio_data_C, &gpio_k64_C_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&gpio_k64_drv_api_funcs);
static int gpio_k64_C_init(struct device *dev)
@ -361,7 +361,7 @@ static struct gpio_k64_data gpio_data_D;
DEVICE_AND_API_INIT(gpio_k64_D, CONFIG_GPIO_K64_D_DEV_NAME, gpio_k64_D_init,
&gpio_data_D, &gpio_k64_D_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&gpio_k64_drv_api_funcs);
static int gpio_k64_D_init(struct device *dev)
@ -390,7 +390,7 @@ static struct gpio_k64_data gpio_data_E;
DEVICE_AND_API_INIT(gpio_k64_E, CONFIG_GPIO_K64_E_DEV_NAME, gpio_k64_E_init,
&gpio_data_E, &gpio_k64_E_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&gpio_k64_drv_api_funcs);
static int gpio_k64_E_init(struct device *dev)

View file

@ -213,7 +213,7 @@ static struct gpio_nrf5_data gpio_data_P0;
DEVICE_AND_API_INIT(gpio_nrf5_P0, CONFIG_GPIO_NRF5_P0_DEV_NAME, gpio_nrf5_P0_init,
&gpio_data_P0, &gpio_nrf5_P0_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&gpio_nrf5_drv_api_funcs);
static int gpio_nrf5_P0_init(struct device *dev)

View file

@ -587,7 +587,7 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_0_drvdata = {
DEVICE_INIT(gpio_pcal9535a_0, CONFIG_GPIO_PCAL9535A_0_DEV_NAME,
gpio_pcal9535a_init,
&gpio_pcal9535a_0_drvdata, &gpio_pcal9535a_0_cfg,
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
POST_KERNEL, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
#endif /* CONFIG_GPIO_PCAL9535A_0 */
@ -614,7 +614,7 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_1_drvdata = {
DEVICE_INIT(gpio_pcal9535a_1, CONFIG_GPIO_PCAL9535A_1_DEV_NAME,
gpio_pcal9535a_init,
&gpio_pcal9535a_1_drvdata, &gpio_pcal9535a_1_cfg,
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
POST_KERNEL, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
#endif /* CONFIG_GPIO_PCAL9535A_1 */
@ -641,7 +641,7 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_2_drvdata = {
DEVICE_INIT(gpio_pcal9535a_2, CONFIG_GPIO_PCAL9535A_2_DEV_NAME,
gpio_pcal9535a_init,
&gpio_pcal9535a_2_drvdata, &gpio_pcal9535a_2_cfg,
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
POST_KERNEL, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
#endif /* CONFIG_GPIO_PCAL9535A_2 */
@ -668,6 +668,6 @@ static struct gpio_pcal9535a_drv_data gpio_pcal9535a_3_drvdata = {
DEVICE_INIT(gpio_pcal9535a_3, CONFIG_GPIO_PCAL9535A_3_DEV_NAME,
gpio_pcal9535a_init,
&gpio_pcal9535a_3_drvdata, &gpio_pcal9535a_3_cfg,
SECONDARY, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
POST_KERNEL, CONFIG_GPIO_PCAL9535A_INIT_PRIORITY);
#endif /* CONFIG_GPIO_PCAL9535A_3 */

View file

@ -163,7 +163,7 @@ static int gpio_qmsi_device_ctrl(struct device *port, uint32_t ctrl_command,
DEVICE_DEFINE(gpio_0, CONFIG_GPIO_QMSI_0_NAME, &gpio_qmsi_init,
gpio_qmsi_device_ctrl, &gpio_0_runtime, &gpio_0_config,
SECONDARY, CONFIG_GPIO_QMSI_INIT_PRIORITY, NULL);
POST_KERNEL, CONFIG_GPIO_QMSI_INIT_PRIORITY, NULL);
#endif /* CONFIG_GPIO_QMSI_0 */
@ -202,7 +202,7 @@ static int gpio_aon_device_ctrl(struct device *port, uint32_t ctrl_command,
DEVICE_DEFINE(gpio_aon, CONFIG_GPIO_QMSI_1_NAME, &gpio_qmsi_init,
gpio_aon_device_ctrl, &gpio_aon_runtime, &gpio_aon_config,
SECONDARY, CONFIG_GPIO_QMSI_INIT_PRIORITY, NULL);
POST_KERNEL, CONFIG_GPIO_QMSI_INIT_PRIORITY, NULL);
#endif /* CONFIG_GPIO_QMSI_1 */

View file

@ -86,7 +86,7 @@ static struct ss_gpio_qmsi_runtime ss_gpio_0_runtime;
DEVICE_INIT(ss_gpio_0, CONFIG_GPIO_QMSI_SS_0_NAME, &ss_gpio_qmsi_init,
&ss_gpio_0_runtime, &ss_gpio_0_config,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
#endif /* CONFIG_GPIO_QMSI_SS_0 */
@ -100,7 +100,7 @@ static struct ss_gpio_qmsi_runtime gpio_1_runtime;
DEVICE_INIT(ss_gpio_1, CONFIG_GPIO_QMSI_SS_1_NAME, &ss_gpio_qmsi_init,
&gpio_1_runtime, &ss_gpio_1_config,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
#endif /* CONFIG_GPIO_QMSI_SS_1 */

View file

@ -338,7 +338,7 @@ static struct gpio_sch_data gpio_data_0;
DEVICE_INIT(gpio_0, CONFIG_GPIO_SCH_0_DEV_NAME, gpio_sch_init,
&gpio_data_0, &gpio_sch_0_config,
SECONDARY, CONFIG_GPIO_SCH_INIT_PRIORITY);
POST_KERNEL, CONFIG_GPIO_SCH_INIT_PRIORITY);
#endif /* CONFIG_GPIO_SCH_0 */
#if CONFIG_GPIO_SCH_1
@ -352,6 +352,6 @@ static struct gpio_sch_data gpio_data_1;
DEVICE_INIT(gpio_1, CONFIG_GPIO_SCH_1_DEV_NAME, gpio_sch_init,
&gpio_data_1, &gpio_sch_1_config,
SECONDARY, CONFIG_GPIO_SCH_INIT_PRIORITY);
POST_KERNEL, CONFIG_GPIO_SCH_INIT_PRIORITY);
#endif /* CONFIG_GPIO_SCH_1 */

View file

@ -222,7 +222,7 @@ DEVICE_AND_API_INIT(gpio_stm32_## __suffix, \
gpio_stm32_init, \
&gpio_stm32_data_## __suffix, \
&gpio_stm32_cfg_## __suffix, \
SECONDARY, \
POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
&gpio_stm32_driver);
@ -240,7 +240,7 @@ DEVICE_AND_API_INIT(gpio_stm32_## __suffix, \
gpio_stm32_init, \
&gpio_stm32_data_## __suffix, \
&gpio_stm32_cfg_## __suffix, \
SECONDARY, \
POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
&gpio_stm32_driver);
#endif

View file

@ -97,4 +97,4 @@ static int gls_init(struct device *dev)
static struct gls_data gls_data;
DEVICE_INIT(gls_dev, CONFIG_GROVE_LIGHT_SENSOR_NAME, &gls_init, &gls_data,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -104,4 +104,4 @@ static int gts_init(struct device *dev)
static struct gts_data gts_data;
DEVICE_INIT(gts_dev, CONFIG_GROVE_TEMPERATURE_SENSOR_NAME, &gts_init, &gts_data,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -623,7 +623,7 @@ static struct i2c_sam3_dev_data dev_data_0 = {
DEVICE_AND_API_INIT(i2c_sam3_0, CONFIG_I2C_0_NAME, &i2c_sam3_init,
&dev_data_0, &dev_config_0,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&api_funcs);
static void config_func_0(struct device *dev)
@ -653,7 +653,7 @@ static struct i2c_sam3_dev_data dev_data_1 = {
DEVICE_AND_API_INIT(i2c_sam3_1, CONFIG_I2C_1_NAME, &i2c_sam3_init,
&dev_data_1, &dev_config_1,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&api_funcs);
static void config_func_1(struct device *dev)

View file

@ -741,7 +741,7 @@ static struct i2c_dw_dev_config i2c_0_runtime = {
DEVICE_AND_API_INIT(i2c_0, CONFIG_I2C_0_NAME, &i2c_dw_initialize,
&i2c_0_runtime, &i2c_config_dw_0,
SECONDARY, CONFIG_I2C_INIT_PRIORITY,
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY,
&funcs);
static void i2c_config_0(struct device *port)
@ -793,7 +793,7 @@ static struct i2c_dw_dev_config i2c_1_runtime = {
DEVICE_AND_API_INIT(i2c_1, CONFIG_I2C_1_NAME, &i2c_dw_initialize,
&i2c_1_runtime, &i2c_config_dw_1,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&funcs);
static void i2c_config_1(struct device *port)

View file

@ -207,7 +207,7 @@ static struct i2c_ksdk_data i2c_ksdk_data_0;
DEVICE_AND_API_INIT(i2c_ksdk_0, CONFIG_I2C_0_NAME, &i2c_ksdk_init,
&i2c_ksdk_data_0, &i2c_ksdk_config_0,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&i2c_ksdk_driver_api);
static void i2c_ksdk_config_func_0(struct device *dev)
@ -233,7 +233,7 @@ static struct i2c_ksdk_data i2c_ksdk_data_1;
DEVICE_AND_API_INIT(i2c_ksdk_1, CONFIG_I2C_1_NAME, &i2c_ksdk_init,
&i2c_ksdk_data_1, &i2c_ksdk_config_1,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&i2c_ksdk_driver_api);
static void i2c_ksdk_config_func_1(struct device *dev)

View file

@ -133,7 +133,7 @@ static const struct i2c_qmsi_config_info config_info_0 = {
};
DEVICE_DEFINE(i2c_0, CONFIG_I2C_0_NAME, &i2c_qmsi_init,
i2c_device_ctrl, &driver_data_0, &config_info_0, SECONDARY,
i2c_device_ctrl, &driver_data_0, &config_info_0, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, NULL);
#endif /* CONFIG_I2C_0 */
@ -149,7 +149,7 @@ static const struct i2c_qmsi_config_info config_info_1 = {
};
DEVICE_DEFINE(i2c_1, CONFIG_I2C_1_NAME, &i2c_qmsi_init,
i2c_device_ctrl, &driver_data_1, &config_info_1, SECONDARY,
i2c_device_ctrl, &driver_data_1, &config_info_1, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, NULL);
#endif /* CONFIG_I2C_1 */

View file

@ -69,7 +69,7 @@ static const struct i2c_qmsi_ss_config_info config_info_0 = {
};
DEVICE_INIT(i2c_ss_0, CONFIG_I2C_0_NAME, i2c_qmsi_ss_init, &driver_data_0,
&config_info_0, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
&config_info_0, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
static void i2c_qmsi_ss_config_irq_0(void)
{
@ -125,7 +125,7 @@ static const struct i2c_qmsi_ss_config_info config_info_1 = {
};
DEVICE_INIT(i2c_ss_1, CONFIG_I2C_1_NAME, i2c_qmsi_ss_init, &driver_data_1,
&config_info_1, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
&config_info_1, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
static void i2c_qmsi_ss_config_irq_1(void)
{

View file

@ -287,7 +287,7 @@ static int stm32_exti_init(struct device *dev)
static struct stm32_exti_data exti_data;
DEVICE_INIT(exti_stm32, STM32_EXTI_NAME, stm32_exti_init,
&exti_data, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
/**
* @brief set & unset for the interrupt callbacks

View file

@ -62,4 +62,4 @@ int _i8259_init(struct device *unused)
return 0;
}
SYS_INIT(_i8259_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(_i8259_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -443,8 +443,8 @@ static void _IoApicRedUpdateLo(unsigned int irq,
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
SYS_DEVICE_DEFINE("ioapic", _ioapic_init, ioapic_device_ctrl, PRIMARY,
SYS_DEVICE_DEFINE("ioapic", _ioapic_init, ioapic_device_ctrl, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#else
SYS_INIT(_ioapic_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(_ioapic_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif

View file

@ -506,10 +506,10 @@ static int loapic_device_ctrl(struct device *port, uint32_t ctrl_command,
return 0;
}
SYS_DEVICE_DEFINE("loapic", _loapic_init, loapic_device_ctrl, PRIMARY,
SYS_DEVICE_DEFINE("loapic", _loapic_init, loapic_device_ctrl, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#else
SYS_INIT(_loapic_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(_loapic_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_DEVICE_POWER_MANAGEMENT */

View file

@ -161,7 +161,7 @@ static int _mvic_init(struct device *unused)
return 0;
}
SYS_INIT(_mvic_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
SYS_INIT(_mvic_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
void _arch_irq_enable(unsigned int irq)

View file

@ -136,7 +136,7 @@ int quark_se_ipm_controller_initialize(struct device *d);
DEVICE_AND_API_INIT(name, _STRINGIFY(name), quark_se_ipm_initialize, \
&quark_se_ipm_runtime_##name, \
&quark_se_ipm_config_##name, \
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
&ipm_quark_se_api_funcs)
#ifdef __cplusplus

View file

@ -130,5 +130,5 @@ static int pinmux_dev_init(struct device *port)
DEVICE_AND_API_INIT(pmux_dev, CONFIG_PINMUX_DEV_NAME,
&pinmux_dev_init, NULL, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&api_funcs);

View file

@ -53,5 +53,5 @@ int pinmux_fsl_k64_initialize(struct device *port)
/* must be initialized after GPIO */
DEVICE_AND_API_INIT(pmux, CONFIG_PINMUX_DEV_NAME, &pinmux_fsl_k64_initialize,
NULL, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&api_funcs);

View file

@ -95,5 +95,5 @@ static int pinmux_dev_initialize(struct device *port)
DEVICE_AND_API_INIT(pmux_dev, CONFIG_PINMUX_DEV_NAME,
&pinmux_dev_initialize, NULL, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&api_funcs);

View file

@ -84,6 +84,6 @@ static int pinmux_stm32_init(struct device *port)
DEVICE_AND_API_INIT(pmux_dev, CONFIG_PINMUX_DEV_NAME, &pinmux_stm32_init,
NULL, NULL,
PRIMARY,
PRE_KERNEL_1,
CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY,
&pinmux_stm32_api);

View file

@ -114,4 +114,4 @@ static int fsl_frdm_k64f_pin_init(struct device *arg)
return 0;
}
SYS_INIT(fsl_frdm_k64f_pin_init, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
SYS_INIT(fsl_frdm_k64f_pin_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -66,4 +66,4 @@ static int hexiwear_pin_init(struct device *arg)
return 0;
}
SYS_INIT(hexiwear_pin_init, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
SYS_INIT(hexiwear_pin_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);

View file

@ -44,5 +44,5 @@ static int pinmux_stm32_init(struct device *port)
return 0;
}
SYS_INIT(pinmux_stm32_init, PRIMARY,
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1,
CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);

View file

@ -48,4 +48,4 @@ static int pinmux_stm32_init(struct device *port)
return 0;
}
SYS_INIT(pinmux_stm32_init, PRIMARY, CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1, CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);

View file

@ -44,5 +44,5 @@ static int pinmux_stm32_init(struct device *port)
return 0;
}
SYS_INIT(pinmux_stm32_init, PRIMARY,
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1,
CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);

View file

@ -48,4 +48,4 @@ static int pinmux_stm32_init(struct device *port)
return 0;
}
SYS_INIT(pinmux_stm32_init, PRIMARY, CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1, CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);

View file

@ -48,4 +48,4 @@ static int pinmux_stm32_init(struct device *port)
return 0;
}
SYS_INIT(pinmux_stm32_init, PRIMARY, CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1, CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY);

View file

@ -232,7 +232,7 @@ static struct pwm_dw_config pwm_dw_cfg = {
DEVICE_AND_API_INIT(pwm_dw_0, CONFIG_PWM_DW_0_DRV_NAME, pwm_dw_init,
NULL, &pwm_dw_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&pwm_dw_drv_api_funcs);
#endif /* CONFIG_PWM_DW */

View file

@ -815,7 +815,7 @@ static struct pwm_ftm_drv_data pwm_ftm_0_drvdata;
DEVICE_DEFINE(pwm_ftm_0, CONFIG_PWM_K64_FTM_0_DEV_NAME, pwm_ftm_init,
pwm_ftm_device_ctrl, &pwm_ftm_0_drvdata, &pwm_ftm_0_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&pwm_ftm_drv_api_funcs);
#endif /* CONFIG_PWM_K64_FTM_0 */
@ -861,7 +861,7 @@ static struct pwm_ftm_drv_data pwm_ftm_1_drvdata;
DEVICE_DEFINE(pwm_ftm_1, CONFIG_PWM_K64_FTM_1_DEV_NAME, pwm_ftm_init,
pwm_ftm_device_ctrl, &pwm_ftm_1_drvdata, &pwm_ftm_1_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&pwm_ftm_drv_api_funcs);
#endif /* CONFIG_PWM_K64_FTM_1 */
@ -908,7 +908,7 @@ static struct pwm_ftm_drv_data pwm_ftm_2_drvdata;
DEVICE_DEFINE(pwm_ftm_2, CONFIG_PWM_K64_FTM_2_DEV_NAME, pwm_ftm_init,
pwm_ftm_device_ctrl, &pwm_ftm_2_drvdata, &pwm_ftm_2_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&pwm_ftm_drv_api_funcs);
#endif /* CONFIG_PWM_K64_FTM_2 */
@ -955,7 +955,7 @@ static struct pwm_ftm_drv_data pwm_ftm_3_drvdata;
DEVICE_DEFINE(pwm_ftm_3, CONFIG_PWM_K64_FTM_3_DEV_NAME, pwm_ftm_init,
pwm_ftm_device_ctrl, &pwm_ftm_3_drvdata, &pwm_ftm_3_cfg,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
&pwm_ftm_drv_api_funcs);
#endif /* CONFIG_PWM_K64_FTM_3 */

View file

@ -216,6 +216,6 @@ static struct pwm_pca9685_drv_data pwm_pca9685_0_drvdata;
DEVICE_INIT(pwm_pca9685_0, CONFIG_PWM_PCA9685_0_DEV_NAME,
pwm_pca9685_init,
&pwm_pca9685_0_drvdata, &pwm_pca9685_0_cfg,
SECONDARY, CONFIG_PWM_PCA9685_INIT_PRIORITY);
POST_KERNEL, CONFIG_PWM_PCA9685_INIT_PRIORITY);
#endif /* CONFIG_PWM_PCA9685_0 */

View file

@ -502,5 +502,5 @@ static int pwm_qmsi_device_ctrl(struct device *dev, uint32_t ctrl_command,
DEVICE_DEFINE(pwm_qmsi_0, CONFIG_PWM_QMSI_DEV_NAME, pwm_qmsi_init,
pwm_qmsi_device_ctrl, &pwm_context, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&pwm_qmsi_drv_api_funcs);

View file

@ -248,5 +248,5 @@ static int rtc_qmsi_device_ctrl(struct device *dev, uint32_t ctrl_command,
#endif
DEVICE_DEFINE(rtc, CONFIG_RTC_0_NAME, &rtc_qmsi_init, rtc_qmsi_device_ctrl,
RTC_CONTEXT, NULL, SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
RTC_CONTEXT, NULL, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&api);

View file

@ -170,4 +170,4 @@ int ak8975_init(struct device *dev)
struct ak8975_data ak8975_data;
DEVICE_INIT(ak8975, CONFIG_AK8975_NAME, ak8975_init, &ak8975_data,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -172,4 +172,4 @@ int bma280_init(struct device *dev)
struct bma280_data bma280_driver;
DEVICE_INIT(bma280, CONFIG_BMA280_NAME, bma280_init, &bma280_driver,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -266,4 +266,4 @@ int bme280_init(struct device *dev)
static struct bme280_data bme280_data;
DEVICE_INIT(bme280, CONFIG_BME280_DEV_NAME, bme280_init, &bme280_data,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -360,4 +360,4 @@ const struct bmg160_device_config bmg160_config = {
};
DEVICE_INIT(bmg160, CONFIG_BMG160_DRV_NAME, bmg160_init, &bmg160_data,
&bmg160_config, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
&bmg160_config, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -245,4 +245,4 @@ static int dht_init(struct device *dev)
struct dht_data dht_data;
DEVICE_INIT(dht_dev, CONFIG_DHT_NAME, &dht_init, &dht_data,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -340,5 +340,5 @@ static struct fxos8700_data fxos8700_data;
DEVICE_AND_API_INIT(fxos8700, CONFIG_FXOS8700_NAME, fxos8700_init,
&fxos8700_data, &fxos8700_config,
SECONDARY, CONFIG_SENSOR_INIT_PRIORITY,
POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY,
&fxos8700_driver_api);

View file

@ -161,4 +161,4 @@ static int hdc1008_init(struct device *dev)
static struct hdc1008_data hdc1008_data;
DEVICE_INIT(hdc1008, CONFIG_HDC1008_NAME, hdc1008_init, &hdc1008_data,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -165,4 +165,4 @@ int hmc5883l_init(struct device *dev)
struct hmc5883l_data hmc5883l_driver;
DEVICE_INIT(hmc5883l, CONFIG_HMC5883L_NAME, hmc5883l_init, &hmc5883l_driver,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -176,4 +176,4 @@ int hts221_init(struct device *dev)
struct hts221_data hts221_driver;
DEVICE_INIT(hts221, CONFIG_HTS221_NAME, hts221_init, &hts221_driver,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -152,4 +152,4 @@ static int isl29035_init(struct device *dev)
struct isl29035_driver_data isl29035_data;
DEVICE_INIT(isl29035_dev, CONFIG_ISL29035_NAME, &isl29035_init,
&isl29035_data, NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
&isl29035_data, NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -131,4 +131,4 @@ int lis3dh_init(struct device *dev)
struct lis3dh_data lis3dh_driver;
DEVICE_INIT(lis3dh, CONFIG_LIS3DH_NAME, lis3dh_init, &lis3dh_driver,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

View file

@ -173,4 +173,4 @@ int lis3mdl_init(struct device *dev)
struct lis3mdl_data lis3mdl_driver;
DEVICE_INIT(lis3mdl, CONFIG_LIS3MDL_NAME, lis3mdl_init, &lis3mdl_driver,
NULL, SECONDARY, CONFIG_SENSOR_INIT_PRIORITY);
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY);

Some files were not shown because too many files have changed in this diff Show more