sh: pfc: Variable bitfield width config register support
authorMagnus Damm <damm@opensource.se>
Tue, 13 Dec 2011 16:01:05 +0000 (01:01 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 9 Jan 2012 00:33:55 +0000 (09:33 +0900)
commitf78a26f55b2438c439609fc90b473f7f08f5b697
tree40359c326c23ccbc4c1f014f04aa60b97db6994e
parent18925e118b3b4d55b45711218cd3c3c4360e5cd1
sh: pfc: Variable bitfield width config register support

Add support for variable config reg hardware by adding
the macro PINMUX_CFG_REG_VAR(). The width of each bitfield
needs to be passed to the macro, and the correct space must
be consumed by each bitfield in the enum table following the
macro. Data registers still need to have fixed bitfields.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/pfc.c
include/linux/sh_pfc.h