brcm2708: add support for 3.10 kernel
[openwrt.git] / target / linux / brcm2708 / patches-3.10 / 016-amba-pl011-fifosize.patch
diff --git a/target/linux/brcm2708/patches-3.10/016-amba-pl011-fifosize.patch b/target/linux/brcm2708/patches-3.10/016-amba-pl011-fifosize.patch
new file mode 100644 (file)
index 0000000..c994f91
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN linux-3.10/drivers/tty/serial/amba-pl011.c linux-rpi-3.10.y/drivers/tty/serial/amba-pl011.c
+--- linux-3.10/drivers/tty/serial/amba-pl011.c 2013-06-30 23:13:29.000000000 +0100
++++ linux-rpi-3.10.y/drivers/tty/serial/amba-pl011.c   2013-07-06 15:25:50.000000000 +0100
+@@ -84,7 +84,7 @@
+ static unsigned int get_fifosize_arm(unsigned int periphid)
+ {
+-      unsigned int rev = (periphid >> 20) & 0xf;
++      unsigned int rev = 0; //(periphid >> 20) & 0xf;
+       return rev < 3 ? 16 : 32;
+ }