ar71xx: move AP94 specific PCI init code into a separate file
[openwrt.git] / target / linux / brcm63xx / patches-2.6.30 / 003-add_serial_driver_for_bcm63xx_integr.patch
1 From 6c489656b09998ed6a6f857e01ccf630e29358dd Mon Sep 17 00:00:00 2001
2 From: Maxime Bizon <mbizon@freebox.fr>
3 Date: Fri, 18 Jul 2008 19:35:55 +0200
4 Subject: [PATCH] [MIPS] BCM63XX: Add serial driver for bcm63xx integrated UART.
5
6 Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
7 ---
8 arch/mips/bcm63xx/Makefile | 1 +
9 arch/mips/bcm63xx/dev-uart.c | 41 +
10 drivers/serial/Kconfig | 19 +
11 drivers/serial/Makefile | 1 +
12 drivers/serial/bcm63xx_uart.c | 890 ++++++++++++++++++++++
13 include/asm-mips/mach-bcm63xx/bcm63xx_dev_uart.h | 6 +
14 include/linux/serial_core.h | 2 +
15 7 files changed, 960 insertions(+), 0 deletions(-)
16 create mode 100644 arch/mips/bcm63xx/dev-uart.c
17 create mode 100644 drivers/serial/bcm63xx_uart.c
18 create mode 100644 include/asm-mips/mach-bcm63xx/bcm63xx_dev_uart.h
19
20 --- a/drivers/serial/Kconfig
21 +++ b/drivers/serial/Kconfig
22 @@ -1433,4 +1433,23 @@ config SPORT_BAUD_RATE
23 default 19200 if (SERIAL_SPORT_BAUD_RATE_19200)
24 default 9600 if (SERIAL_SPORT_BAUD_RATE_9600)
25
26 +config SERIAL_BCM63XX
27 + tristate "bcm63xx serial port support"
28 + select SERIAL_CORE
29 + depends on BCM63XX
30 + help
31 + If you have a bcm63xx CPU, you can enable its onboard
32 + serial port by enabling this options.
33 +
34 + To compile this driver as a module, choose M here: the
35 + module will be called bcm963xx_uart.
36 +
37 +config SERIAL_BCM63XX_CONSOLE
38 + bool "Console on bcm63xx serial port"
39 + depends on SERIAL_BCM63XX
40 + select SERIAL_CORE_CONSOLE
41 + help
42 + If you have enabled the serial port on the bcm63xx CPU
43 + you can make it the console by answering Y to this option.
44 +
45 endmenu
46 --- a/drivers/serial/Makefile
47 +++ b/drivers/serial/Makefile
48 @@ -34,6 +34,7 @@ obj-$(CONFIG_SERIAL_CLPS711X) += clps711
49 obj-$(CONFIG_SERIAL_PXA) += pxa.o
50 obj-$(CONFIG_SERIAL_PNX8XXX) += pnx8xxx_uart.o
51 obj-$(CONFIG_SERIAL_SA1100) += sa1100.o
52 +obj-$(CONFIG_SERIAL_BCM63XX) += bcm63xx_uart.o
53 obj-$(CONFIG_SERIAL_BFIN) += bfin_5xx.o
54 obj-$(CONFIG_SERIAL_BFIN_SPORT) += bfin_sport_uart.o
55 obj-$(CONFIG_SERIAL_SAMSUNG) += samsung.o
56 --- a/include/linux/serial_core.h
57 +++ b/include/linux/serial_core.h
58 @@ -167,6 +167,8 @@
59 /* MAX3100 */
60 #define PORT_MAX3100 86
61
62 +#define PORT_BCM63XX 83
63 +
64 #ifdef __KERNEL__
65
66 #include <linux/compiler.h>
This page took 0.058982 seconds and 5 git commands to generate.