From patchwork Thu Aug 9 19:04:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Goldschmidt X-Patchwork-Id: 955767 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Bv4vCNc6"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41md6t5lTzz9s47 for ; Fri, 10 Aug 2018 05:07:34 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 83C98C21DC1; Thu, 9 Aug 2018 19:05:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3B11BC21DD3; Thu, 9 Aug 2018 19:05:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B61EEC21DFA; Thu, 9 Aug 2018 19:04:56 +0000 (UTC) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by lists.denx.de (Postfix) with ESMTPS id 6ED0CC21D8E for ; Thu, 9 Aug 2018 19:04:52 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id g1-v6so6070436wru.2 for ; Thu, 09 Aug 2018 12:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9cbiF1OBhH7NVoHcvvawhGvHHquIkdcu32oZsiExBwo=; b=Bv4vCNc6iOGASLwYb5dKgXW/odip8pmrqKRtFMQh56Q40WAp/Xf3gLsNYFs1QnsgyZ fVAcTA/sFt7T/yw69oXD4s8EJlyNvBGhbMMkcF3qFkbPhShzufvg0cJtHXJec59RPYbw r6BdNqPh8rzcIamT8Ac10T7M+NT5sAg5IRm3Y5qNupF8cbxQzPN/jzz0n5zrMSRrT3XT Bpl1bGWT4dHwE6pNb/w3uE729QvST08wYqD8d+oaqKFQSeFeeIPr4WsXUlXyuLlBqA/Q QtziHOr5RryKp1zPNKWPnm/LNbIvwIEz7EK2YG5TaVPqsEeK8ExfMk6zU5F2+weQ8QVI 5TiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9cbiF1OBhH7NVoHcvvawhGvHHquIkdcu32oZsiExBwo=; b=mXl3IDLeaWQTga+pjGXFwaUZuG2vydfobkR7YP+ZXnF/rUyyUd1NR3raXUyVUqTA6O xytczuYtTwcr09glWzz6UY9pPICDZtFtZfoq825PxR3x2b8fjCzTd8U4gaMp+vkP0PT0 5rkeSPtXxkkXl12tJA51hE31JNeeM0nE+DR9ZpJpEDnWRNRrC9RgZOkb60u0m+3Whwee xPw8r9FvlfmshLwbaowjLgAX2nGqd05uIy4Z/BwFb5j5k56oIEcvQdhtMtNgryMEFuz7 /ZsEHVOCpYY/CToXPT9ccxagrtOdTAtwZz7AlBkwXisKZJIf/LHuWESMTU8z+smVGBtt rv7Q== X-Gm-Message-State: AOUpUlGY5+n2ER/g0IddtRDjdmfcPYtc0I9Y4BhgHh0efgB//uwZ30qv kNvy8U+Av65nwEW/GihtCMs= X-Google-Smtp-Source: AA+uWPw8zSOY4j5zaE2MlIIpopcHGErgRljieLfKQH4H9Lec4XAlk1wQZ0PMLt9US1tIelQPdscqCw== X-Received: by 2002:adf:93a3:: with SMTP id 32-v6mr2190195wrp.140.1533841492198; Thu, 09 Aug 2018 12:04:52 -0700 (PDT) Received: from ubuntu.home ([2a02:8071:6a3:700:542c:ff11:9c97:a518]) by smtp.gmail.com with ESMTPSA id h7-v6sm8280575wrs.8.2018.08.09.12.04.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 12:04:51 -0700 (PDT) From: Simon Goldschmidt To: Marek Vasut Date: Thu, 9 Aug 2018 21:04:17 +0200 Message-Id: <20180809190420.28093-4-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180809190420.28093-1-simon.k.r.goldschmidt@gmail.com> References: <20180805193500.3693-1-simon.k.r.goldschmidt@gmail.com> <20180809190420.28093-1-simon.k.r.goldschmidt@gmail.com> Cc: u-boot@lists.denx.de, Tom Rini Subject: [U-Boot] [PATCH 3/6] arm: socfpga: spl_gen5: clean up malloc_base assignment X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Simon Goldschmidt In spl_gen5's board_init_f(), gd->malloc_base is manually assigned at the end of the function to point to sdram. This code is outdated as by now, the heap is switched to sdram by the common function spl_relocate_stack_gd() if the appropriate defines are set. As it was, the value assigned manually was directly overwritten by this common code, so remove the manual assignment. Signed-off-by: Simon Goldschmidt --- v2: - this patch is new in v2 of the series (extracted from PATCH v1 1/6) arch/arm/mach-socfpga/spl_gen5.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-socfpga/spl_gen5.c b/arch/arm/mach-socfpga/spl_gen5.c index 9bdfaa3c1e..0d5526656d 100644 --- a/arch/arm/mach-socfpga/spl_gen5.c +++ b/arch/arm/mach-socfpga/spl_gen5.c @@ -184,7 +184,4 @@ void board_init_f(ulong dummy) } socfpga_bridges_reset(1); - - /* Configure simple malloc base pointer into RAM. */ - gd->malloc_base = CONFIG_SYS_TEXT_BASE + (1024 * 1024); }