From patchwork Sun Apr 11 00:08:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gao Ya'nan X-Patchwork-Id: 71751 X-Patchwork-Delegate: kim.phillips@freescale.com Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id C1297E6D662 for ; Sun, 11 Apr 2010 02:11:09 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id A1AB4C913130 for ; Sun, 11 Apr 2010 02:11:09 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.9) for (single-drop); Sun, 11 Apr 2010 02:11:09 +0200 (CEST) Received: from murder (svr19.m-online.net [192.168.3.147]) by backend2 (Cyrus v2.2.12) with LMTPA; Sun, 11 Apr 2010 02:09:41 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.pop.m-online.net (Cyrus v2.2.13) with LMTPA; Sun, 11 Apr 2010 02:09:40 +0200 Received: from scanner-1.m-online.net (unknown [192.168.8.165]) by mail.m-online.net (Postfix) with ESMTP id 634DA2001A4; Sun, 11 Apr 2010 02:09:40 +0200 (CEST) Received: from mxin-3.m-online.net ([192.168.6.165]) by scanner-1.m-online.net (scanner-1.m-online.net [192.168.8.165]) (amavisd-new, port 10026) with ESMTP id 17595-08; Sun, 11 Apr 2010 02:09:38 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-3.m-online.net (Postfix) with ESMTP id CEA6446C0A1; Sun, 11 Apr 2010 02:09:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 95F49280FB; Sun, 11 Apr 2010 02:09:31 +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 uyYjR3uAateF; Sun, 11 Apr 2010 02:09:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EFA3F280FC; Sun, 11 Apr 2010 02:09:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 24017280E9 for ; Sun, 11 Apr 2010 02:09:18 +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 smyO1zW5L3Nl for ; Sun, 11 Apr 2010 02:09:11 +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-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTP id 14B3A280E7 for ; Sun, 11 Apr 2010 02:09:09 +0200 (CEST) Received: by pwj2 with SMTP id 2so3606669pwj.3 for ; Sat, 10 Apr 2010 17:09:08 -0700 (PDT) Received: by 10.115.65.12 with SMTP id s12mr1919477wak.76.1270944548271; Sat, 10 Apr 2010 17:09:08 -0700 (PDT) Received: from localhost ([114.84.201.109]) by mx.google.com with ESMTPS id 23sm2466650pzk.10.2010.04.10.17.09.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Apr 2010 17:09:07 -0700 (PDT) From: Gao Ya'nan To: u-boot@lists.denx.de Date: Sun, 11 Apr 2010 08:08:51 +0800 Message-Id: <1270944532-2050-1-git-send-email-abutter.gao@gmail.com> X-Mailer: git-send-email 1.7.0 Cc: Gao Ya'nan Subject: [U-Boot] [PATCH 1/2] mpc83xx: Fix comments on map_flash_by_law1 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 X-Virus-Scanned: by amavisd-new at m-online.net --- cpu/mpc83xx/start.S | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/mpc83xx/start.S b/cpu/mpc83xx/start.S index 68bb620..d7b03a9 100644 --- a/cpu/mpc83xx/start.S +++ b/cpu/mpc83xx/start.S @@ -1156,7 +1156,7 @@ map_flash_by_law1: ori r4, r4, (CONFIG_SYS_FLASH_BASE)@l stw r4, LBLAWBAR1(r3) /* LBLAWBAR1 <= CONFIG_SYS_FLASH_BASE */ - /* Store 0x80000012 + log2(CONFIG_SYS_FLASH_SIZE) into LBLAWAR1 */ + /* Store 0x80000012 + log2(CONFIG_SYS_FLASH_SIZE) + 1 into LBLAWAR1 */ lis r4, (0x80000012)@h ori r4, r4, (0x80000012)@l li r5, CONFIG_SYS_FLASH_SIZE @@ -1164,7 +1164,7 @@ map_flash_by_law1: addi r4, r4, 1 bne 1b - stw r4, LBLAWAR1(r3) /* LBLAWAR1 <= 8MB Flash Size */ + stw r4, LBLAWAR1(r3) /* LBLAWAR1 <= Flash Size */ blr /* Though all the LBIU Local Access Windows and LBC Banks will be