summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipen Dudhat <dipen.dudhat@freescale.com>2009-10-07 15:47:47 -0400
committerJustin Waters <justin.waters@timesys.com>2009-10-07 15:47:47 -0400
commit51fad42204d5b1cdd3bdc89fd8685fcd3414a2a0 (patch)
tree7c910f08583af9021c44657c7656a45ad1dc931c
parent6225e77f84d77a661222dbc2b1bcd6dbf0842d7a (diff)
u-boot-2009.03-p2020rdb-RAMBOOT-support-over-SDCARD-boot
RAMBOOT support over SDCARD boot RAMBOOT support to run uboot on uboot prompt itself, Usage is, tftp 0x11000000 go 11000000 Signed-off-by: Dipen Dudhat <dipen.dudhat@freescale.com>
-rw-r--r--Makefile10
-rw-r--r--cpu/mpc85xx/cpu_init.c2
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fb2536ef68..81f806fd10 100644
--- a/Makefile
+++ b/Makefile
@@ -2446,6 +2446,7 @@ MPC8572DS_config: unconfig
P2020RDB_config \
P2020RDB_SDCARD_config \
+P2020RDB_RAMBOOT_config \
P1021RDB_config \
P1020RDB_config: unconfig
@mkdir -p $(obj)include
@@ -2454,12 +2455,21 @@ P1020RDB_config: unconfig
echo "#define CONFIG_SDCARD_U_BOOT" >> $(obj)include/config.h ; \
$(XECHO) "...SDCARD Boot" ; \
fi ;
+ @if [ "$(findstring _RAMBOOT_,$@)" ] ; then \
+ echo "#define CONFIG_SDCARD_U_BOOT" >> $(obj)include/config.h ; \
+ echo "#define CONFIG_SYS_RAMBOOT" >> $(obj)include/config.h ; \
+ $(XECHO) "...RAM Boot" ; \
+ fi ;
@$(XECHO) "... setting CONFIG_MP." ;
@$(MKCONFIG) -a P10XX_20XX_RDB ppc mpc85xx p10xx_p20xx_rdb freescale
@if [ "$(findstring _SDCARD_,$@)" ] ; then \
echo "TEXT_BASE = 0x11001000" > $(obj)board/freescale/p10xx_p20xx_rdb/config.tmp ; \
echo "CONFIG_SDCARD_U_BOOT = y" >> $(obj)include/config.mk ; \
fi ;
+ @if [ "$(findstring _RAMBOOT_,$@)" ] ; then \
+ echo "TEXT_BASE = 0x11001000" > $(obj)board/freescale/p10xx_p20xx_rdb/config.tmp ; \
+ echo "CONFIG_SDCARD_U_BOOT = y" >> $(obj)include/config.mk ; \
+ fi ;
P1011RDB_config \
P1012RDB_config: unconfig
diff --git a/cpu/mpc85xx/cpu_init.c b/cpu/mpc85xx/cpu_init.c
index 91db6e2fbd..653f327dbf 100644
--- a/cpu/mpc85xx/cpu_init.c
+++ b/cpu/mpc85xx/cpu_init.c
@@ -180,6 +180,7 @@ void cpu_init_early_f_sd(void)
{
unsigned int law_size;
+#if !defined(CONFIG_SYS_RAMBOOT)
/* set up CCSR if we want it moved */
#if (CONFIG_SYS_CCSRBAR_DEFAULT != CONFIG_SYS_CCSRBAR_PHYS)
{
@@ -190,6 +191,7 @@ void cpu_init_early_f_sd(void)
temp = in_be32((volatile u32 *)CONFIG_SYS_CCSRBAR);
}
#endif
+#endif
/* Pointer is writable since we allocated a register for it.
* the gd->used_law will be used in the init_laws(),