diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-13 03:01:21 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-13 03:01:21 +0000 |
commit | 4a3bd49cf111ff93acb064797c48fd630cfcdc73 (patch) | |
tree | 3e84af65d4324fbbd97c52240f0991f89e2b4d90 /target/linux/atheros/patches-3.18/101-early-printk-support.patch | |
parent | 9ceee12a49b0c7f1652235f581f19187a01611e3 (diff) | |
download | upstream-4a3bd49cf111ff93acb064797c48fd630cfcdc73.tar.gz upstream-4a3bd49cf111ff93acb064797c48fd630cfcdc73.tar.bz2 upstream-4a3bd49cf111ff93acb064797c48fd630cfcdc73.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>
SVN-Revision: 44726
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.patch | 4 |
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) |