summaryrefslogtreecommitdiff
path: root/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-12 16:12:13 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-12 16:12:13 +0000
commit0f77d0b2baccc813342d69143a0554d8125a9d54 (patch)
tree9c9c87a7f0b4ff7fc36251cf933829a01b02e367 /target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h
parente6af9d374aeea2718aaa3bbc86ed516cdd2df4d9 (diff)
downloadmtk-20170518-0f77d0b2baccc813342d69143a0554d8125a9d54.zip
mtk-20170518-0f77d0b2baccc813342d69143a0554d8125a9d54.tar.gz
mtk-20170518-0f77d0b2baccc813342d69143a0554d8125a9d54.tar.bz2
ramips: add RT3350 detection
SVN-Revision: 30900
Diffstat (limited to 'target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h')
-rw-r--r--target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h
index 9aab64f..2c62a16 100644
--- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h
+++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h
@@ -20,6 +20,7 @@ enum rt305x_soc_type {
RT305X_SOC_UNKNOWN = 0,
RT305X_SOC_RT3050,
RT305X_SOC_RT3052,
+ RT305X_SOC_RT3350,
RT305X_SOC_RT3352,
};
@@ -40,6 +41,11 @@ 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;