提交 fb881f78 编写于 作者: P Paul Bolle 提交者: Sascha Hauer

[ARM] build fixes for netX serial driver

Make the netX serial driver tristate (as the help text implied). Make the
serial driver build correctly if the netX serial console is disabled. Do not
allow the netX serial console if the netX serial driver is build as a module.
Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
上级 e946217e
...@@ -1276,7 +1276,7 @@ config SERIAL_SGI_IOC3 ...@@ -1276,7 +1276,7 @@ config SERIAL_SGI_IOC3
say Y or M. Otherwise, say N. say Y or M. Otherwise, say N.
config SERIAL_NETX config SERIAL_NETX
bool "NetX serial port support" tristate "NetX serial port support"
depends on ARM && ARCH_NETX depends on ARM && ARCH_NETX
select SERIAL_CORE select SERIAL_CORE
help help
...@@ -1288,7 +1288,7 @@ config SERIAL_NETX ...@@ -1288,7 +1288,7 @@ config SERIAL_NETX
config SERIAL_NETX_CONSOLE config SERIAL_NETX_CONSOLE
bool "Console on NetX serial port" bool "Console on NetX serial port"
depends on SERIAL_NETX depends on SERIAL_NETX=y
select SERIAL_CORE_CONSOLE select SERIAL_CORE_CONSOLE
help help
If you have enabled the serial port on the Hilscher NetX SoC If you have enabled the serial port on the Hilscher NetX SoC
......
...@@ -42,8 +42,6 @@ ...@@ -42,8 +42,6 @@
#define SERIAL_NX_MAJOR 204 #define SERIAL_NX_MAJOR 204
#define MINOR_START 170 #define MINOR_START 170
#ifdef CONFIG_SERIAL_NETX_CONSOLE
enum uart_regs { enum uart_regs {
UART_DR = 0x00, UART_DR = 0x00,
UART_SR = 0x04, UART_SR = 0x04,
...@@ -528,6 +526,8 @@ static struct netx_port netx_ports[] = { ...@@ -528,6 +526,8 @@ static struct netx_port netx_ports[] = {
} }
}; };
#ifdef CONFIG_SERIAL_NETX_CONSOLE
static void netx_console_putchar(struct uart_port *port, int ch) static void netx_console_putchar(struct uart_port *port, int ch)
{ {
while (readl(port->membase + UART_FR) & FR_BUSY); while (readl(port->membase + UART_FR) & FR_BUSY);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册