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:
Gerard Marull-Paretas 2023-09-13 15:07:18 +02:00 committed by Carles Cufí
parent fe2bca3020
commit 4cf5d5cf8b
2 changed files with 8 additions and 1 deletions

View file

@ -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.

View file

@ -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)
{