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.
6 Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
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
20 --- a/drivers/serial/Kconfig
21 +++ b/drivers/serial/Kconfig
22 @@ -1372,4 +1372,23 @@ config SPORT_BAUD_RATE
23 default 19200 if (SERIAL_SPORT_BAUD_RATE_19200)
24 default 9600 if (SERIAL_SPORT_BAUD_RATE_9600)
26 +config SERIAL_BCM63XX
27 + tristate "bcm63xx serial port support"
31 + If you have a bcm63xx CPU, you can enable its onboard
32 + serial port by enabling this options.
34 + To compile this driver as a module, choose M here: the
35 + module will be called bcm963xx_uart.
37 +config SERIAL_BCM63XX_CONSOLE
38 + bool "Console on bcm63xx serial port"
39 + depends on SERIAL_BCM63XX
40 + select SERIAL_CORE_CONSOLE
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.
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
62 +#define PORT_BCM63XX 83
66 #include <linux/compiler.h>