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 964DEC433FE for ; Sun, 20 Nov 2022 14:31:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EF5AF8555E; Sun, 20 Nov 2022 15:22:24 +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="lM/qSrOP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 47B9385558; Sun, 20 Nov 2022 15:22:22 +0100 (CET) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 5D49C85393 for ; Sun, 20 Nov 2022 15:09:45 +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-x82c.google.com with SMTP id l15so5938886qtv.4 for ; Sun, 20 Nov 2022 06:09:45 -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=57NVB6QjmWwTJIc5h4jvI/rCUzoYMhC456tzhcpdwhU=; b=lM/qSrOPfKCSRkpl0lGe8Z24yFbrN0//CBU90nSmEGQwkyTUKTDjdNfwcf8RyxlwqS 69r9hSgVqvW3qnX1AoZgz18pzRdYQx6efB710eZCKRcHuI1pS6xxUnVsTYMhL8a8Mb3O jSjMISaR0QrDOh7JeDOvx5vXuMw5qx7ZGgof8= 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=57NVB6QjmWwTJIc5h4jvI/rCUzoYMhC456tzhcpdwhU=; b=Nd4VqbarexUPZtdWdteSqDxSVCaIbqu/q7xV2c5Uo82O97Gu1qkmXYwQVbvJ39YaoH 8LR2fVluOP0ZmuC+r3d+PKvz+y/5N23EDJpQPY4DtsAC2dMfVJE4/2xajpgHvToqcOCI 292U47ROq8vEQfDrX5Xn+UO4L/g3qq/2HVtZYHIf2UePu5s3S8GWVk/8r45HEiq9mB4T 4QYf3YxE45dahQ7iWjFer+Ikmp0Ai2DRZz8DyRc0HHTdaljOBMC5gHr8NCEL4XONEM7I dfxzkC76cT3kFn9FL0Osbdt3Fm4lALORVuVOwDFDhp4z0Pi2S/ZFIGmesDWgAzc4jxL2 zr5g== X-Gm-Message-State: ANoB5plOd3YjVDKeCREogxbis1SjTSPOkXOqfO/kf2QTNpm0NREa2SfD WaiwzY+k/5oGrFfAevmDFZvRWXTXPEAaow== X-Google-Smtp-Source: AA0mqf746Y37G7R9zEo+dtQFSLfYA9KxRdsRRXOGuASiH2GTRsMuRFQd1Jvxmaj2s9jPsCXCjmt4Zw== X-Received: by 2002:ac8:7657:0:b0:3a5:663d:730 with SMTP id i23-20020ac87657000000b003a5663d0730mr13669735qtr.291.1668953337427; Sun, 20 Nov 2022 06:08:57 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-29a0-035f-b06a-235e.res6.spectrum.com. [2603:6081:7b00:6400:29a0:35f:b06a:235e]) by smtp.gmail.com with ESMTPSA id bk23-20020a05620a1a1700b006ce580c2663sm6387502qkb.35.2022.11.20.06.08.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 06:08:57 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 153/241] global: Migrate CONFIG_POWER_LTC3676_I2C_ADDR to CFG Date: Sun, 20 Nov 2022 09:07:43 -0500 Message-Id: <20221120140829.3057894-44-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221120140829.3057894-1-trini@konsulko.com> References: <20221120135520.3057773-4-trini@konsulko.com> <20221120140829.3057894-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 Signed-off-by: Tom Rini --- board/gateworks/gw_ventana/gw_ventana_spl.c | 4 ++-- drivers/power/pmic/pmic_ltc3676.c | 2 +- include/configs/gw_ventana.h | 2 +- scripts/config_whitelist.txt | 6 ++---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c index e85a00954cee..6ad994af1c64 100644 --- a/board/gateworks/gw_ventana/gw_ventana_spl.c +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c @@ -851,8 +851,8 @@ void setup_pmic(void) } /* configure LTC3676 PMIC */ - else if (!i2c_probe(CONFIG_POWER_LTC3676_I2C_ADDR)) { - debug("probed LTC3676@0x%x\n", CONFIG_POWER_LTC3676_I2C_ADDR); + else if (!i2c_probe(CFG_POWER_LTC3676_I2C_ADDR)) { + debug("probed LTC3676@0x%x\n", CFG_POWER_LTC3676_I2C_ADDR); power_ltc3676_init(i2c_pmic); p = pmic_get("LTC3676_PMIC"); if (!p || pmic_probe(p)) diff --git a/drivers/power/pmic/pmic_ltc3676.c b/drivers/power/pmic/pmic_ltc3676.c index 00c3e201cd56..af94f37b0f10 100644 --- a/drivers/power/pmic/pmic_ltc3676.c +++ b/drivers/power/pmic/pmic_ltc3676.c @@ -23,7 +23,7 @@ int power_ltc3676_init(unsigned char bus) p->name = name; p->interface = PMIC_I2C; p->number_of_regs = LTC3676_NUM_OF_REGS; - p->hw.i2c.addr = CONFIG_POWER_LTC3676_I2C_ADDR; + p->hw.i2c.addr = CFG_POWER_LTC3676_I2C_ADDR; p->hw.i2c.tx_num = 1; p->bus = bus; diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 4741d399590c..577322a5987d 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -31,7 +31,7 @@ * PMIC */ #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 -#define CONFIG_POWER_LTC3676_I2C_ADDR 0x3c +#define CFG_POWER_LTC3676_I2C_ADDR 0x3c /* Various command support */ diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 2b3e4a79a00c..52a78f10cd52 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -161,10 +161,8 @@ CFG_PHY_IRAM_BASE CFG_PL011_CLOCK CFG_PL01x_PORTS CFG_PME_PLAT_CLK_DIV -CONFIG_POST -CONFIG_POSTBOOTMENU -CONFIG_POST_EXTERNAL_WORD_FUNCS -CONFIG_POWER_LTC3676_I2C_ADDR +CFG_POSTBOOTMENU +CFG_POWER_LTC3676_I2C_ADDR CONFIG_POWER_PFUZE100_I2C_ADDR CONFIG_POWER_PFUZE3000_I2C_ADDR CONFIG_PPC_SPINTABLE_COMPATIBLE -- 2.25.1