From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 87827C433FE for ; Sat, 19 Nov 2022 23:46:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D5CB4851EA; Sun, 20 Nov 2022 00:46:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="ASWB3dUy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B693E849C0; Sun, 20 Nov 2022 00:45:54 +0100 (CET) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DF51084913 for ; Sun, 20 Nov 2022 00:45:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82f.google.com with SMTP id s4so5387616qtx.6 for ; Sat, 19 Nov 2022 15:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Y922Eop5f7tjwqSRYdODixyQhWdHQB5Y2L4+zSzNkCc=; b=ASWB3dUySqEJZzYXAebNTJ3suOjKNCgTJX4t6f73dMUsc/uaTB2j94tbJrA7dafjsj YJ+RMYG2TAkH3J1srlLMx4G2XooUYDuFcqujS60pTS8a8uj6u1Iwh9anqaPFXisAvkSA nI7zFc8DasXgxe1+JRmpKBBGJnp+doTWw6h8E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y922Eop5f7tjwqSRYdODixyQhWdHQB5Y2L4+zSzNkCc=; b=7m7wIt/q3uZiFM+TItjxj5rIMzW1jCVVhcOZ81NsJgOhXwdY97aO3o+tdxSPly4/wu jYRcRh/3OCWD1JEG9qS5tSAVPVbj1FBopUSpnFl5FCYiznruLZEysXpw52EGB/oH9E3K zXo3dX4OXPPfjzlnZKPIGu22uO5gpJngQZfwPPp6ezEPPP++aVDNScRY6pb1EKPSta8z NP9uGv0PCoSajUGJLFenmzrP9vq0b4S+8TymhaFM/Lcvd3NdFEtil/xgNvOiXjAZe7dz +Lr7oxy/5KMPITD4WbVL1WPF0LexJXBhqiLI6lw2yeLxyrVDtBIkwVo2Jgr2ZxY0GblW S2XA== X-Gm-Message-State: ANoB5pkyzVf20IVTLtJtwiSpenmdUbM6UrsZKdWCYL8/Rbh2GkqUf9Ta hccUyVQA0w/ybN7ohf6odYmCmDTMpLd0Kg== X-Google-Smtp-Source: AA0mqf6zBUX1Gydn+PgFh1NhMwZwQ4Ggzkd3B9kwuCQBiqJ9+gW+b1qQrafhMYYMXoDkH8TFUhbz+g== X-Received: by 2002:ac8:590f:0:b0:399:18c3:ee92 with SMTP id 15-20020ac8590f000000b0039918c3ee92mr12647290qty.15.1668901550543; Sat, 19 Nov 2022 15:45:50 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-55ec-b699-c19f-3363.res6.spectrum.com. [2603:6081:7b00:6400:55ec:b699:c19f:3363]) by smtp.gmail.com with ESMTPSA id y11-20020a37f60b000000b006ce1bfbd603sm5169743qkj.124.2022.11.19.15.45.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 15:45:50 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 07/38] Convert CONFIG_HIKEY_GPIO et al to Kconfig Date: Sat, 19 Nov 2022 18:45:14 -0500 Message-Id: <20221119234545.404563-7-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221119234545.404563-1-trini@konsulko.com> References: <20221119234545.404563-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_HIKEY_GPIO CONFIG_TCA642X Signed-off-by: Tom Rini --- configs/hikey_defconfig | 1 + configs/omap5_uevm_defconfig | 2 +- drivers/gpio/Kconfig | 9 +++++++++ include/configs/hikey.h | 2 -- include/configs/omap5_uevm.h | 1 - 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/configs/hikey_defconfig b/configs/hikey_defconfig index 9eec9281849c..d023653815cd 100644 --- a/configs/hikey_defconfig +++ b/configs/hikey_defconfig @@ -30,6 +30,7 @@ CONFIG_CMD_CACHE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SYS_MMC_ENV_PART=2 +CONFIG_HIKEY_GPIO=y CONFIG_MMC_DW=y CONFIG_MMC_DW_K3=y CONFIG_POWER_LEGACY=y diff --git a/configs/omap5_uevm_defconfig b/configs/omap5_uevm_defconfig index bd0ede759cb9..502990b0a8b9 100644 --- a/configs/omap5_uevm_defconfig +++ b/configs/omap5_uevm_defconfig @@ -47,7 +47,7 @@ CONFIG_VERSION_VARIABLE=y CONFIG_SCSI_AHCI=y CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y -CONFIG_CMD_TCA642X=y +CONFIG_TCA642X=y CONFIG_SYS_I2C_LEGACY=y CONFIG_SPL_SYS_I2C_LEGACY=y CONFIG_SUPPORT_EMMC_BOOT=y diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index ff87fbfb397e..e007b38fac71 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -169,6 +169,10 @@ config FXL6408_GPIO This driver supports the Fairchild FXL6408 device. FXL6408 is a fully configurable 8-bit I2C-controlled GPIO expander. +config HIKEY_GPIO + bool "HI6220 GPIO driver" + depends on DM_GPIO + config INTEL_BROADWELL_GPIO bool "Intel Broadwell GPIO driver" depends on DM @@ -374,8 +378,13 @@ config XILINX_GPIO help This config enable the Xilinx GPIO driver for Microblaze. +config TCA642X + bool "TCA642x legacy GPIO driver" + config CMD_TCA642X bool "tca642x - Command to access tca642x state" + depends on TCA642X + default y help DEPRECATED - This needs conversion to driver model diff --git a/include/configs/hikey.h b/include/configs/hikey.h index c5ef2f99b0f4..eefdbd6ed11b 100644 --- a/include/configs/hikey.h +++ b/include/configs/hikey.h @@ -32,8 +32,6 @@ #define GICD_BASE 0xf6801000 #define GICC_BASE 0xf6802000 -#define CONFIG_HIKEY_GPIO - /* Initial environment variables */ /* diff --git a/include/configs/omap5_uevm.h b/include/configs/omap5_uevm.h index 1634db860640..d7fa2d43914a 100644 --- a/include/configs/omap5_uevm.h +++ b/include/configs/omap5_uevm.h @@ -36,7 +36,6 @@ #define CONFIG_HSMMC2_8BIT /* Required support for the TCA642X GPIO we have on the uEVM */ -#define CONFIG_TCA642X #define CFG_SYS_I2C_TCA642X_BUS_NUM 4 #define CFG_SYS_I2C_TCA642X_ADDR 0x22 -- 2.25.1