aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.18/101-early-printk-support.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-13 03:01:21 +0000
commitf1a27581401a61281c228b77186a011ab07115c5 (patch)
treeb4b8c47db7813e6286f97c0c447a55407c5d45ac /target/linux/atheros/patches-3.18/101-early-printk-support.patch
parent7ac3fd1f5d23f3420ee6cb59d27310d9322fa16b (diff)
downloadmaster-187ad058-f1a27581401a61281c228b77186a011ab07115c5.tar.gz
master-187ad058-f1a27581401a61281c228b77186a011ab07115c5.tar.bz2
master-187ad058-f1a27581401a61281c228b77186a011ab07115c5.zip
atheros: v3.18: update register names
Make register names more consistent, mostly add appropriate prefix (AR5312_ or AR2315_) or _BASE suffix. Also add macro to simplify mask and shift operation. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44726 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.18/101-early-printk-support.patch')
-rw-r--r--target/linux/atheros/patches-3.18/101-early-printk-support.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-3.18/101-early-printk-support.patch b/target/linux/atheros/patches-3.18/101-early-printk-support.patch
index 5fb510d3ce..766c903552 100644
--- a/target/linux/atheros/patches-3.18/101-early-printk-support.patch
+++ b/target/linux/atheros/patches-3.18/101-early-printk-support.patch
@@ -35,9 +35,9 @@
+
+ if (unlikely(base == NULL)) {
+ if (is_ar2315())
-+ base = (void __iomem *)(KSEG1ADDR(AR2315_UART0));
++ base = (void __iomem *)(KSEG1ADDR(AR2315_UART0_BASE));
+ else
-+ base = (void __iomem *)(KSEG1ADDR(AR5312_UART0));
++ base = (void __iomem *)(KSEG1ADDR(AR5312_UART0_BASE));
+ }
+
+ while ((prom_uart_rr(base, UART_LSR) & UART_LSR_THRE) == 0)