From f4b2457322e0255e17d734e90197170c2c6eb4c8 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Thu, 21 Jul 2022 16:18:03 -0700 Subject: [PATCH] drivers: usb-c: Update TCPC driver to use devicetree Kconfig symbol Update TCPC driver to use DT_HAS__ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. Signed-off-by: Sam Hurst --- drivers/usb_c/tcpc/Kconfig.tcpc_stm32 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/usb_c/tcpc/Kconfig.tcpc_stm32 b/drivers/usb_c/tcpc/Kconfig.tcpc_stm32 index a6e4691d0c0..eca5633c80f 100644 --- a/drivers/usb_c/tcpc/Kconfig.tcpc_stm32 +++ b/drivers/usb_c/tcpc/Kconfig.tcpc_stm32 @@ -1,15 +1,13 @@ -# USBC STM32 TCPC device configuration options +# USB-C STM32 TCPC device configuration options # Copyright 2022 The Chromium OS Authors # SPDX-License-Identifier: Apache-2.0 -DT_COMPAT_ST_STM32_UCPD := st,stm32-ucpd - config USBC_TCPC_STM32 - bool "USBC TCPC device controller driver" - depends on SOC_FAMILY_STM32 - default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_UCPD)) + bool "USB-C TCPC device controller driver" + default y + depends on DT_HAS_ST_STM32_UCPD_ENABLED select USE_STM32_LL_UCPD help - Enable USBC TCPC support on the STM32 G0, G4, L5, and U5 family of + Enable USB-C TCPC support on the STM32 G0, G4, L5, and U5 family of processors.