aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-mackerel.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-04-19 07:29:48 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-06-04 08:04:10 -0400
commitcd87d903f12c1baea6caf68e02e21ce7004c79a4 (patch)
tree644b4d78250e12dddf8d59135e09a4906e6e9a05 /arch/arm/mach-shmobile/board-mackerel.c
parente04662d69b12cc70c4703361bad11a93e7a08046 (diff)
ARM: shmobile: mackerel: Register pinctrl mapping for the ADXL34X
Replace the GPIO-based ADXL34X pinmux configuration by a pinctrl mapping. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/board-mackerel.c')
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index fa3407da682a..d40d9daee2c4 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -1309,6 +1309,9 @@ static struct i2c_board_info i2c1_devices[] = {
1309}; 1309};
1310 1310
1311static const struct pinctrl_map mackerel_pinctrl_map[] = { 1311static const struct pinctrl_map mackerel_pinctrl_map[] = {
1312 /* ADXL34X */
1313 PIN_MAP_MUX_GROUP_DEFAULT("1-0053", "pfc-sh7372",
1314 "intc_irq21", "intc"),
1312 /* SDHI0 */ 1315 /* SDHI0 */
1313 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-sh7372", 1316 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-sh7372",
1314 "sdhi0_data4", "sdhi0"), 1317 "sdhi0_data4", "sdhi0"),
@@ -1460,8 +1463,7 @@ static void __init mackerel_init(void)
1460 gpio_request(GPIO_FN_IRQ7_40, NULL); 1463 gpio_request(GPIO_FN_IRQ7_40, NULL);
1461 irq_set_irq_type(IRQ7, IRQ_TYPE_LEVEL_LOW); 1464 irq_set_irq_type(IRQ7, IRQ_TYPE_LEVEL_LOW);
1462 1465
1463 /* enable Accelerometer */ 1466 /* Accelerometer */
1464 gpio_request(GPIO_FN_IRQ21, NULL);
1465 irq_set_irq_type(IRQ21, IRQ_TYPE_LEVEL_HIGH); 1467 irq_set_irq_type(IRQ21, IRQ_TYPE_LEVEL_HIGH);
1466 1468
1467 /* SDHI0 PORT172 card-detect IRQ26 */ 1469 /* SDHI0 PORT172 card-detect IRQ26 */