projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: add RT3350 detection
[openwrt.git]
/
target
/
linux
/
ramips
/
files
/
arch
/
mips
/
include
/
asm
/
mach-ralink
/
rt305x.h
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
(file)
--- 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_UNKNOWN = 0,
RT305X_SOC_RT3050,
RT305X_SOC_RT3052,
+ RT305X_SOC_RT3350,
RT305X_SOC_RT3352,
};
RT305X_SOC_RT3352,
};
@@
-40,6
+41,11
@@
static inline int soc_is_rt305x(void)
return soc_is_rt3050() || soc_is_rt3052();
}
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_rt3352(void)
{
return rt305x_soc == RT305X_SOC_RT3352;