[malta] update to 2.6.39.1
[openwrt.git] / target / linux / ar71xx / patches-2.6.37 / 500-ar933x-uart-driver.patch
1 commit 24920fbc58c0183013db148f8be6fbc12d3bba9a
2 Author: Gabor Juhos <juhosg@openwrt.org>
3 Date: Sun Mar 27 12:04:36 2011 +0200
4
5 serial: add driver for the built-in UART of the AR933X SoC
6
7 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
8
9 --- a/drivers/serial/Kconfig
10 +++ b/drivers/serial/Kconfig
11 @@ -1632,4 +1632,27 @@ config SERIAL_ALTERA_UART_CONSOLE
12 help
13 Enable a Altera UART port to be the system console.
14
15 +config SERIAL_AR933X
16 + bool "AR933X serial port support"
17 + depends on SOC_AR933X
18 + select SERIAL_CORE
19 + help
20 + If you have an Atheros AR933X SOC based board and want to use the
21 + built-in UART of the SoC, say Y to this option.
22 +
23 +config SERIAL_AR933X_CONSOLE
24 + bool "Console on AR933X serial port"
25 + depends on SERIAL_AR933X=y
26 + select SERIAL_CORE_CONSOLE
27 + help
28 + Enable a built-in UART port of the AR933X to be the system console.
29 +
30 +config SERIAL_AR933X_NR_UARTS
31 + int "Maximum number of AR933X serial ports"
32 + depends on SERIAL_AR933X
33 + default "2"
34 + help
35 + Set this to the number of serial ports you want the driver
36 + to support.
37 +
38 endmenu
39 --- a/drivers/serial/Makefile
40 +++ b/drivers/serial/Makefile
41 @@ -89,3 +89,5 @@ obj-$(CONFIG_SERIAL_ALTERA_UART) += alte
42 obj-$(CONFIG_SERIAL_MRST_MAX3110) += mrst_max3110.o
43 obj-$(CONFIG_SERIAL_MFD_HSU) += mfd.o
44 obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o
45 +obj-$(CONFIG_SERIAL_AR933X) += ar933x_uart.o
46 +
47 --- a/include/linux/serial_core.h
48 +++ b/include/linux/serial_core.h
49 @@ -199,6 +199,9 @@
50 /* TI OMAP-UART */
51 #define PORT_OMAP 96
52
53 +/* Atheros AR933X SoC */
54 +#define PORT_AR933X 98
55 +
56 #ifdef __KERNEL__
57
58 #include <linux/compiler.h>
This page took 0.043585 seconds and 5 git commands to generate.