mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
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>
This commit is contained in:
committed by
Jean-Christophe PLAGNIOL-VILLARD
parent
88bd975013
commit
040f8f63e9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user