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 83AF3C433EF for ; Sat, 25 Jun 2022 15:05:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5397F844C3; Sat, 25 Jun 2022 17:03:35 +0200 (CEST) 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="eUqkjaY+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 510D684489; Sat, 25 Jun 2022 17:03:15 +0200 (CEST) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 E906084470 for ; Sat, 25 Jun 2022 17:03:09 +0200 (CEST) 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-xf36.google.com with SMTP id i17so8713589qvo.13 for ; Sat, 25 Jun 2022 08:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v7KPuelVqQ6hkRymxPgZtZFH61XCjo+m8TtJJCrZXrY=; b=eUqkjaY+LSdketlS5o1y1tjEvJzxF7rk2IbyCPZjNqmP0RLt/AfQpqQgxQmtkhfMe8 40nv0hc0mb2WsfDdCzouUpVofbt+pszRLbvkhE53Fh90Lh88QuSePAwC/dsqs+MFKFub 5oNcw8aqLr+TPWxfOKM2Rl4SBMtN6PlWNKj1E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v7KPuelVqQ6hkRymxPgZtZFH61XCjo+m8TtJJCrZXrY=; b=ltUyaxIDNwXYuLv4yfEh3RaU123ktPonpP3Z5khhfjLJuVGAVRdPEwcuq4uby2XCbv 0b27r0XI8IyEDT5b7vHMqBVnaqSU3LusI9zn81k1ROnY842pvvg7WB8ig75OnYB85Li2 HnDmJ0xz/nPcNdrTM0H6JfiMqUMsiIGnBqLO/rIiz11zifqlvxoIE0y/4X4bAyj7v78r 7tn+IyaSJ3unsioRtEFcuFgJHdrfJvI2yHsMSi0wiF89VH6VT6K9Th6lsE7VBR6yfeix V4RVgro0tnpuMa5GgwD85cGI1pjF7i7kZF2p4DJPQaJrs2BjbiuR3LsUG/ifhcW7sest 8Jbg== X-Gm-Message-State: AJIora+TG8yANMCWtbs8LKR4bwe2V94y5p26WAkComViVJtU4DItdVEQ zp3PgOcrNSfO2WAioktxTEDzFRvtig/How== X-Google-Smtp-Source: AGRyM1tnU3o6UxOUxSiA91RkZOSTjHqpoU0tPJdGvwpAaPR00aXKKkXOQaZtCe/TIM9jh0bbitggiA== X-Received: by 2002:a0c:8ec5:0:b0:470:9302:9f42 with SMTP id y5-20020a0c8ec5000000b0047093029f42mr3144876qvb.9.1656169388402; Sat, 25 Jun 2022 08:03:08 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id o6-20020a05620a2a0600b006a6d3fa430csm4375766qkp.58.2022.06.25.08.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 08:03:07 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Fabio Estevam , Adrian Alonso Subject: [PATCH 17/20] mx*sabresd: Reference CONFIG_SYS_AUXCORE_BOOTDATA value directly Date: Sat, 25 Jun 2022 11:02:47 -0400 Message-Id: <20220625150250.1398291-17-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220625150250.1398291-1-trini@konsulko.com> References: <20220625150250.1398291-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 As this is used in the environment, reference it directly rather than as a CONFIG value. Cc: Fabio Estevam Cc: Adrian Alonso Signed-off-by: Tom Rini --- An alternative would be to move to text file environments (which would be good to do regardless) and control this via an environmental variable if desired. Or introduce a new CONFIG symbol in Kconfig. --- include/configs/mx6sxsabresd.h | 4 +--- include/configs/mx7dsabresd.h | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h index 58d550fee9ec..570e2ce687ac 100644 --- a/include/configs/mx6sxsabresd.h +++ b/include/configs/mx6sxsabresd.h @@ -19,8 +19,6 @@ #define CONFIG_MXC_UART_BASE UART1_BASE #ifdef CONFIG_IMX_BOOTAUX -/* Set to QSPI2 B flash at default */ -#define CONFIG_SYS_AUXCORE_BOOTDATA 0x78000000 #define UPDATE_M4_ENV \ "m4image=m4_qspi.bin\0" \ @@ -35,7 +33,7 @@ "sf write ${loadaddr} 0x0 ${filesize}; " \ "fi; " \ "fi\0" \ - "m4boot=sf probe 1:0; bootaux "__stringify(CONFIG_SYS_AUXCORE_BOOTDATA)"\0" + "m4boot=sf probe 1:0; bootaux 0x78000000\0" #else #define UPDATE_M4_ENV "" #endif diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h index a6b8c275fe77..b96341a587c4 100644 --- a/include/configs/mx7dsabresd.h +++ b/include/configs/mx7dsabresd.h @@ -12,10 +12,7 @@ #define PHYS_SDRAM_SIZE SZ_1G - #ifdef CONFIG_IMX_BOOTAUX -/* Set to QSPI1 A flash at default */ -#define CONFIG_SYS_AUXCORE_BOOTDATA 0x60000000 #define UPDATE_M4_ENV \ "m4image=m4_qspi.bin\0" \ @@ -30,7 +27,7 @@ "sf write ${loadaddr} 0x0 ${filesize}; " \ "fi; " \ "fi\0" \ - "m4boot=sf probe 0:0; bootaux "__stringify(CONFIG_SYS_AUXCORE_BOOTDATA)"\0" + "m4boot=sf probe 0:0; bootaux 0x60000000\0" #else #define UPDATE_M4_ENV "" #endif -- 2.25.1