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 31BF7C4321E for ; Sun, 4 Dec 2022 15:32:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 02F91856B9; Sun, 4 Dec 2022 16:16:34 +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="p4PUs04F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6241985621; Sun, 4 Dec 2022 16:15:23 +0100 (CET) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 88C4C852FF for ; Sun, 4 Dec 2022 16:15:20 +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-ed1-x52c.google.com with SMTP id z92so12648447ede.1 for ; Sun, 04 Dec 2022 07:15:20 -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=pqk3yQGsPjpj1J2hLm08IsMM32r63eFQja0WRTKViyI=; b=p4PUs04FkJSJCxD5mQTB6yBXN/ep0BpwBIilu+a/6ygg5lCzNkHvUoXTjhhSg/T8MD jtDjoSK/gbIOPHFA+KCKpQFx1mXxmxj628FMGDa/PPz8HQSnpV6+643wVgUMDhMETOBd XDNBvHoA0ZGhxRHzK8F0yg/WSuhJgQEm5nYQQ= 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=pqk3yQGsPjpj1J2hLm08IsMM32r63eFQja0WRTKViyI=; b=LTIZOAl8lznKp+77lX71l4A3Wvr0UOxpbD4LMI6oNDLKMhTPeyMd5H4YnmjJ4lZplX MmJMyhy6l3IxKSDb22PVF9HDib9+JurGyvkLN22zZmXqjiIVapmiQfXU/w0Eglek04J7 lbd2WDsj/FFr0GnFv3kL136/g28QvGaYd/UYvjbbfxJKby2Z/zNoxqoPujdXUY0D+nk6 FytAZWXVF46ZUeyX0HwtCMGknWYTcU9LNuK1PLbcYu/+jV/JhHKCPEMifYi3ArcsiZ8s m/VQLN/QovSgfI8xjzbh8FkXl+wG0AKkLuQCWO6ZEmaa+S9I9SBtJyul0vE1TpqVbTW5 wSxw== X-Gm-Message-State: ANoB5plTxc0NZVy/vZfdUYv8RHx6KoSsnkXr7JxMv5Jj3QQZQSQR4Guw xffJLcd+BacTX6hsEbpabiii9KGp9PJJCfS4 X-Google-Smtp-Source: AA0mqf7eK8dbE/KeRHap2l9HxuPYjo0b+TozHWIEcQtoU9huMbt8WSUPm3HPhNf7sSgUWYagivsxgA== X-Received: by 2002:aa7:d4d0:0:b0:46b:46ab:c67f with SMTP id t16-20020aa7d4d0000000b0046b46abc67fmr26642215edr.51.1670166919904; Sun, 04 Dec 2022 07:15:19 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-61c7-2644-b62d-0af3.res6.spectrum.com. [2603:6081:7b00:6400:61c7:2644:b62d:af3]) by smtp.gmail.com with ESMTPSA id b21-20020aa7c915000000b00461816beef9sm5174405edt.14.2022.12.04.07.15.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 07:15:19 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 138/149] global: Migrate CONFIG_X86_REFCODE_RUN_ADDR to CFG Date: Sun, 4 Dec 2022 10:14:09 -0500 Message-Id: <20221204151420.56851-48-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221204151420.56851-1-trini@konsulko.com> References: <20221202214251.3027264-41-trini@konsulko.com> <20221204151420.56851-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 Perform a simple rename of CONFIG_X86_REFCODE_RUN_ADDR to CFG_X86_REFCODE_RUN_ADDR Signed-off-by: Tom Rini --- arch/x86/cpu/broadwell/refcode.c | 4 ++-- include/configs/x86-chromebook.h | 2 +- 2 files changed, 3 insertions(+), 3 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 8bbbe51ecb57..98abb00927ad 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 -- 2.25.1