Commit 2174041d authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Linus Torvalds

serial: fix vr41xx_siu serial console support

The serial console can select only SERIAL_VR41XX=y.
Signed-off-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a95d3209
...@@ -1191,7 +1191,7 @@ config SERIAL_VR41XX ...@@ -1191,7 +1191,7 @@ config SERIAL_VR41XX
config SERIAL_VR41XX_CONSOLE config SERIAL_VR41XX_CONSOLE
bool "Enable NEC VR4100 series Serial Interface Unit console" bool "Enable NEC VR4100 series Serial Interface Unit console"
depends on SERIAL_VR41XX depends on SERIAL_VR41XX=y
select SERIAL_CORE_CONSOLE select SERIAL_CORE_CONSOLE
help help
If you have a NEC VR4100 series processor and you want to use If you have a NEC VR4100 series processor and you want to use
......
...@@ -65,7 +65,9 @@ static struct uart_port siu_uart_ports[SIU_PORTS_MAX] = { ...@@ -65,7 +65,9 @@ static struct uart_port siu_uart_ports[SIU_PORTS_MAX] = {
}, },
}; };
#ifdef CONFIG_SERIAL_VR41XX_CONSOLE
static uint8_t lsr_break_flag[SIU_PORTS_MAX]; static uint8_t lsr_break_flag[SIU_PORTS_MAX];
#endif
#define siu_read(port, offset) readb((port)->membase + (offset)) #define siu_read(port, offset) readb((port)->membase + (offset))
#define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment