ARM: shmobile: kzm9g: Register pinctrl mappings for USB
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 13 Mar 2013 02:23:50 +0000 (03:23 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 15 Mar 2013 12:34:11 +0000 (13:34 +0100)
Replace the GPIO-based USB pinmux configuration by pinctrl mappings.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
arch/arm/mach-shmobile/board-kzm9g.c

index 742704111f726945beffa187ecdb774d57d92529..c1c0401ff6a46fd4ec25dfbcf29fa0e68a148d6f 100644 (file)
@@ -654,6 +654,9 @@ static const struct pinctrl_map kzm_pinctrl_map[] = {
        /* SMSC */
        PIN_MAP_MUX_GROUP_DEFAULT("smsc911x.0", "pfc-sh73a0",
                                  "bsc_cs4", "bsc"),
+       /* USB */
+       PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs", "pfc-sh73a0",
+                                 "usb_vbus", "usb"),
 };
 
 /*
@@ -738,9 +741,6 @@ static void __init kzm_init(void)
        /* enable Micro SD */
        gpio_request_one(14, GPIOF_OUT_INIT_HIGH, NULL); /* power */
 
-       /* enable USB */
-       gpio_request(GPIO_FN_VBUS_0,    NULL);
-
 #ifdef CONFIG_CACHE_L2X0
        /* Early BRESP enable, Shared attribute override enable, 64K*8way */
        l2x0_init(IOMEM(0xf0100000), 0x40460000, 0x82000fff);