aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.10/101-early-printk-support.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-17 16:36:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-17 16:36:49 +0000
commite744878636cfef8caef4e24d8c368414e76602cd (patch)
tree44545608752c06cb01ee7ac77d2fee7cb5beb5fd /target/linux/atheros/patches-3.10/101-early-printk-support.patch
parent572b532e6a76cf4710eb7dc9cad6e8d4a79d0a4c (diff)
downloadupstream-e744878636cfef8caef4e24d8c368414e76602cd.tar.gz
upstream-e744878636cfef8caef4e24d8c368414e76602cd.tar.bz2
upstream-e744878636cfef8caef4e24d8c368414e76602cd.zip
atheros[uart]: use 32-bit aligned I/O
Use 32-bit aligned I/O and update base UART address (remove +3 offset). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41699
Diffstat (limited to 'target/linux/atheros/patches-3.10/101-early-printk-support.patch')
-rw-r--r--target/linux/atheros/patches-3.10/101-early-printk-support.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-3.10/101-early-printk-support.patch b/target/linux/atheros/patches-3.10/101-early-printk-support.patch
index 3daa0117f7..be68025a5c 100644
--- a/target/linux/atheros/patches-3.10/101-early-printk-support.patch
+++ b/target/linux/atheros/patches-3.10/101-early-printk-support.patch
@@ -21,12 +21,12 @@
+static inline void prom_uart_wr(void __iomem *base, unsigned reg,
+ unsigned char ch)
+{
-+ __raw_writeb(ch, base + 4 * reg);
++ __raw_writel(ch, base + 4 * reg);
+}
+
+static inline unsigned char prom_uart_rr(void __iomem *base, unsigned reg)
+{
-+ return __raw_readb(base + 4 * reg);
++ return __raw_readl(base + 4 * reg);
+}
+
+void prom_putchar(unsigned char ch)