From patchwork Wed Aug 12 10:42:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1343617 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=g4hR4UbA; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BRRBt0B6fz9sTN for ; Wed, 12 Aug 2020 20:43:49 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C42E0821E0; Wed, 12 Aug 2020 12:43:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="g4hR4UbA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 30F2B81F7C; Wed, 12 Aug 2020 12:43:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (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 F4174808B2 for ; Wed, 12 Aug 2020 12:43:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-wm1-x343.google.com with SMTP id p14so1366552wmg.1 for ; Wed, 12 Aug 2020 03:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uxXBZHJ2jwD2robXFQtRJW9Jml7FPAoE5/zifmYB+vM=; b=g4hR4UbAZQMoVDOcaE+HmK4Jr0pG4ZbyMXAhzZt1PA/00YkXIS/ES0+AFvY/f6wbEQ S3U0tDWx0ofYlo+CmgGq9hLFoaBXjfLdIK2QIdkL2gDyVNl+rl6GAroeyhe0Fc29Eh9j pa+GQw0cRJa9FEykMakogYmTtggsBSwyenlW/rAgDsjGGypZHW/D7+4QokkFmqwBAEhf 0Cq59MGagkAMtRLMUNYD+cwpWln/1CFYnIKOzSCJYisJuouXVHI+jppe/dpMIEAVGMb7 7OuppVC92I4s4k6Y5ZQrtrhMDJL9zsid0IZcJBDOPOQ5ZOU79vEVA09SsUp/sScbN56B 1JJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=uxXBZHJ2jwD2robXFQtRJW9Jml7FPAoE5/zifmYB+vM=; b=bUnBt7dmHSRLL5BVStj9J5QT/9ADiH48eWQjAGGYt2cSHNXE9PRsAyQjT32jLElOaQ 5/vawQbOB252nSMT7CkwKx4ok7pTydZc4D8y5byCLh5eYfwiQtLJUnXMtkurn99AoH9E yZ6FbdyR8II3DhdRmjEBnl2p7aLTpF8koTs/dZscJ5gQkYq+/IsIeAWJq5SoL3xJfRz4 MHdlWHg2snfK3QLXBYrrOGeBJ58PFtSvbIMEp/IVq35E3QfvQv+jTNzl3kd2lb1W4nXi 69VRN3gyhiz78dDapa0hpmx0Sv0JOZzc4TBs9MPKFclIJzeIN7GoQ6ticmEaZJMSMAg2 IPGQ== X-Gm-Message-State: AOAM533qYq619WJSnPfgsKntOw35cKGnsaZN1IjZGYlipDeKnry7tGJD m5b+r5U5+WB/Yugwl1WiFd7623DWGsl6qw== X-Google-Smtp-Source: ABdhPJz30yliGBg4T7llyUKM9ku58caRRCPIn51ttxtFCIOvkNbSmGgyeJD4l9lS5CdyvOOlZ675HQ== X-Received: by 2002:a1c:7702:: with SMTP id t2mr7859523wmi.169.1597228981320; Wed, 12 Aug 2020 03:43:01 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id z7sm3007420wmk.6.2020.08.12.03.43.00 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Aug 2020 03:43:00 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Ibai Erkiaga , Michal Simek , Simon Glass Subject: [PATCH 2/4] xilinx: common: Get rid of initrd_high variable setup Date: Wed, 12 Aug 2020 12:42:51 +0200 Message-Id: X-Mailer: git-send-email 2.28.0 In-Reply-To: References: MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean When bootm_low/bootm_size are setup properly there is no need to setup any initrd_high address. Location for initrd is determined through LMB. Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 0782d08ee3fe..901591ba2a85 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -77,14 +77,8 @@ void *board_fdt_blob_setup(void) int board_late_init_xilinx(void) { - ulong initrd_hi; - env_set_hex("script_offset_f", CONFIG_BOOT_SCRIPT_OFFSET); - initrd_hi = gd->start_addr_sp - CONFIG_STACK_SIZE; - initrd_hi = round_down(initrd_hi, SZ_16M); - env_set_addr("initrd_high", (void *)initrd_hi); - env_set_addr("bootm_low", (void *)gd->ram_base); env_set_addr("bootm_size", (void *)gd->ram_size);