parent
3a5c2533da
commit
eed921c794
|
|
@ -526,7 +526,8 @@ int board_init(void)
|
|||
* - Selection in /root/boot/consoledev
|
||||
* - Available tty interfaces
|
||||
* - ttyS1: standard console (default)
|
||||
* - ttyS0: COM/IO shield
|
||||
* - ttyS0: COM/IO shield (or used as console by kernel,
|
||||
* when no other console available)
|
||||
*/
|
||||
void set_console(void)
|
||||
{
|
||||
|
|
@ -955,13 +956,12 @@ static void ft_dio(void *blob, int shield_type)
|
|||
static void ft_serial(void *blob, int shield_type)
|
||||
{
|
||||
switch (shield_type) {
|
||||
/* If COM/IO shield is present enable uart1 (ttyS0) */
|
||||
case SHIELD_COM_IO:
|
||||
/* TODO: Should use alias serial0 */
|
||||
ft_enable_node(blob, "/ocp/serial@44e09000");
|
||||
break;
|
||||
/* Enable uart1 (ttyS0) always as kernel needs it as fallback
|
||||
console, if (ttyS1) is not available as console. */
|
||||
|
||||
default:
|
||||
/* TODO: Should use alias serial0 */
|
||||
ft_enable_node(blob, "/ocp/serial@44e09000");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue