ar71xx: use backported QCA955x patches
[openwrt.git] / target / linux / ar71xx / patches-3.8 / 034-MIPS-ath79-register-UART-for-the-QCA955X-SoCs.patch
1 From 25320dbceda508afc5b2de1986072caa9e04ad1b Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Fri, 15 Feb 2013 13:38:21 +0000
4 Subject: [PATCH] MIPS: ath79: register UART for the QCA955X SoCs
5
6 commit 13992303fa705ae1e4acf4660c69687672996029 upstream.
7
8 Similarly to the preceding SoCs, the QCA955X SoCs
9 also have a built-in NS16650 compatible UART.
10 Register the platform device for that to make
11 it usable.
12
13 Cc: Rodriguez, Luis <rodrigue@qca.qualcomm.com>
14 Cc: Giori, Kathy <kgiori@qca.qualcomm.com>
15 Cc: QCA Linux Team <qca-linux-team@qca.qualcomm.com>
16 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
17 Patchwork: http://patchwork.linux-mips.org/patch/4949/
18 Signed-off-by: John Crispin <blogic@openwrt.org>
19 ---
20  arch/mips/ath79/dev-common.c |    3 ++-
21  1 file changed, 2 insertions(+), 1 deletion(-)
22
23 --- a/arch/mips/ath79/dev-common.c
24 +++ b/arch/mips/ath79/dev-common.c
25 @@ -90,7 +90,8 @@ void __init ath79_register_uart(void)
26         if (soc_is_ar71xx() ||
27             soc_is_ar724x() ||
28             soc_is_ar913x() ||
29 -           soc_is_ar934x()) {
30 +           soc_is_ar934x() ||
31 +           soc_is_qca955x()) {
32                 ath79_uart_data[0].uartclk = clk_get_rate(clk);
33                 platform_device_register(&ath79_uart_device);
34         } else if (soc_is_ar933x()) {