diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-17 10:42:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-17 10:42:23 +0000 |
commit | 4224b52c3acc7203e7c2535d6806f30432dae5e3 (patch) | |
tree | 7a847d3e84dfc3608555587c3b9958474fc17d72 /target/linux/brcm2708/patches-4.4/0025-bcm2835-Add-support-for-uart1.patch | |
parent | cad399c87b7739c4b8eeb4119706860818f7d84f (diff) | |
download | mtk-20170518-4224b52c3acc7203e7c2535d6806f30432dae5e3.zip mtk-20170518-4224b52c3acc7203e7c2535d6806f30432dae5e3.tar.gz mtk-20170518-4224b52c3acc7203e7c2535d6806f30432dae5e3.tar.bz2 |
brcm2708: add linux 4.4 support
- random-bcm2708 and spi-bcm2708 have been removed.
- sound-soc-bcm2708-i2s has been upstreamed as sound-soc-bcm2835-i2s.
Let's keep linux 4.1 for a while, since linux 4.4 appears to have some issues
with multicast traffic on RPi ethernet:
https://gist.github.com/Noltari/5b1cfdecce5ed4bc08fd
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 48266
Diffstat (limited to 'target/linux/brcm2708/patches-4.4/0025-bcm2835-Add-support-for-uart1.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.4/0025-bcm2835-Add-support-for-uart1.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.4/0025-bcm2835-Add-support-for-uart1.patch b/target/linux/brcm2708/patches-4.4/0025-bcm2835-Add-support-for-uart1.patch new file mode 100644 index 0000000..cd7f242 --- /dev/null +++ b/target/linux/brcm2708/patches-4.4/0025-bcm2835-Add-support-for-uart1.patch @@ -0,0 +1,57 @@ +From 34cb40cb97cd3080d3d0f314b2b063939b90c069 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= <noralf@tronnes.org> +Date: Sat, 15 Aug 2015 20:50:02 +0200 +Subject: [PATCH 025/127] bcm2835: Add support for uart1 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This is a hack until a proper solution is agreed upon. +Martin Sperl is doing some work in this area. + +Signed-off-by: Noralf Trønnes <noralf@tronnes.org> +--- + arch/arm/mach-bcm/board_bcm2835.c | 25 +++++++++++++++++++++++++ + 1 file changed, 25 insertions(+) + +--- a/arch/arm/mach-bcm/board_bcm2835.c ++++ b/arch/arm/mach-bcm/board_bcm2835.c +@@ -22,6 +22,29 @@ + #include <asm/mach/arch.h> + #include <asm/mach/map.h> + ++/* Use this hack until a proper solution is agreed upon */ ++static void __init bcm2835_init_uart1(void) ++{ ++ struct device_node *np; ++ ++ np = of_find_compatible_node(NULL, NULL, "brcm,bcm2835-aux-uart"); ++ if (of_device_is_available(np)) { ++ np = of_find_compatible_node(NULL, NULL, ++ "bcrm,bcm2835-aux-enable"); ++ if (np) { ++ void __iomem *base = of_iomap(np, 0); ++ ++ if (!base) { ++ pr_err("bcm2835: Failed enabling Mini UART\n"); ++ return; ++ } ++ ++ writel(1, base); ++ pr_info("bcm2835: Mini UART enabled\n"); ++ } ++ } ++} ++ + static void __init bcm2835_init(void) + { + struct device_node *np = of_find_node_by_path("/system"); +@@ -42,6 +65,8 @@ static void __init bcm2835_init(void) + system_rev = val; + if (!of_property_read_u64(np, "linux,serial", &val64)) + system_serial_low = val64; ++ ++ bcm2835_init_uart1(); + } + + static const char * const bcm2835_compat[] = { |