ads5121: support for running from memory
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 ads5121: support for running from memory
Quoted 1 line
Could you rebase it against current HEAD?
Sure. Here it is.
PATCH 1/1 ads5121: support for running from memory
You missed some changes in the rebase.
All CFG_ macros have been renamed to CONFIG_SYS_
Quoted 68 lines · Nikita V. Youshchenko
Quoted 1 line
Could you rebase it against current HEAD?
Sure. Here it is.
From
ba2fc48842d6f866e30f52f457a4c834431e1167Mon Sep 17 00:00:00 2001
From: Nikita V. Youshchenko <[email protected]>
Date: Tue, 2 Sep 2008 07:51:05 +0400
Subject: [PATCH] ads5121: support for running from RAMThis patch makes it possible to start u-boot from RAM on ads5121 board.
It does two simple things:
- skips initialization of RAM controller if already running from RAM,
- makesCONFIG_ENV_ADDRabsolute, not relative toCFG_MONITOR_BASESigned-off-by Nikita V. Youshchenko <[email protected]>--- board/ads5121/ads5121.c | 5 +++-- include/configs/ads5121.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)board/ads5121/ads5121.c +3
-2@@ -120,8 +120,9 @@ phys_size_t initdram (int board_type)*/ long int fixed_sdram (void ) { -volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR ;u32 msize =CONFIG_SYS_DDR_SIZE *1024 *1024 ; +#if CFG_MONITOR_BASE >=CFG_FLASH_BASE +volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR ;u32 msize_log2 =__ilog2 (msize);u32 i;@@ -203,7 +204,7 @@ long int fixed_sdram (void)/* Start MDDRC */ im->mddrc.ddr_time_config0 =CONFIG_SYS_MDDRC_TIME_CFG0_RUN ; im->mddrc.ddr_sys_config =CONFIG_SYS_MDDRC_SYS_CFG_RUN ; - +#endif return msize; }include/configs/ads5121.h +1
-2@@ -322,7 +322,7 @@*/ #define CONFIG_ENV_IS_IN_FLASH 1/* This has to be a multiple of the Flash sector size */ -#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) +#define CONFIG_ENV_ADDR 0xfff40000#define CONFIG_ENV_SIZE 0x2000#ifdef CONFIG_BKUP_FLASH #define CONFIG_ENV_SECT_SIZE 0x20000/* one sector (256K) for env */ --1.5.6.5
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/1 ads5121: support for running from memory
Quoted 3 lines
You missed some changes in the rebase.
All
CFG_macros have been renamed toCONFIG_SYS_
This version should be better?