0e2586a774
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39220
13 lines
305 B
Diff
13 lines
305 B
Diff
--- a/arch/mips/include/asm/mach-ralink/mt7620.h
|
|
+++ b/arch/mips/include/asm/mach-ralink/mt7620.h
|
|
@@ -101,4 +101,9 @@
|
|
#define MT7620_GPIO_MODE_EPHY 15
|
|
#define MT7620_GPIO_MODE_PA 20
|
|
|
|
+static inline int mt7620_get_eco(void)
|
|
+{
|
|
+ return rt_sysc_r32(SYSC_REG_CHIP_REV) & CHIP_REV_ECO_MASK;
|
|
+}
|
|
+
|
|
#endif
|