serial: sirf: add support for new SiRFmarco SMP SoC
authorBarry Song <Baohua.Song@csr.com>
Tue, 25 Dec 2012 09:32:04 +0000 (17:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 05:54:40 +0000 (21:54 -0800)
commit5425e03f97d1e5847372aae0b895d8d1c9bf2741
tree4391c0dc28923f3237ff34494ecc15923566d26d
parent92b336f6af9aafddda9e81c0c66c36e61cf2dc47
serial: sirf: add support for new SiRFmarco SMP SoC

CSR SiRFmarco's UART IP is same with SiRFprimaII except that
it has two more uart ports.
this patch makes the old driver support new SiRFmarco as well:
1. add .compatible = "sirf,marco-uart" to OF match table
2. add two ports in the port table
3. take spin_lock in isr to avoid the conflict of threads opening
uart on CPU1 and isr running on CPU0.
For 3, we did see some problems on SiRFmarco as SiRFmarco is a
SMP SoC but the old SiRFprimaII is UP.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sirfsoc_uart.c
drivers/tty/serial/sirfsoc_uart.h