]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73ff09fa70bafae9a925ae04dd19803dec10d187
tree93a3738bec91e4fe4cc2ac7910d6e377e31d468e
parent3140fb1f33c8a5feceb4faa09a2db870f4aceea3
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