usbc: fix conflicting Kconfigs for USB-C related init priority

There was a new Kconfig for USB-C init priority that is conflicting
with currently used Kconfig for init of VBUS and TCPC.
This commit changes the names to more specific related to the subsystem
they belong to.

Signed-off-by: Michał Barnaś <mb@semihalf.com>
This commit is contained in:
Michał Barnaś 2023-09-19 18:49:39 +02:00 committed by Fabio Baltieri
commit 9608c8f667
6 changed files with 15 additions and 7 deletions

View file

@ -10,8 +10,8 @@ menuconfig USBC_TCPC_DRIVER
if USBC_TCPC_DRIVER
config USBC_INIT_PRIORITY
int "USBC driver init priority"
config USBC_TCPC_INIT_PRIORITY
int "USB-C TCPC driver init priority"
default 80
help
USB-C device driver initialization priority.

View file

@ -1500,7 +1500,7 @@ BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0,
&drv_data_##inst, \
&drv_config_##inst, \
POST_KERNEL, \
CONFIG_USBC_INIT_PRIORITY, \
CONFIG_USBC_TCPC_INIT_PRIORITY, \
&driver_api);
DT_INST_FOREACH_STATUS_OKAY(TCPC_DRIVER_INIT)

View file

@ -10,6 +10,12 @@ menuconfig USBC_VBUS_DRIVER
if USBC_VBUS_DRIVER
config USBC_VBUS_INIT_PRIORITY
int "USB-C VBUS driver init priority"
default 85
help
Initialization priority of the USB-C VBUS measurement drivers in POST_KERNEL.
source "drivers/usb_c/vbus/Kconfig.usbc_vbus_adc"
endif # USBC_VBUS_DRIVER

View file

@ -218,7 +218,7 @@ BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) > 0,
&drv_data_##inst, \
&drv_config_##inst, \
POST_KERNEL, \
CONFIG_USBC_INIT_PRIORITY, \
CONFIG_USBC_VBUS_INIT_PRIORITY, \
&driver_api);
DT_INST_FOREACH_STATUS_OKAY(DRIVER_INIT)