OSDN Git Service

MIPS: BCM47xx: Add generic function filling SPROM entries
authorRafał Miłecki <zajec5@gmail.com>
Thu, 2 Apr 2015 07:13:49 +0000 (09:13 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 2 Apr 2015 11:54:25 +0000 (13:54 +0200)
commitd55a52ccf8f80cdf51af2c5c6e56c825f98c4f85
tree93a3738bec91e4fe4cc2ac7910d6e377e31d468e
parent7ae7ef3ffdd62454a1c0e6b69ebc7a14b523f0cc
MIPS: BCM47xx: Add generic function filling SPROM entries

Handling many SPROM revisions became messy, we have tons of functions
specific to various revision groups which are quite hard to track.
For years there is yet another revision 11 asking for support, but
adding it in current the form would make things even worse.
To resolve this problem let's add new function with table-like entries
that will contain revision bitmask for every SPROM variable.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Jonas Gorski <jonas.gorski@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/9659/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm47xx/sprom.c