From patchwork Wed Aug 31 08:35:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 112457 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 6742CB6F7F for ; Wed, 31 Aug 2011 18:36:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9E6912808A; Wed, 31 Aug 2011 10:35:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 AZy9YH9rtrw8; Wed, 31 Aug 2011 10:35:56 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8DA92280A1; Wed, 31 Aug 2011 10:35:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F7FF280A4 for ; Wed, 31 Aug 2011 10:35:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 UNOauEDYLzjx for ; Wed, 31 Aug 2011 10:35:31 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 0E98A28090 for ; Wed, 31 Aug 2011 10:35:27 +0200 (CEST) Received: by mail-bw0-f44.google.com with SMTP id r4so505492bka.3 for ; Wed, 31 Aug 2011 01:35:27 -0700 (PDT) Received: by 10.204.154.10 with SMTP id m10mr108811bkw.66.1314779727756; Wed, 31 Aug 2011 01:35:27 -0700 (PDT) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id zz10sm264128bkb.28.2011.08.31.01.35.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 01:35:27 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 31 Aug 2011 10:35:14 +0200 Message-Id: <1314779721-1113-4-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1314779721-1113-3-git-send-email-monstr@monstr.eu> References: <1314779721-1113-1-git-send-email-monstr@monstr.eu> <1314779721-1113-2-git-send-email-monstr@monstr.eu> <1314779721-1113-3-git-send-email-monstr@monstr.eu> Subject: [U-Boot] [PATCH 03/10] microblaze: Support flashes on lower addresses X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Michal Simek --- arch/microblaze/lib/board.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index 5510c12..ab1cbab 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -84,6 +84,10 @@ init_fnc_t *init_sequence[] = { NULL, }; +unsigned long monitor_flash_len; +extern char *__end; +extern char *__text_start; + void board_init (void) { bd_t *bd; @@ -105,6 +109,8 @@ void board_init (void) bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */ + monitor_flash_len = __end - __text_start; + /* * The Malloc area is immediately below the monitor copy in DRAM * aka CONFIG_SYS_MONITOR_BASE - Note there is no need for reloc_off