From: Wolfgang Denk Date: Wed, 23 Sep 2009 22:07:49 +0200 Subject: [U-Boot] [PATCH 3/8] sbc8548: enable access to second bank of flash In-Reply-To: <918ca661b391ce156f39e6c8a086ea93d845caea.1253315004.git.paul.gortmaker@windriver.com> References: <1253315326-16961-1-git-send-email-paul.gortmaker@windriver.com> <918ca661b391ce156f39e6c8a086ea93d845caea.1253315004.git.paul.gortmaker@windriver.com> Message-ID: <20090923200749.72FB3832E864@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Paul Gortmaker, In message <918ca661b391ce156f39e6c8a086ea93d845caea.1253315004.git.paul.gortmaker@windriver.com> you wrote: > The sbc8548 has a 64MB SODIMM flash module off of CS6 that > previously wasn't enumerated by u-boot. There were already > BR6/OR6 settings for it [used by cpu_init_f()] but there > was no TLB entry and it wasn't in the list of flash banks > reported to u-boot. > > The location of the 64MB flash is "pulled back" 8MB from > a 64MB boundary, in order to allow address space for the > 8MB boot flash that is at the end of 32 bit address space. > This means creating two 4MB TLB entries for the 8MB chunk, > and then expanding the original boot flash entry to 64MB > in order to cover the 8MB boot flash and the remainder > (56MB) of the user flash. ... ... > - SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE, > + SET_TLB_ENTRY(1, CONFIG_SYS_ALT_FLASH + 0x800000, CONFIG_SYS_ALT_FLASH + 0x800000, Line too long. > + /* > + * TLB 8: 4M Non-cacheable, guarded > + * 0xfbc00000 4M 2nd 4MB block of 64MB user FLASH > + */ > + SET_TLB_ENTRY(1, CONFIG_SYS_ALT_FLASH + 0x400000, CONFIG_SYS_ALT_FLASH + 0x400000, Ditto. > +#define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE, CONFIG_SYS_ALT_FLASH} Ditto. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Unsichtbar macht sich die Dummheit, indem sie immer gr??ere Ausma?e annimmt. -- Bertold Brecht: Der Tui-Roman