Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5BC5C433EF for ; Sun, 12 Sep 2021 16:27:00 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F38C660F92 for ; Sun, 12 Sep 2021 16:26:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F38C660F92 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B2D6D8395D; Sun, 12 Sep 2021 18:26:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="QJ/WQQnp"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="H1qJJ3QQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2B96F8395F; Sun, 12 Sep 2021 18:26:55 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F2B988395B for ; Sun, 12 Sep 2021 18:26:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 816845C0092; Sun, 12 Sep 2021 12:26:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 12 Sep 2021 12:26:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=A//jdKR+9BgxR2aaLOnCBLeL5g MN9ACQ89V8t8HrEIs=; b=QJ/WQQnpfn0aQPPq1aigpZIyyiUOhvQAPlOEM0xEWc dxzEaIxS34fCh8tWbkkKYthSs8YCYSGgio1H9HG3S4fcRkOpc8ya3XgOf/JA4XkI Kfmp0BILGTSCYZ+w2y4ARK5aEC2EL7byijb3dFXL6boM1j2lk4mPxFLtx9wbbqsA NhU0MURsCuKYakuq0+i4agxBVs1ZIf00Q4H0Z8S3NBHq/kkglRHlitVMS9ZZvo4d t2pWMHnUO6N2upJWIBtQ5UgXAI53++ybtDMvAd43vjZ44mvG8rTOEg3etZhZvbp2 eN23tSI1t7F+mLsY5bSbZs6LpY1OSx2OArEljrv9Hwvw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=A//jdKR+9BgxR2aaL OnCBLeL5gMN9ACQ89V8t8HrEIs=; b=H1qJJ3QQX4NXzpL4k42+8e7YqubmL4Dik nmYJpWUPU7LmNQNEZWBhJFXhgFrqfs7F6f6hZCMyF3Sf5l76dsuwCltQYKD8FAe7 gpwveof6TMC0/UzRdprQaK0Yv1L8Q/xsNejWu5aZ7YljMYSvha1wkyl+4Kymfm1c hvcRLkQH9m+kto7FDOdmjeJjdRmjxF51CMwOSHTYEQeW9RXeo5k8qf03QOj7Qgp5 WDZc9ua1/oVQPLMUEnXdlQBbZNsRwajcPJfLkAahjAdNisEdok97ofcdfy28le4A la0Am0nt/N/CcOGGjukYKBkIpOXZCovYXdqtoqfz160+VvoCaSo8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeghedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeeiteekhfehuddugfeltddufeejjeefgeevheekueffhffhjeekheeiffdt vedtveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 12 Sep 2021 12:26:47 -0400 (EDT) From: Samuel Holland To: Rick Chen , Leo Cc: u-boot@lists.denx.de, Samuel Holland , Andre Przywara , Frieder Schrempf , Jernej Skrabec , Naoki Hayama , Simon Glass , Tim Harvey Subject: [PATCH] riscv: image: Use the first DRAM bank for bootm_low Date: Sun, 12 Sep 2021 11:26:45 -0500 Message-Id: <20210912162646.52573-1-samuel@sholland.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean bootm_low is used as a base address is used to allocate space for the FDT blob, initrd, cmdline, etc. when booting Linux. Set the default value for RISC-V to the start of the first DRAM bank, so platforms can get their DRAM layout from the device tree, and do not need to define CONFIG_SYS_SDRAM_BASE. Signed-off-by: Samuel Holland --- common/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/image.c b/common/image.c index 59c52a1f9ad..1f06413bfa6 100644 --- a/common/image.c +++ b/common/image.c @@ -682,7 +682,7 @@ ulong env_get_bootm_low(void) #if defined(CONFIG_SYS_SDRAM_BASE) return CONFIG_SYS_SDRAM_BASE; -#elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE) +#elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE) || defined(CONFIG_RISCV) return gd->bd->bi_dram[0].start; #else return 0; -- 2.31.1