Commit 5c30367a authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

qmsi: gpio: add initialisation priority for driver



Change-Id: I4204d514f95c8e6e264a3cb71a2fa8eec8bab45a
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 3ca134b3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -26,6 +26,14 @@ menuconfig GPIO_QMSI

if GPIO_QMSI

config GPIO_QMSI_INIT_PRIORITY
        int
        default 60
        depends on GPIO_QMSI
        prompt "Init priority"
        help
          Device driver initialization priority.

config GPIO_QMSI_0
	bool "QMSI GPIO block 0"
	depends on GPIO_QMSI
+2 −2
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ static struct gpio_qmsi_runtime gpio_0_runtime;

DEVICE_INIT(gpio_0, CONFIG_GPIO_QMSI_0_NAME, &gpio_qmsi_init,
	    &gpio_0_runtime, &gpio_0_config,
	    SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
	    SECONDARY, CONFIG_GPIO_QMSI_INIT_PRIORITY);
GPIO_SETUP_COMPAT_DEV(gpio_0);

#endif /* CONFIG_GPIO_QMSI_0 */
@@ -65,7 +65,7 @@ static struct gpio_qmsi_runtime gpio_aon_runtime;

DEVICE_INIT(gpio_aon, CONFIG_GPIO_QMSI_AON_NAME, &gpio_qmsi_init,
	    &gpio_aon_runtime, &gpio_aon_config,
	    SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
	    SECONDARY, CONFIG_GPIO_QMSI_INIT_PRIORITY);
GPIO_SETUP_COMPAT_DEV(gpio_aon);

#endif /* CONFIG_GPIO_QMSI_AON */