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 A4249C433EF for ; Mon, 27 Jun 2022 17:36:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D3FD58433B; Mon, 27 Jun 2022 19:36:04 +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="JN78XA4B"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D5016837BB; Mon, 27 Jun 2022 19:35:58 +0200 (CEST) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 7DC2B83F24 for ; Mon, 27 Jun 2022 19:35:56 +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-xf2b.google.com with SMTP id o43so15788250qvo.4 for ; Mon, 27 Jun 2022 10:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=fq2KR1XZhl9+IkE7zTwxMURDb+ecFXpHvwgc5Fc289w=; b=JN78XA4BvPK4Ga18rSSTRgtI8vSHTH6yR0Qn/f4LrINURFzjW1LZbWIsy00TtKonnK jrZAJNi7YsIriry8J+LIeEd3HRwyVQei6StRjP0j9oRK1lJ5EiHZ813hb4ofI+G2iPPf 6e2oUYSK3sAtd7v4NDD6nl1M+9HZ0Qi9MYhH0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fq2KR1XZhl9+IkE7zTwxMURDb+ecFXpHvwgc5Fc289w=; b=fYqdwdfKk8HZ9dY8BPRtCdK26cV2C7DqBVQ6zyugCnCpwP5lI9nS2GIW61Hcc3NHBT DKIo/l/u1FM7DnI5NDxxrUw0cdvmEW6XmBk44PGdPXCSMI2+BHiwIHP2Bo41Gof3x5Y3 1r95w9fjG3OV36zj3bbmlOGVUvZIfgclf6Qch7CnEpmuHFzW+3MDnehdT1mfXIYGSbjA w41fBn89bxOJczrfRpLU8BI8fwKe28YD2qzp84URyQJV3EzkIgjuFt+BEhhasFuvQKfs HtBT1aRGMLWbqwuncQ+f61tcumeFw/rZe4ddFUkOoMexyRNzhYitOLmAj2QShgcKTXuH D8Sg== X-Gm-Message-State: AJIora/+fnh2YFbwX7aIEj0MmwOXMIoDyqI7sc6wLZ6z44w/2pNcSAEJ KBoh/a48NiF4mCfKz8b29/D86HR3LQZvOw== X-Google-Smtp-Source: AGRyM1sOpSuHCKSQLdXdyYzVfyP4kzpGb5tWoVJNAQx5W/178xZCn6ZEvlRcq+AjxNcCLaWyTUGb6A== X-Received: by 2002:a05:622a:1015:b0:305:2e90:587d with SMTP id d21-20020a05622a101500b003052e90587dmr10453867qte.180.1656351354830; Mon, 27 Jun 2022 10:35:54 -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 j17-20020a05620a289100b006a793bde241sm9471398qkp.63.2022.06.27.10.35.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 10:35:54 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 3/6] omap3: emif4: More clearly hard-code cs0 size Date: Mon, 27 Jun 2022 13:35:48 -0400 Message-Id: <20220627173551.1199243-3-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220627173551.1199243-1-trini@konsulko.com> References: <20220627173551.1199243-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 We have a single platform that is both in the OMAP3 family of parts, but has an EMIF4 memory controller. Currently we hard-code the size of chip select 0. Make this more clear by putting the value in the function rather than a CONFIG option. Signed-off-by: Tom Rini --- arch/arm/mach-omap2/omap3/emif4.c | 2 +- include/configs/am3517_evm.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c index d7d779819bf3..491e7c23dbc6 100644 --- a/arch/arm/mach-omap2/omap3/emif4.c +++ b/arch/arm/mach-omap2/omap3/emif4.c @@ -41,7 +41,7 @@ static u32 get_sdr_cs_size(u32 cs) /* TODO: Calculate the size based on EMIF4 configuration */ if (cs == CS0) - size = CONFIG_SYS_CS0_SIZE; + size = 256 * 1024 * 1024; return size; } diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h index e6c9039d1664..93beed4ad736 100644 --- a/include/configs/am3517_evm.h +++ b/include/configs/am3517_evm.h @@ -85,9 +85,6 @@ /* memtest works on */ -/* Physical Memory Map */ -#define CONFIG_SYS_CS0_SIZE (256 * 1024 * 1024) - /* FLASH and environment organization */ /* **** PISMO SUPPORT *** */ -- 2.25.1