summaryrefslogtreecommitdiff
path: root/drivers/grove/Kconfig
diff options
context:
space:
mode:
authorDmitriy Korovkin <dmitriy.korovkin@windriver.com>2015-10-26 15:56:02 -0400
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:24:54 -0500
commit57f2741e4f928466adaf44a04dfff194d4bb1067 (patch)
treeebda8d00c1d97fd3b90c09cf10849e7d4faa203b /drivers/grove/Kconfig
parentfb6de2d486db23dbbea5a3819af1539c90c33354 (diff)
init: Implement fine-grained initialization policy
Put initialization priorities as device driver Kconfig parameter. Initialization priority value for each platform is defined in the platform Kconfig file. Drivers and platform code use SYS_DEFINE_DEVICE to add and initialization function. Change-Id: I2f4f3c7370dac02408a1b50a0a1bade8b427a282 Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'drivers/grove/Kconfig')
-rw-r--r--drivers/grove/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/grove/Kconfig b/drivers/grove/Kconfig
index 3cf96f4b6..d27f44dfd 100644
--- a/drivers/grove/Kconfig
+++ b/drivers/grove/Kconfig
@@ -38,3 +38,12 @@ config GROVE_LCD_RGB
help
Setting this value will enable driver support for the Groove-LCD RGB
Backlight.
+
+config GROVE_LCD_RGB_INIT_PRIORITY
+ int
+ prompt "Init priority"
+ depends on GROVE_LCD_RGB
+ help
+ Device driver initialization priority.
+ As the device is connected to I2C bus, its driver has
+ to be initialized after the I2C one.