[ramips] add feature gpio
[openwrt/svn-archive/archive.git] / target / linux / ramips / files / arch / mips / include / asm / mach-ralink / rt305x.h
index 9aab64f45977841769ee854826db1830ae1c0222..c59135c1abbfd5a7e1d51b07108194751d14b157 100644 (file)
@@ -20,7 +20,9 @@ enum rt305x_soc_type {
        RT305X_SOC_UNKNOWN = 0,
        RT305X_SOC_RT3050,
        RT305X_SOC_RT3052,
+       RT305X_SOC_RT3350,
        RT305X_SOC_RT3352,
+       RT305X_SOC_RT5350,
 };
 
 extern enum rt305x_soc_type rt305x_soc;
@@ -40,14 +42,27 @@ static inline int soc_is_rt305x(void)
        return soc_is_rt3050() || soc_is_rt3052();
 }
 
+static inline int soc_is_rt3350(void)
+{
+       return rt305x_soc == RT305X_SOC_RT3350;
+}
+
 static inline int soc_is_rt3352(void)
 {
        return rt305x_soc == RT305X_SOC_RT3352;
 }
 
+static inline int soc_is_rt5350(void)
+{
+       return rt305x_soc == RT305X_SOC_RT5350;
+}
+
 #define RT305X_MEM_SIZE_MIN (2 * 1024 * 1024)
 #define RT305X_MEM_SIZE_MAX (64 * 1024 * 1024)
 
+#define RT3352_MEM_SIZE_MIN (2 * 1024 * 1024)
+#define RT3352_MEM_SIZE_MAX (256 * 1024 * 1024)
+
 #define RT305X_CPU_IRQ_BASE    0
 #define RT305X_INTC_IRQ_BASE   8
 #define RT305X_INTC_IRQ_COUNT  32