08b2bb0ad9994966c2c7a4a26fc63eb74e4cf753
[openwrt/staging/wigyori.git] / target / linux / ramips / patches-3.10 / 800-eco.patch
1 --- a/arch/mips/include/asm/mach-ralink/mt7620.h
2 +++ b/arch/mips/include/asm/mach-ralink/mt7620.h
3 @@ -101,4 +101,9 @@
4 #define MT7620_GPIO_MODE_EPHY 15
5 #define MT7620_GPIO_MODE_PA 20
6
7 +static inline int mt7620_get_eco(void)
8 +{
9 + return rt_sysc_r32(SYSC_REG_CHIP_REV) & CHIP_REV_ECO_MASK;
10 +}
11 +
12 #endif