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 743F9C4332F for ; Sun, 20 Nov 2022 14:28:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C15AF85520; Sun, 20 Nov 2022 15:18:55 +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="NLEkDKEQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C719E854D9; Sun, 20 Nov 2022 15:18:20 +0100 (CET) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 AA319854CE for ; Sun, 20 Nov 2022 15:18:10 +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-x832.google.com with SMTP id l15so5946057qtv.4 for ; Sun, 20 Nov 2022 06:18:10 -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=KG5hV8ZDQ6JejfkRmwKu7htKT5/1dEgj279zNmfkUlc=; b=NLEkDKEQGlPGaQy+Qg711FHlCYjp2j1IuL2up6JWHckuVoWenjbNF43fEAmTzUqUHP HHNKwlO3Jrjq5f4PpzmDnLF9q8dLlNZ7gATI2SoiiOka6whJ7RS8d6t9FACSMpPOL8nm zhS3ctL1XAjiZiBGFESxxQ39Zea4DB7JjS+/s= 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=KG5hV8ZDQ6JejfkRmwKu7htKT5/1dEgj279zNmfkUlc=; b=KncTHuQ7VU066EhkOc203TRn3UisqiVNGSMfD07I7Ulrk8QzTjPpGtqH47nVnuiGul YV6IJHG1kmJV6gf6GwG5l3WgObRIlCRD7x2yUUgeWBv31AStZSpZ+Jhwf78B+VBYmHvy V79WVAVvNggXzoEdPFDVn31DosJ6OeO22Jt38fexlA2lRwkK2CueXXZigLYNJ7RIg7tI qrTz5CJ0l+foLEDZqLD5D1iP+CSX8IRLCoGtFYZLMX7zYievkADt5Vt33cvYygyWWAUt qB7/4hjHttOCKhFe8DvELg0UXD58BNlONgEvdah+kyLVkD7MWo/3pifxKp2cmEtiJXyU bONQ== X-Gm-Message-State: ANoB5plYhFRJux5V/o2+HDIysor/cALkCswnh/hjsH0g+KvDK3mZz4Wi zzrDMzY31sb2BR3Of2km5FnxFZKOwrS+bQ== X-Google-Smtp-Source: AA0mqf431UPTZ2aAUxPXEcFVV5CzvBWO+KkJwGajlI5BNHhlzADq5z/RMKhKBMvXMN/l7ZmZhjnMrg== X-Received: by 2002:ac8:7255:0:b0:3a5:68b6:88f2 with SMTP id l21-20020ac87255000000b003a568b688f2mr14013374qtp.471.1668953890149; Sun, 20 Nov 2022 06:18:10 -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-20020a05620a1a1700b006ce580c2663sm6400114qkb.35.2022.11.20.06.18.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 06:18:09 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 239/241] global: Migrate CONFIG_X86_REFCODE_ADDR to CFG Date: Sun, 20 Nov 2022 09:17:41 -0500 Message-Id: <20221120141743.3059310-40-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221120141743.3059310-1-trini@konsulko.com> References: <20221120140829.3057894-90-trini@konsulko.com> <20221120141743.3059310-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 --- arch/x86/cpu/broadwell/refcode.c | 2 +- arch/x86/dts/u-boot.dtsi | 2 +- include/configs/x86-chromebook.h | 2 +- scripts/config_whitelist.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/cpu/broadwell/refcode.c b/arch/x86/cpu/broadwell/refcode.c index 94c2e05346a6..3b7ec2b74e8e 100644 --- a/arch/x86/cpu/broadwell/refcode.c +++ b/arch/x86/cpu/broadwell/refcode.c @@ -78,7 +78,7 @@ static int cpu_run_reference_code(void) int ret, dummy; int size; - hdr = (struct rmodule_header *)CONFIG_X86_REFCODE_ADDR; + hdr = (struct rmodule_header *)CFG_X86_REFCODE_ADDR; debug("Extracting code from rmodule at %p\n", hdr); if (hdr->magic != RMODULE_MAGIC) { debug("Invalid rmodule magic\n"); diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi index 454efc17614e..e0de33180910 100644 --- a/arch/x86/dts/u-boot.dtsi +++ b/arch/x86/dts/u-boot.dtsi @@ -149,7 +149,7 @@ #endif #ifdef CONFIG_HAVE_REFCODE intel-refcode { - offset = ; + offset = ; }; #endif #ifdef CONFIG_TPL diff --git a/include/configs/x86-chromebook.h b/include/configs/x86-chromebook.h index 7d93dcbfc2e5..fa45bf809700 100644 --- a/include/configs/x86-chromebook.h +++ b/include/configs/x86-chromebook.h @@ -7,7 +7,7 @@ #define _X86_CHROMEBOOK_H #define CFG_X86_MRC_ADDR 0xfffa0000 -#define CONFIG_X86_REFCODE_ADDR 0xffea0000 +#define CFG_X86_REFCODE_ADDR 0xffea0000 #define CONFIG_X86_REFCODE_RUN_ADDR 0 #define VIDEO_IO_OFFSET 0 diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 66173404901d..2895dd09bfcf 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -254,5 +254,5 @@ CFG_WATCHDOG_PRESC CFG_WATCHDOG_RC CFG_X86EMU_RAW_IO CFG_X86_MRC_ADDR -CONFIG_X86_REFCODE_ADDR +CFG_X86_REFCODE_ADDR CONFIG_X86_REFCODE_RUN_ADDR -- 2.25.1