ARM: tegra: enable pincontrol driver for all T124 platform
Laxman Dewangan [Wed, 13 Nov 2013 11:29:41 +0000 (16:29 +0530)]
Register pincontrol driver for pinmux support for all T124 platforms.

Change-Id: Ie9b2c62a1d45125d96a94b8df676a2d868778fe5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/330969

arch/arm/mach-tegra/board-ardbeg.c
arch/arm/mach-tegra/board-loki.c
arch/arm/mach-tegra/board-vcm30_t124.c
arch/arm/mach-tegra/common.c

index 87796b9..cee386c 100644 (file)
@@ -1105,7 +1105,7 @@ static void __init tegra_ardbeg_late_init(void)
                board_info.board_id, board_info.sku,
                board_info.fab, board_info.major_revision,
                board_info.minor_revision);
-       platform_device_register(&tegra_pinmux_device);
+       platform_device_register(&tegra124_pinctrl_device);
        if (board_info.board_id == BOARD_PM359 ||
                        board_info.board_id == BOARD_PM358 ||
                        board_info.board_id == BOARD_PM363)
index d259b57..677195e 100644 (file)
@@ -833,7 +833,7 @@ static void __init tegra_loki_late_init(void)
                board_info.board_id, board_info.sku,
                board_info.fab, board_info.major_revision,
                board_info.minor_revision);
-       platform_device_register(&tegra_pinmux_device);
+       platform_device_register(&tegra124_pinctrl_device);
        loki_pinmux_init();
        loki_usb_init();
        loki_modem_init();
index 8478b6a..336f171 100644 (file)
@@ -501,7 +501,7 @@ static void __init tegra_vcm30_t124_late_init(void)
                board_info.board_id, board_info.sku,
                board_info.fab, board_info.major_revision,
                board_info.minor_revision);
-       platform_device_register(&tegra_pinmux_device);
+       platform_device_register(&tegra124_pinctrl_device);
        vcm30_t124_pinmux_init();
        vcm30_t124_usb_init();
 /*     vcm30_t124_xusb_init(); */
index 2ebf1e6..3b58913 100644 (file)
@@ -2187,7 +2187,13 @@ late_initcall(tegra_release_bootloader_fb);
 
 static struct platform_device *pinmux_devices[] = {
        &tegra_gpio_device,
+#if defined(CONFIG_ARCH_TEGRA_11x_SOC)
+       &tegra114_pinctrl_device,
+#elif defined(CONFIG_ARCH_TEGRA_12x_SOC)
+       &tegra124_pinctrl_device,
+#else
        &tegra_pinmux_device,
+#endif
 };
 
 void tegra_enable_pinmux(void)