[PATCH] pca-a-l1: added memory device for int. 60kB RAM.

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 19 09:10:24 EDT 2012


Hi Jürgen,

On Wed, Jul 18, 2012 at 02:58:46PM +0200, Juergen Kilb wrote:
> 
> Signed-off-by: Juergen Kilb <J.Kilb at phytec.de>
> ---
>  arch/arm/boards/phycard-a-l1/pca-a-l1.c         |    2 ++
>  arch/arm/mach-omap/include/mach/omap3-silicon.h |    1 +
>  2 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boards/phycard-a-l1/pca-a-l1.c b/arch/arm/boards/phycard-a-l1/pca-a-l1.c
> index 1cc2815..8fae405 100644
> --- a/arch/arm/boards/phycard-a-l1/pca-a-l1.c
> +++ b/arch/arm/boards/phycard-a-l1/pca-a-l1.c
> @@ -292,6 +292,8 @@ static int pcaal1_mem_init(void)
>  	 */
>  	gpmc_generic_init(0x10);
>  #endif
> +	add_mem_device("sram0", OMAP_SRAM_BASE, 60 * SZ_1K,
> +				   IORESOURCE_MEM_WRITEABLE);

Isn't this 64K? Or does the ROM code store stuff in the upper 4k which
you want to preserve?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list