]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: mackerel: Register pinctrl mapping for the ADXL34X
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 19 Apr 2013 11:29:48 +0000 (13:29 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 25 May 2013 02:25:02 +0000 (11:25 +0900)
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>
arch/arm/mach-shmobile/board-mackerel.c

index fa3407da682ad59a08042c383d4297bbe354af41..d40d9daee2c493d8cb03b1efefc5b723e08aaa27 100644 (file)
@@ -1309,6 +1309,9 @@ static struct i2c_board_info i2c1_devices[] = {
 };
 
 static const struct pinctrl_map mackerel_pinctrl_map[] = {
+       /* ADXL34X */
+       PIN_MAP_MUX_GROUP_DEFAULT("1-0053", "pfc-sh7372",
+                                 "intc_irq21", "intc"),
        /* SDHI0 */
        PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-sh7372",
                                  "sdhi0_data4", "sdhi0"),
@@ -1460,8 +1463,7 @@ static void __init mackerel_init(void)
        gpio_request(GPIO_FN_IRQ7_40,   NULL);
        irq_set_irq_type(IRQ7, IRQ_TYPE_LEVEL_LOW);
 
-       /* enable Accelerometer */
-       gpio_request(GPIO_FN_IRQ21,     NULL);
+       /* Accelerometer */
        irq_set_irq_type(IRQ21, IRQ_TYPE_LEVEL_HIGH);
 
        /* SDHI0 PORT172 card-detect IRQ26 */