]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit135e73af0af39835542f77b4809ffe0d84c8f752
tree40359c326c23ccbc4c1f014f04aa60b97db6994e
parent98ad9a9ca22864ea25cc6efa4e556f5bb1894490
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