mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ramips: add RT3350 detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30900 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -60,6 +60,9 @@
|
||||
#define RT3052_CHIP_NAME0 0x30335452
|
||||
#define RT3052_CHIP_NAME1 0x20203235
|
||||
|
||||
#define RT3350_CHIP_NAME0 0x33335452
|
||||
#define RT3350_CHIP_NAME1 0x20203035
|
||||
|
||||
#define RT3352_CHIP_NAME0 0x33335452
|
||||
#define RT3352_CHIP_NAME1 0x20203235
|
||||
|
||||
|
||||
Reference in New Issue
Block a user