summaryrefslogtreecommitdiffstats
path: root/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/mcs814x.h
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-06-23 11:03:40 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-06-23 11:03:40 +0000
commita8965f0005ff85d653a1fb579017a3df4a500b5d (patch)
treee3a57c29ab9db7b27aaff095c482b9b556ebc676 /target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/mcs814x.h
parent7c984552ed2d9d4fdd91bd48d08ac416958c1fd7 (diff)
downloadmaster-31e0f0ae-a8965f0005ff85d653a1fb579017a3df4a500b5d.tar.gz
master-31e0f0ae-a8965f0005ff85d653a1fb579017a3df4a500b5d.tar.bz2
master-31e0f0ae-a8965f0005ff85d653a1fb579017a3df4a500b5d.zip
make hardware.h a forward inclusion of mcs814x.h
mach/hardware.h is soon to be removed by upstream kernel SVN-Revision: 32487
Diffstat (limited to 'target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/mcs814x.h')
-rw-r--r--target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/mcs814x.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/mcs814x.h b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/mcs814x.h
new file mode 100644
index 0000000000..9ae93b42c5
--- /dev/null
+++ b/target/linux/mcs814x/files-3.3/arch/arm/mach-mcs814x/include/mach/mcs814x.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2003 Artec Design Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#ifndef __ASM_ARCH_MCS814X_H
+#define __ASM_ARCH_MCS814X_H
+
+#define MCS814X_IO_BASE 0xF0000000
+#define MCS814X_IO_START 0x40000000
+#define MCS814X_IO_SIZE 0x00100000
+
+/* IRQ controller register offset */
+#define MCS814X_IRQ_ICR 0x00
+#define MCS814X_IRQ_ISR 0x04
+#define MCS814X_IRQ_MASK 0x20
+#define MCS814X_IRQ_STS0 0x40
+
+#define _PHYS_CONFADDR 0x40000000
+#define _VIRT_CONFADDR MCS814X_IO_BASE
+
+#define _CONFOFFSET_UART 0x000DC000
+#define _CONFOFFSET_DBGLED 0x000EC000
+#define _CONFOFFSET_SYSDBG 0x000F8000
+
+#define _CONFADDR_DBGLED (_VIRT_CONFADDR + _CONFOFFSET_DBGLED)
+#define _CONFADDR_SYSDBG (_VIRT_CONFADDR + _CONFOFFSET_SYSDBG)
+
+#endif /* __ASM_ARCH_MCS814X_H */
+