aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-08-31 08:29:19 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-08-31 08:29:19 +0000
commitf3909502b0729717af8e85bef3b304cae6c061c2 (patch)
tree1d5ef9c303430d1f66026b966b382e0151a7be3d /target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x
parentb070e258c244a584c44081380d1fa5af9e1a3699 (diff)
downloadmaster-187ad058-f3909502b0729717af8e85bef3b304cae6c061c2.tar.gz
master-187ad058-f3909502b0729717af8e85bef3b304cae6c061c2.tar.bz2
master-187ad058-f3909502b0729717af8e85bef3b304cae6c061c2.zip
[ramips] fix GPIOLIB support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17446 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x')
-rw-r--r--target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h
new file mode 100644
index 0000000000..c379f39195
--- /dev/null
+++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt288x/ralink_soc.h
@@ -0,0 +1,20 @@
+/*
+ * Ralink RT288x specific SOC defines
+ *
+ * Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
+ *
+ * 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 __RT288X_RALINK_SOC_H
+#define __RT288X_RALINK_SOC_H
+
+#define RALINK_SOC_GPIO_BASE 0x300600
+
+#define RALINK_SOC_GPIO0_COUNT 24
+#define RALINK_SOC_GPIO1_COUNT 16
+#define RALINK_SOC_GPIO2_COUNT 32
+
+#endif /* __RT288X_RALINK_SOC_H */