c0bb0d37d7144a9380be886ee8c0a880283b0038
[librecmc/librecmc.git] / target / linux / adm5120-2.6 / patches / 004-adm5120_uart.patch
1 +config SERIAL_ADM5120
2 +       bool "ADM5120 serial port support"
3 +       depends on MIPS_ADM5120
4 +       select SERIAL_CORE
5 +       select SERIAL_CORE_CONSOLE
6 +       help
7 +         Driver for the on chip UARTs on the ADM5120 SoC
8 +
9 +config ADM5120_NR_UARTS
10 +       int "Maximum number of ADM5120 serial ports"
11 +       depends on SERIAL_ADM5120
12 +       default "2"
13 +       ---help---
14 +         Set this to the number of serial ports you want the driver to
15 +         support.
16 +
17  config SERIAL_AMBA_PL010
18         tristate "ARM AMBA PL010 serial port support"
19         depends on ARM_AMBA && (BROKEN || !ARCH_VERSATILE)
20 diff -urN linux-2.6.19.2/drivers/serial/Makefile linux-2.6.19.2-adm5120/drivers/serial/Makefile
21 --- linux-2.6.19.2/drivers/serial/Makefile      2007-01-10 20:10:37.000000000 +0100
22 +++ linux-2.6.19.2-adm5120/drivers/serial/Makefile      2007-01-23 01:21:45.000000000 +0100
23 @@ -20,6 +20,7 @@
24  obj-$(CONFIG_SERIAL_8250_HUB6) += 8250_hub6.o
25  obj-$(CONFIG_SERIAL_8250_MCA) += 8250_mca.o
26  obj-$(CONFIG_SERIAL_8250_AU1X00) += 8250_au1x00.o
27 +obj-$(CONFIG_SERIAL_ADM5120) += adm5120_uart.o
28  obj-$(CONFIG_SERIAL_AMBA_PL010) += amba-pl010.o
29  obj-$(CONFIG_SERIAL_AMBA_PL011) += amba-pl011.o
30  obj-$(CONFIG_SERIAL_CLPS711X) += clps711x.o
31 diff -urN linux-2.6.19.2/include/linux/serial_core.h linux-2.6.19.2-adm5120/include/linux/serial_core.h
32 --- linux-2.6.19.2/include/linux/serial_core.h  2007-01-10 20:10:37.000000000 +0100
33 +++ linux-2.6.19.2-adm5120/include/linux/serial_core.h  2007-01-23 01:13:39.000000000 +0100
34 @@ -133,6 +133,9 @@
35  #define PORT_S3C2412   73
36  
37  
38 +/* ADMtek ADM5120 SoC */
39 +#define PORT_ADM5120   68
40 +
41  #ifdef __KERNEL__
42  
43  #include <linux/compiler.h>