summaryrefslogtreecommitdiff
path: root/board/trizepsiv
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2009-07-01 20:40:41 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-07-06 21:52:58 +0200
commit040f8f63e922bbfb8ba0958bf637f11a917f5c38 (patch)
tree97d8ffb6b8d3f41d76e684bacea1f4332b13b11d /board/trizepsiv
parent88bd97501314683b87f3f1edcf55b347c041b722 (diff)
xscale: add support for the polaris board
The Polaris board is based on the TrizepsIV module of Keith & Koep (http://www.keith-koep.com). Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/trizepsiv')
-rw-r--r--board/trizepsiv/conxs.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/board/trizepsiv/conxs.c b/board/trizepsiv/conxs.c
index 53b6e0014e3..8c1145629f1 100644
--- a/board/trizepsiv/conxs.c
+++ b/board/trizepsiv/conxs.c
@@ -44,6 +44,11 @@ extern struct serial_device serial_ffuart_device;
extern struct serial_device serial_btuart_device;
extern struct serial_device serial_stuart_device;
+#if CONFIG_POLARIS
+#define BOOT_CONSOLE "serial_stuart"
+#else
+#define BOOT_CONSOLE "serial_ffuart"
+#endif
/* ------------------------------------------------------------------------- */
/*
@@ -113,17 +118,14 @@ int board_late_init(void)
#if defined(CONFIG_SERIAL_MULTI)
char *console=getenv("boot_console");
- if ((strcmp(console,"serial_btuart") == 0) ||
- (strcmp(console,"serial_stuart") == 0) ||
- (strcmp(console,"serial_ffuart") == 0)) {
- setenv("stdout",console);
- setenv("stdin", console);
- setenv("stderr",console);
- } else {
- setenv("stdout", "serial");
- setenv("stdin", "serial");
- setenv("stderr", "serial");
+ if ((console == NULL) || (strcmp(console,"serial_btuart") &&
+ strcmp(console,"serial_stuart") &&
+ strcmp(console,"serial_ffuart"))) {
+ console = BOOT_CONSOLE;
}
+ setenv("stdout",console);
+ setenv("stdin", console);
+ setenv("stderr",console);
#endif
return 0;
}