From patchwork Sun Nov 20 14:08:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1706873 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=sJ+FlGSu; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NFXgl6l8Tz23mR for ; Mon, 21 Nov 2022 01:18:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 756B985455; Sun, 20 Nov 2022 15:10:29 +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="sJ+FlGSu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CFEB98530F; Sun, 20 Nov 2022 15:09:30 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (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 BFD8B852CC for ; Sun, 20 Nov 2022 15:09:15 +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-qv1-xf29.google.com with SMTP id p8so5844874qvn.5 for ; Sun, 20 Nov 2022 06:09:15 -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=FnnFgCn+1UZhHQ02ZhikofGjD8y9gHYmb0ZfEUeVH1M=; b=sJ+FlGSuIpPHHVCtqoA1SBG4Cpu1+cCslzIcRSByRDbpjKSjPt0144V0BtCvTTAd1+ zNpSpZHyQv8E/frVwx2KKgh1P0JCYQ1IToxSgZw3ryZX5m8c4FTiqdHv85XYTeYv3ovx q+x9NwOAl5t4RgBG+nhVeaZpnIraU4S5yuB9c= 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=FnnFgCn+1UZhHQ02ZhikofGjD8y9gHYmb0ZfEUeVH1M=; b=wl1eCBBEq25jE2FBjy5CHcBUj/BDxiZCl1nxo9PSn8iz6h8ct0xGD62RM7rjrLNdeR MDwA67irYAE731avj5kceC9Ijg6VGY27vtdNHv+8WxPBTHFrkW0Kw5e2MWgOidcU8H17 sK/Dz+ie52IeltCHOsl6HTglErHkcWYMUQgZOZwfbZ8uB47Gg6IRlaXEG4QwzZO2LnNp zBK+NXOGTYzZbwx6/VqFsQBj0L3B2r7VN/GxMeSaE5yXQQT3/dAFyirTwOVPjnE5afO3 K5x7YGrotaBspYFvGY4k7379cuzauBzpDiHkMlrJoeLZrsWPaDiE5z5W46m+g0266mFX xr+Q== X-Gm-Message-State: ANoB5plq7G7t5+tSSh/KwK+M3yXJYWEaTJFaol1ldkT1PcvzhMLR+2SF v9ci90aWBOS8B84ZC2OuW+TzhZlWKnI2Qw== X-Google-Smtp-Source: AA0mqf5ZHUa/HMXmL/J5Cce/a5oEkcSt1WGPTTHKboQs94cG1EUlLRBI6/hAODT4BgaPZAGKWSwktw== X-Received: by 2002:a05:6214:3113:b0:4bb:7436:49de with SMTP id ks19-20020a056214311300b004bb743649demr13720616qvb.27.1668953354865; Sun, 20 Nov 2022 06:09:14 -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.09.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 06:09:14 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 178/241] global: Migrate CONFIG_SET_DFU_ALT_BUF_LEN to CFG Date: Sun, 20 Nov 2022 09:08:08 -0500 Message-Id: <20221120140829.3057894-69-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 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/samsung/common/misc.c | 2 +- include/configs/odroid.h | 2 +- include/configs/odroid_xu3.h | 2 +- scripts/config_whitelist.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index 9c0ec29c937b..5ffa216e2e5d 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -41,7 +41,7 @@ DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_SET_DFU_ALT_INFO void set_dfu_alt_info(char *interface, char *devstr) { - size_t buf_size = CONFIG_SET_DFU_ALT_BUF_LEN; + size_t buf_size = CFG_SET_DFU_ALT_BUF_LEN; ALLOC_CACHE_ALIGN_BUFFER(char, buf, buf_size); char *alt_info = "Settings not found!"; char *status = "error!\n"; diff --git a/include/configs/odroid.h b/include/configs/odroid.h index 3ac13a65d63f..560a23c23efb 100644 --- a/include/configs/odroid.h +++ b/include/configs/odroid.h @@ -37,7 +37,7 @@ ""PARTS_BOOT" part 0 1;" \ ""PARTS_ROOT" part 0 2\0" \ -#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) +#define CFG_SET_DFU_ALT_BUF_LEN (SZ_1K) #define CFG_DFU_ALT_BOOT_EMMC \ "u-boot raw 0x3e 0x800 mmcpart 1;" \ diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h index 93f88ef53eba..e8ec504c355e 100644 --- a/include/configs/odroid_xu3.h +++ b/include/configs/odroid_xu3.h @@ -57,7 +57,7 @@ "params.bin raw 0x1880 0x20\0" /* Enable: board/samsung/common/misc.c to use set_dfu_alt_info() */ -#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) +#define CFG_SET_DFU_ALT_BUF_LEN (SZ_1K) /* Set soc_rev, soc_id, board_rev, board_name, fdtfile */ #define CFG_ODROID_REV_AIN 9 diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index c8e2d10fe0be..6ffe0779b47d 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -187,7 +187,7 @@ CFG_SC_TIMER_CLK CFG_SERIAL_BOOT CFG_SERVERIP CFG_SETUP_INITRD_TAG -CONFIG_SET_DFU_ALT_BUF_LEN +CFG_SET_DFU_ALT_BUF_LEN CONFIG_SH_ETHER_ALIGNE_SIZE CONFIG_SH_ETHER_CACHE_INVALIDATE CONFIG_SH_ETHER_CACHE_WRITEBACK