]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bus: brcmstb_gisb: Look up register offsets in a table
authorKevin Cernekee <cernekee@gmail.com>
Wed, 26 Nov 2014 00:49:51 +0000 (16:49 -0800)
committerFlorian Fainelli <f.fainelli@gmail.com>
Fri, 28 Nov 2014 23:44:43 +0000 (15:44 -0800)
commitf80835875d3d1a4764711a90f6cc2669f037f527
tree7b5cfaf8ac02554e5fda1b0b5e09c02d90108978
parent2b53eadcea05b680278f8d078b166e1e295e2a4f
bus: brcmstb_gisb: Look up register offsets in a table

There are at least 4 incompatible variations of this hardware block,
so let's use the ARB_* constants as a table index instead of hardcoding
specific register offsets.  Also, allow for the possibility of adding
old devices that are missing some of the registers.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/bus/brcmstb_gisb.c