ramips: mt7620: export chip version and pkg
authorDaniel Golle <daniel@makrotopia.org>
Sun, 5 Feb 2017 14:03:14 +0000 (15:03 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 6 Mar 2019 00:11:54 +0000 (01:11 +0100)
commitc8778250a91d691a274d2070dc25827325e3f090
tree0b1a11f8af0a4dcc928ee73961ef1cd4b1ffeeb7
parent7fa9794c4ce5988c8ef483d6f402033bf08eabb3
ramips: mt7620: export chip version and pkg

Similar to the (currently unused) mt7620_get_eco() function, introduce
mt7620_get_chipver() and mt7620_get_pkg() functions to allow rt2x00 to
probe for the type of WiSoC. This is ugly and probably unacceptable
for upstream, however, it should help to evaluate which of those hacks
are actually really needed, enumerate the possible values and label
them in a more meaningful way than currently done in the vendor driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/ramips/patches-4.14/300-mt7620-export-chip-version-and-pkg.patch [new file with mode: 0644]