aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-06-23 11:03:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-06-23 11:03:45 +0000
commit32e4646654e0557d93ec31e8e84458d8aad5cf56 (patch)
tree4d14511a9388d1595a04e6c7d65f1f4654527d53 /target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c
parentce5f9970fea0a19a13668e5205c3cb0a9512e6f5 (diff)
downloadupstream-32e4646654e0557d93ec31e8e84458d8aad5cf56.tar.gz
upstream-32e4646654e0557d93ec31e8e84458d8aad5cf56.tar.bz2
upstream-32e4646654e0557d93ec31e8e84458d8aad5cf56.zip
[mcs814x] group SYSDBG register defines in mcs814x.h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32488 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c')
-rw-r--r--target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c
index cae6aaa26b..e9926b3b34 100644
--- a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c
+++ b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/common.c
@@ -32,13 +32,6 @@ static struct map_desc mcs814x_io_desc[] __initdata = {
},
};
-#define SYSDBG_BS2 0x04
-#define LED_CFG_MASK 0x03
-#define CPU_MODE_SHIFT 23
-#define CPU_MODE_MASK 0x03
-
-#define SYSDBG_SYSCTL_MAC 0x1d
-
struct cpu_mode {
const char *name;
int gpio_start;
@@ -96,9 +89,9 @@ static void mcs814x_eth_buffer_shifting_set(u8 value)
reg = __raw_readb(_CONFADDR_SYSDBG + SYSDBG_SYSCTL_MAC);
if (value)
- reg |= 0x01;
+ reg |= BUF_SHIFT_BIT;
else
- reg &= ~0x01;
+ reg &= ~BUF_SHIFT_BIT;
__raw_writeb(reg, _CONFADDR_SYSDBG + SYSDBG_SYSCTL_MAC);
}