drivers: misc: ft8xx: move to POST_KERNEL level
There's no need to use APPLICATION level. Also create a custom init level that runs late in the process (depends e.g. on SPI which runs at high priority level, 70). Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
fe2bca3020
commit
4cf5d5cf8b
|
@ -10,3 +10,10 @@ config FT800
|
|||
select SPI
|
||||
help
|
||||
Enable driver for FT800 controller.
|
||||
|
||||
config FT800_INIT_PRIORITY
|
||||
int "FT800 init priority"
|
||||
default 90
|
||||
depends on FT800
|
||||
help
|
||||
FT800 driver initialization priority in POST_KERNEL.
|
||||
|
|
|
@ -168,7 +168,7 @@ static int ft8xx_init(const struct device *dev)
|
|||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, ft8xx_init, NULL, &ft8xx_data, &ft8xx_config,
|
||||
APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, NULL);
|
||||
POST_KERNEL, CONFIG_FT800_INIT_PRIORITY, NULL);
|
||||
|
||||
int ft8xx_get_touch_tag(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue