From f149d8643e8ae12f49bcf536d256c338508280d5 Mon Sep 17 00:00:00 2001
From: Wolfgang Denk <wd@pollux.denx.de>
Date: Fri, 5 May 2006 00:59:28 +0200
Subject: [PATCH] Fix lowboot support on MCC200 board

---
 CHANGELOG                | 2 ++
 Makefile                 | 2 +-
 include/configs/mcc200.h | 4 ++++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index c774dd0525..a491ec060e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Fix lowboot support on MCC200 board
+
 * Coding Style cleanup
 
 * Write RTC seconds first to maintain settings integrity per
diff --git a/Makefile b/Makefile
index 74e94749fc..6e24341c52 100644
--- a/Makefile
+++ b/Makefile
@@ -326,7 +326,7 @@ mcc200_config	\
 mcc200_lowboot_config:	unconfig
 	@ >include/config.h
 	@[ -z "$(findstring lowboot_,$@)" ] || \
-		{ echo "TEXT_BASE = 0xFE000000" >board/mcc200/config.tmp ; \
+		{ echo "TEXT_BASE = 0xFC000000" >board/mcc200/config.tmp ; \
 		  echo "... with lowboot configuration" ; \
 		}
 	@./mkconfig mcc200 ppc mpc5xxx mcc200
diff --git a/include/configs/mcc200.h b/include/configs/mcc200.h
index 2b1c0d00cb..d8d63a112c 100644
--- a/include/configs/mcc200.h
+++ b/include/configs/mcc200.h
@@ -172,6 +172,10 @@
 
 #define CONFIG_ENV_OVERWRITE	1	/* allow modification of vendor params */
 
+#if TEXT_BASE == CFG_FLASH_BASE
+#define CFG_LOWBOOT	1
+#endif
+
 /*
  * Memory map
  */
-- 
GitLab