From patchwork Wed Apr 27 22:46:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 615901 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3qwFSp246yz9t6g for ; Thu, 28 Apr 2016 08:46:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D582A77F2; Thu, 28 Apr 2016 00:46:48 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eyh89KjJ7shW; Thu, 28 Apr 2016 00:46:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AD52EA77B0; Thu, 28 Apr 2016 00:46:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 29912A77B0 for ; Thu, 28 Apr 2016 00:46:45 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ew2jeQmeXZFm for ; Thu, 28 Apr 2016 00:46:45 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 IN_SPAMCOP=3.75 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yw0-f196.google.com (mail-yw0-f196.google.com [209.85.161.196]) by theia.denx.de (Postfix) with ESMTPS id BD43DA7669 for ; Thu, 28 Apr 2016 00:46:41 +0200 (CEST) Received: by mail-yw0-f196.google.com with SMTP id v81so1894269ywa.2 for ; Wed, 27 Apr 2016 15:46:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=C+z+l+cC9oBQTwKQJrhY5Mv8yX9Y5xH8AJ5OR9IsHWk=; b=fmMy2/fcR23BAEbn36kxRBgAmMmuMFZaVBDUmQI6QWlNbT8LLZntL+NVsca+Z+OzET Cd82KxFQiqkBNMlPcjZlcwLzJdcRndJQUkjecp0TswP+ddvsfEX2V84l7Rvg+CWe0W1+ DjUAH/zLANMNZi1o9IYOBavJltSTbNpo8s7hsM2DaYQ+YfJnQnX0HAwm7Yk7W5AqHbS+ EPH6LnGWhWxRBTbb4uxTfstvKz/UFh80TVCmaseDCwcTJGdft0kfM+qJEtH2oF8nf3xk nnDiLF0CjvlB3we1IQPhu8MoHDYd9+dBbx5g/B2v8otvZmPm9euD/kipnbAkBKBuGhN2 pzPQ== X-Gm-Message-State: AOPr4FXI6nri2IB8MfGn7m7csXatBdDohB2nqdv/ZKj+Ueh6v05UwgO1SWDU5UKZeVzTDg== X-Received: by 10.129.122.207 with SMTP id v198mr6336989ywc.82.1461797200257; Wed, 27 Apr 2016 15:46:40 -0700 (PDT) Received: from bill-the-cat.ec.rr.com (cpe-75-180-230-22.ec.res.rr.com. [75.180.230.22]) by smtp.gmail.com with ESMTPSA id 204sm3126195ywz.39.2016.04.27.15.46.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Apr 2016 15:46:39 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Wed, 27 Apr 2016 18:46:36 -0400 Message-Id: <1461797196-844-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.9.1 Subject: [U-Boot] [PATCH] omap3: Reduce logic/overo SPL max image size X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" While the OMAP3 has 64KiB of SRAM, per the TRM the download area is only from 0x40200000 to 0x4020F000 and exceeding that will cause failure to boot. Further, we need to make sure that we don't run into SRAM_SCRATCH_SPACE_ADDR as once SPL is running we will write values there and would corrupt our running image. Cc: Adam Ford Cc: Steve Sakoman Signed-off-by: Tom Rini Tested-By: Adam Ford --- include/configs/omap3_logic.h | 2 +- include/configs/omap3_overo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/omap3_logic.h b/include/configs/omap3_logic.h index 055dcb7..6c79643 100644 --- a/include/configs/omap3_logic.h +++ b/include/configs/omap3_logic.h @@ -34,7 +34,7 @@ #undef CONFIG_SPL_TEXT_BASE #undef CONFIG_SPL_MAX_SIZE #define CONFIG_SPL_TEXT_BASE 0x40200000 -#define CONFIG_SPL_MAX_SIZE (64 * 1024) +#define CONFIG_SPL_MAX_SIZE (SRAM_SCRATCH_SPACE_ADDR - CONFIG_SPL_TEXT_BASE) /* Display CPU and Board information */ diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h index c066eae5..fbd0c2a 100644 --- a/include/configs/omap3_overo.h +++ b/include/configs/omap3_overo.h @@ -12,9 +12,9 @@ #include #undef CONFIG_SPL_MAX_SIZE -#define CONFIG_SPL_MAX_SIZE (64*1024) #undef CONFIG_SPL_TEXT_BASE #define CONFIG_SPL_TEXT_BASE 0x40200000 +#define CONFIG_SPL_MAX_SIZE (SRAM_SCRATCH_SPACE_ADDR - CONFIG_SPL_TEXT_BASE) #define CONFIG_BCH