Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2920b83d authored by John Crispin's avatar John Crispin Committed by Ralf Baechle
Browse files

MIPS: ralink: add a helper for reading the ECO version

parent 2adf550f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -105,4 +105,9 @@
#define MT7620_GPIO_MODE_EPHY		BIT(15)
#define MT7620_GPIO_MODE_WDT		BIT(22)

static inline int mt7620_get_eco(void)
{
	return rt_sysc_r32(SYSC_REG_CHIP_REV) & CHIP_REV_ECO_MASK;
}

#endif