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
2 changed files with 8 additions and 1 deletions
|
@ -10,3 +10,10 @@ config FT800
|
||||||
select SPI
|
select SPI
|
||||||
help
|
help
|
||||||
Enable driver for FT800 controller.
|
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,
|
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)
|
int ft8xx_get_touch_tag(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue