arm: tegra: cardhu: Add support for the E1256
Laxman Dewangan [Mon, 11 Jul 2011 12:52:39 +0000 (17:52 +0530)]
Adding support for the E1256. The configuration is
same as the E1186 board.

bug 849990

Original-Change-Id: Idd89e282627b2f0924fc313a5ba28f9e9a6032be
Reviewed-on: http://git-master/r/40367
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R3b1f22dc222f4ce000d2e84a48b7e2f379159750

arch/arm/mach-tegra/board-cardhu-power.c
arch/arm/mach-tegra/board-cardhu-sensors.c
arch/arm/mach-tegra/board-cardhu.c
arch/arm/mach-tegra/board-cardhu.h

index 6fdf457..d9d17c6 100644 (file)
@@ -692,7 +692,7 @@ GREG_INIT(17, en_vddio_vid_oc_pm269,        en_vddio_vid_oc,        "master_5v_switch",
        0,      0,      TEGRA_GPIO_PP2, false,  0,      TEGRA_PINGROUP_DAP3_DOUT,
        enable_load_switch_rail, disable_load_switch_rail);
 
-/* Specific to E1187/E1186 */
+/* Specific to E1187/E1186/E1256 */
 GREG_INIT(14, dis_5v_switch_e118x,     dis_5v_switch,          "vdd_5v0_sys",
                0,      0,      TEGRA_GPIO_PX2,         true,   0,      0,      0,      0);
 GREG_INIT(15, en_usb1_vbus_oc_e118x,   en_usb1_vbus_oc,        "master_5v_switch",
@@ -812,9 +812,7 @@ GREG_INIT(22, en_vbrtr,             en_vbrtr,       "vdd_3v3_devices",      0,      0,      PMU_TCA641
        ADD_GPIO_REG(en_vdd_bl1_a03), \
        ADD_GPIO_REG(en_vdd_bl2_a03),
 
-/* Gpio switch regulator platform data  for E1186/E1187*/
-
-/* Gpio switch regulator platform data  for E1186/E1187*/
+/* Gpio switch regulator platform data  for E1186/E1187/E1256*/
 static struct gpio_switch_regulator_subdev_data *gswitch_subdevs_e118x[] = {
        COMMON_GPIO_REG
        E118x_GPIO_REG
@@ -939,6 +937,7 @@ int __init cardhu_suspend_init(void)
                break;
        case BOARD_E1187:
        case BOARD_E1186:
+       case BOARD_E1256:
                cardhu_suspend_data.cpu_timer = 5000;
                cardhu_suspend_data.cpu_off_timer = 5000;
                break;
index 9896d6a..01df84f 100644 (file)
@@ -567,7 +567,8 @@ static int cardhu_nct1008_init(void)
                (board_info.board_id == BOARD_E1291)) {
                nct1008_port = TEGRA_GPIO_PCC2;
        } else if ((board_info.board_id == BOARD_E1186) ||
-               (board_info.board_id == BOARD_E1187)) {
+               (board_info.board_id == BOARD_E1187) ||
+               (board_info.board_id == BOARD_E1256)) {
                /* FIXME: seems to be conflicting with usb3 vbus on E1186 */
                /* nct1008_port = TEGRA_GPIO_PH7; */
        }
index 519fa80..897c91f 100644 (file)
@@ -306,6 +306,7 @@ static void __init uart_debug_init(void)
        if (board_info.sku & SKU_SLT_ULPI_SUPPORT) {
                if ((board_info.board_id == BOARD_E1186) ||
                        (board_info.board_id == BOARD_E1187) ||
+                       (board_info.board_id == BOARD_E1256) ||
                        (board_info.board_id == BOARD_PM269)) {
                                /* UARTB is the debug port. */
                                pr_info("Selecting UARTB as the debug console\n");
@@ -579,7 +580,7 @@ static void cardhu_usb_init(void)
                        PM267_SMSC4640_HSIC_HUB_RESET_GPIO;
                tegra_ehci2_device.dev.platform_data = &tegra_ehci_uhsic_pdata;
        } else if ((bi.board_id == BOARD_PM269) ||
-               (bi.board_id == BOARD_E1186)) {
+               (bi.board_id == BOARD_E1186) || (bi.board_id == BOARD_E1256)) {
                tegra_ehci2_device.dev.platform_data = &tegra_ehci_uhsic_pdata;
        } else {
                tegra_ehci2_device.dev.platform_data = &tegra_ehci_pdata[1];
index 0e48083..e1c4b0b 100644 (file)
@@ -29,6 +29,7 @@
 #define BOARD_E1187   0x0B57
 #define BOARD_E1186   0x0B56
 #define BOARD_E1198   0x0B62
+#define BOARD_E1256   0x0C38
 #define BOARD_E1291   0x0C5B
 #define BOARD_PM267   0x0243
 #define BOARD_PM269   0x0245