Commit 6a2c7eabfd09ca7986bf96b8958a87ca041a19d8

Authored by Maxime Bizon
Committed by Greg Kroah-Hartman
1 parent a6d07d14bb

serial: bcm63xx_uart: allow more than one uart to be registered.

The bcm6358 CPU has two uarts, make it possible to use the second one.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

drivers/serial/bcm63xx_uart.c
... ... @@ -35,7 +35,7 @@
35 35 #include <bcm63xx_regs.h>
36 36 #include <bcm63xx_io.h>
37 37  
38   -#define BCM63XX_NR_UARTS 1
  38 +#define BCM63XX_NR_UARTS 2
39 39  
40 40 static struct uart_port ports[BCM63XX_NR_UARTS];
41 41  
... ... @@ -784,7 +784,7 @@
784 784 .dev_name = "ttyS",
785 785 .major = TTY_MAJOR,
786 786 .minor = 64,
787   - .nr = 1,
  787 + .nr = BCM63XX_NR_UARTS,
788 788 .cons = BCM63XX_CONSOLE,
789 789 };
790 790  
... ... @@ -826,6 +826,7 @@
826 826 port->dev = &pdev->dev;
827 827 port->fifosize = 16;
828 828 port->uartclk = clk_get_rate(clk) / 2;
  829 + port->line = pdev->id;
829 830 clk_put(clk);
830 831  
831 832 ret = uart_add_one_port(&bcm_uart_driver, port);