From 0a3471fc780c1a38496c3b99c443ffe3edca4b56 Mon Sep 17 00:00:00 2001
From: Wolfgang Denk <wd@pollux.denx.de>
Date: Sun, 12 Mar 2006 16:57:35 +0100
Subject: [PATCH] Add netconsole and some more commands to RPXlite_DW board
 Patch by Sam Song, 19 Jun 2005

---
 CHANGELOG                    |  3 +++
 include/configs/RPXlite_DW.h | 33 ++++++++++++++++++++++++++++++++-
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 0b6da7bbd4..704bb0548e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Add netconsole and some more commands to RPXlite_DW board
+  Patch by Sam Song, 19 Jun 2005
+
 * Fix bad declaration on pci_cfgfunc_nothing
   Patch by Sam Song, 19 Jun 2005
 
diff --git a/include/configs/RPXlite_DW.h b/include/configs/RPXlite_DW.h
index 8cd7df1ecf..5d17712f18 100644
--- a/include/configs/RPXlite_DW.h
+++ b/include/configs/RPXlite_DW.h
@@ -45,7 +45,7 @@
  */
 
 /* #define DEBUG	1 */
-/* #ifdef DEPLOYMENT	1 */
+/* #define DEPLOYMENT 	1 */
 
 #undef	CONFIG_MPC860
 #define CONFIG_MPC823		1	/* This is a MPC823e CPU. */
@@ -117,6 +117,36 @@
 
 #define CONFIG_BOOTP_MASK	(CONFIG_BOOTP_DEFAULT | CONFIG_BOOTP_BOOTFILESIZE)
 
+#if 1          /* Enable this staff could make image enlarge about 25KB. Mask it if you
+                  don't want the advanced function */
+
+#ifdef  CONFIG_SPLASH_SCREEN
+#define CONFIG_COMMANDS       ( CONFIG_CMD_DFL  | \
+				CFG_CMD_ASKENV	| \
+				CFG_CMD_BMP     | \
+				CFG_CMD_JFFS2   | \
+				CFG_CMD_PING    | \
+				CFG_CMD_ELF     | \
+				CFG_CMD_REGINFO | \
+				CFG_CMD_DHCP    )
+#else
+#define CONFIG_COMMANDS       ( CONFIG_CMD_DFL  | \
+		                CFG_CMD_ASKENV  | \
+				CFG_CMD_JFFS2   | \
+				CFG_CMD_PING    | \
+				CFG_CMD_ELF     | \
+				CFG_CMD_REGINFO | \
+				CFG_CMD_DHCP    )
+#endif  /* CONFIG_SPLASH_SCREEN */
+
+/* test-only */
+#define CFG_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CFG_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
+
+#define CONFIG_NETCONSOLE
+
+#endif  /* 1 */
+
 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
 #include <cmd_confdefs.h>
 
@@ -446,5 +476,6 @@
 #define CONFIG_SERVERIP 172.16.115.6
 #define CONFIG_ROOTPATH /workspace/myfilesystem/target/
 #define CONFIG_BOOTFILE uImage.rpxusb
+#define CONFIG_HOSTNAME LITE_H1_DW
 
 #endif	/* __CONFIG_H */
-- 
2.39.5