summaryrefslogtreecommitdiff
path: root/board/tqm5200
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-07-21 11:16:34 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-07-21 11:16:34 +0200
commit5078cce81c77d52ff38921b43f5ea73eebf40251 (patch)
treef930e06dd7a8bfe210bab9b86f329dfa3d07fef3 /board/tqm5200
parent978b10964c1a4b3bf97fa5198ba62b36bd173cbe (diff)
* Cleanup TQM5200 board configurations:
- make highboot configurations use environment at high end, too, to avoid flash fragmentation - always use redundand environment - don't enable video code for modules without graphics controller - provide useful (though different) mtdparts settings - get rid of CONFIG_CS_AUTOCONF which was always set anyway * Extend mkconfig tool to print more useful target name
Diffstat (limited to 'board/tqm5200')
-rw-r--r--board/tqm5200/tqm5200.c37
1 files changed, 22 insertions, 15 deletions
diff --git a/board/tqm5200/tqm5200.c b/board/tqm5200/tqm5200.c
index 1756e7f0d7..8ed44d84a1 100644
--- a/board/tqm5200/tqm5200.c
+++ b/board/tqm5200/tqm5200.c
@@ -273,27 +273,36 @@ long int initdram (int board_type)
int checkboard (void)
{
-#if defined (CONFIG_AEVFIFO)
+#if defined(CONFIG_AEVFIFO)
puts ("Board: AEVFIFO\n");
return 0;
#endif
-#if defined (CONFIG_TQM5200)
-#if defined(CONFIG_TQM5200_B)
- puts ("Board: TQM5200 or TQM5200S (TQ-Components GmbH)\n");
+
+#if defined(CONFIG_TQM5200S)
+# define MODULE_NAME "TQM5200S"
#else
- puts ("Board: TQM5200 (TQ-Components GmbH)\n");
-#endif /* CONFIG_TQM5200_B */
-#endif
-#if defined (CONFIG_STK52XX)
- puts (" on a STK52XX baseboard\n");
+# define MODULE_NAME "TQM5200"
#endif
-#if defined (CONFIG_TB5200)
- puts (" on a TB5200 baseboard\n");
+
+#if defined(CONFIG_STK52XX)
+# define CARRIER_NAME "STK52xx"
+#elif defined(CONFIG_TB5200)
+# define CARRIER_NAME "TB5200"
+#elif defined(CONFIG_CAMERON)
+# define CARRIER_NAME "Cameron"
+#else
+# error "Unknown carrier board"
#endif
+ puts ( "Board: " MODULE_NAME " (TQ-Components GmbH)\n"
+ " on a " CARRIER_NAME " carrier board\n");
+
return 0;
}
+#undef MODULE_NAME
+#undef CARRIER_NAME
+
void flash_preinit(void)
{
/*
@@ -435,7 +444,6 @@ int board_early_init_r (void)
#endif
#endif /* CONFIG_PS2MULT */
-#if defined(CONFIG_CS_AUTOCONF)
int last_stage_init (void)
{
/*
@@ -530,7 +538,6 @@ int last_stage_init (void)
return 0;
}
-#endif /* CONFIG_CS_AUTOCONF */
#ifdef CONFIG_VIDEO_SM501
@@ -600,10 +607,10 @@ void video_get_info_str (int line_number, char *info)
#if defined (CONFIG_STK52XX) || defined (CONFIG_TB5200)
} else if (line_number == 2) {
#if defined (CONFIG_STK52XX)
- strcpy (info, " on a STK52XX baseboard");
+ strcpy (info, " on a STK52xx carrier board");
#endif
#if defined (CONFIG_TB5200)
- strcpy (info, " on a TB5200 baseboard");
+ strcpy (info, " on a TB5200 carrier board");
#endif
#endif
}