]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MXC IOMUX-V3 replace struct pad_desc with bitmapped cookie (step 2)
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 22 Nov 2010 08:39:51 +0000 (09:39 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 15 Dec 2010 11:42:49 +0000 (12:42 +0100)
commit96f3e2568456402769f3998e111746941f549dc6
tree20b942c2881fcb43254c48c328b9b1e599c8565f
parent28a4f908acb342350b9ecbfcdf0a999cb83e05aa
MXC IOMUX-V3 replace struct pad_desc with bitmapped cookie (step 2)

This patch actually replaces the 'struct pad_desc' with a u64 cookie
to facilitate adding platform specific pad_ctrl settings to an
existing pad definition.

So, instead of:
iomux_v3_cfg_t power_key = MX51_PAD_EIM_A27__GPIO_2_21;
power_key.pad_ctrl = MX51_GPIO_PAD_CTRL_2;
mxc_iomux_v3_setup_pad(&power_key);
one can write:
mxc_iomux_v3_setup_pad((MX51_PAD_EIM_A27__GPIO_2_21 & ~MUX_PAD_CTRL_MASK) | MX51_GPIO_PAD_CTRL_2);

Patch applies to branch 'imx-for-2.6.38' of git://git.pengutronix.de/git/imx/linux-2.6

Signed-Off-By: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx3/mach-pcm043.c
arch/arm/mach-mx5/board-mx51_babbage.c
arch/arm/plat-mxc/include/mach/iomux-v3.h
arch/arm/plat-mxc/iomux-v3.c