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