]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mxs: enable pinctrl dummy states
authorShawn Guo <shawn.guo@linaro.org>
Sun, 6 May 2012 14:14:13 +0000 (22:14 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 8 May 2012 15:05:17 +0000 (23:05 +0800)
commit3b384c6e8d2b5168b2d29242c91dde0741eea14f
treeaac5536f257e47ca670aad6a1476021553d764a5
parent49f35a2a9049076c800a50cbc315834abc661f1c
ARM: mxs: enable pinctrl dummy states

The mxs pinctrl driver will only support DT probe.  That said, the mxs
device drivers can only get pinctrl state from pinctrl subsystem when
the drivers get probed from device tree.

Before converting the whole mxs platform support over to device tree,
we need to enable pinctrl dummy states for those non-DT board files
to ensure the pinctrl API adopted by mxs device drivers will work for
both DT and non-DT probe.

Instead of calling pinctrl_provide_dummies() directly in every board
file, the patch introduces soc specific calls mx23_soc_init() and
mx28_soc_init() for boards' .init_machine hook to invoke, so that
any soc specific setup for non-DT boot only can be added there.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-mxs/include/mach/common.h
arch/arm/mach-mxs/mach-apx4devkit.c
arch/arm/mach-mxs/mach-m28evk.c
arch/arm/mach-mxs/mach-mx23evk.c
arch/arm/mach-mxs/mach-mx28evk.c
arch/arm/mach-mxs/mach-stmp378x_devb.c
arch/arm/mach-mxs/mach-tx28.c
arch/arm/mach-mxs/mm.c