From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Cernekee Subject: [PATCH V2 07/10] serial: pxa: Make the driver buildable for BCM7xxx set-top platforms Date: Wed, 12 Nov 2014 12:54:04 -0800 Message-ID: <1415825647-6024-8-git-send-email-cernekee@gmail.com> References: <1415825647-6024-1-git-send-email-cernekee@gmail.com> Return-path: In-Reply-To: <1415825647-6024-1-git-send-email-cernekee@gmail.com> Sender: linux-serial-owner@vger.kernel.org To: gregkh@linuxfoundation.org, jslaby@suse.cz, robh@kernel.org Cc: arnd@arndb.de, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, grant.likely@linaro.org, f.fainelli@gmail.com, mbizon@freebox.fr, jogo@openwrt.org, linux-mips@linux-mips.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org Remove the platform dependency in Kconfig and add an appropriate compatible string. Note that BCM7401 has one 16550A-compatible UART in the UPG uart_clk domain, and two proprietary UARTs in the 27 MHz clock domain. This driver handles the former one. Signed-off-by: Kevin Cernekee --- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/pxa.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index fdd851e..2015057 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -436,7 +436,7 @@ config SERIAL_MPSC_CONSOLE config SERIAL_PXA bool "PXA serial port support" - depends on ARCH_PXA || ARCH_MMP + depends on ARM || MIPS select SERIAL_CORE help If you have a machine based on an Intel XScale PXA2xx CPU you diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c index 21406dc..086b371 100644 --- a/drivers/tty/serial/pxa.c +++ b/drivers/tty/serial/pxa.c @@ -830,6 +830,7 @@ static const struct dev_pm_ops serial_pxa_pm_ops = { static struct of_device_id serial_pxa_dt_ids[] = { { .compatible = "mrvl,pxa-uart", }, { .compatible = "mrvl,mmp-uart", }, + { .compatible = "brcm,bcm7401-upg-uart", }, {} }; MODULE_DEVICE_TABLE(of, serial_pxa_dt_ids); -- 2.1.1