[U-Boot] [PATCH 3/8] sbc8548: enable access to second bank of flash

Wolfgang Denk wd at denx.de
Wed Sep 23 22:07:49 CEST 2009


Dear Paul Gortmaker,

In message <918ca661b391ce156f39e6c8a086ea93d845caea.1253315004.git.paul.gortmaker at 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


More information about the U-Boot mailing list