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 D04A4C4332F for ; Sun, 20 Nov 2022 14:30:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE26C85545; Sun, 20 Nov 2022 15:19:07 +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="ZT/0WaL/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 166BA8548F; Sun, 20 Nov 2022 15:18:25 +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 48074854A9 for ; Sun, 20 Nov 2022 15:18:22 +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 jr19so5936457qtb.7 for ; Sun, 20 Nov 2022 06:18:22 -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=hhbLwAe6MCpY5t+WL4eS31hWYyAWdO4OkdnhD+ZXVf8=; b=ZT/0WaL/hkmSDuz/gg9Uk4pD8MzwHJrjAiYZ94pdsVhkT1kyAAN2Go9iDD2WEBTSET 8dZSmghvPwDp/Uv63QTN97T4llV2dD+2qa0MGHelT0StlXGVuExGDNyYhYwFZkq46qDb fmjrVsHdiAx7Ax4IQGIYZ+RFuVRndeAVEMe58= 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=hhbLwAe6MCpY5t+WL4eS31hWYyAWdO4OkdnhD+ZXVf8=; b=Ze92ZYhpO50tcM28nPGeynI1/ys3TK9oRchcm9ZrE00AUZfj0MRFdgd3KgnP2Fe7NL DciYbxAcJ37g/jFi1EB7NiJOTo3kdjKtipc+V7WCvAtl9pg//9SZZDRBoGfBMxmB5uL8 S9lGERK07cKERMHkLpuebZgQdWrGh0yxc1k0axO5f74ZprOIYII71HlUtaEkUVRxmD2q ojbs1QZQzmfj2ypqgN0TxYmZUYStRZfI+Ou3JexOFqsOmr1buTMr33QlqkoEO2dDIu/I +qZmCHQoJxhjdxhYczi4QDFMJrZpNd6i2vyurZySCHZK13xfijDbJIVc93aiOBrrumqg 5tpQ== X-Gm-Message-State: ANoB5pksRhTrS6DljFuppQHu3ewQ545+KOrDggW6p5fThzqaKUpwa2fF 86ny7VMHfM4WkhSGdymI47RR39c9sSR8Iw== X-Google-Smtp-Source: AA0mqf5LgNFAmbUpv/IcbINXbDNyaJarWZirFqZ5DuFhmx9vU2c9PuUBIGgj8P5+yOMc0/b3oxT1WA== X-Received: by 2002:a05:622a:4816:b0:3a5:f994:78c6 with SMTP id fb22-20020a05622a481600b003a5f99478c6mr13932214qtb.2.1668953890947; 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.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 06:18:10 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 240/241] global: Migrate CONFIG_X86_REFCODE_RUN_ADDR to CFG Date: Sun, 20 Nov 2022 09:17:42 -0500 Message-Id: <20221120141743.3059310-41-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 | 4 ++-- include/configs/x86-chromebook.h | 2 +- scripts/config_whitelist.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/cpu/broadwell/refcode.c b/arch/x86/cpu/broadwell/refcode.c index 3b7ec2b74e8e..df2df7972e98 100644 --- a/arch/x86/cpu/broadwell/refcode.c +++ b/arch/x86/cpu/broadwell/refcode.c @@ -99,7 +99,7 @@ static int cpu_run_reference_code(void) pei_data->saved_data = (void *)&dummy; src = (char *)hdr + hdr->payload_begin_offset; - dest = (char *)CONFIG_X86_REFCODE_RUN_ADDR; + dest = (char *)CFG_X86_REFCODE_RUN_ADDR; size = hdr->payload_end_offset - hdr->payload_begin_offset; debug("Copying refcode from %p to %p, size %x\n", src, dest, size); @@ -112,7 +112,7 @@ static int cpu_run_reference_code(void) func = (asmlinkage int (*)(void *))dest; debug("Running reference code at %p\n", func); #ifdef DEBUG - print_buffer(CONFIG_X86_REFCODE_RUN_ADDR, (void *)func, 1, 0x40, 0); + print_buffer(CFG_X86_REFCODE_RUN_ADDR, (void *)func, 1, 0x40, 0); #endif ret = func(pei_data); if (ret != 0) { diff --git a/include/configs/x86-chromebook.h b/include/configs/x86-chromebook.h index fa45bf809700..98a537141deb 100644 --- a/include/configs/x86-chromebook.h +++ b/include/configs/x86-chromebook.h @@ -8,7 +8,7 @@ #define CFG_X86_MRC_ADDR 0xfffa0000 #define CFG_X86_REFCODE_ADDR 0xffea0000 -#define CONFIG_X86_REFCODE_RUN_ADDR 0 +#define CFG_X86_REFCODE_RUN_ADDR 0 #define VIDEO_IO_OFFSET 0 #define CFG_X86EMU_RAW_IO diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 2895dd09bfcf..1a57607fccf7 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -255,4 +255,4 @@ CFG_WATCHDOG_RC CFG_X86EMU_RAW_IO CFG_X86_MRC_ADDR CFG_X86_REFCODE_ADDR -CONFIG_X86_REFCODE_RUN_ADDR +CFG_X86_REFCODE_RUN_ADDR -- 2.25.1