diff options
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-kbc.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-memory.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-panel.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-pinmux.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-power.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-sdhci.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-sensors.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu.h | 1 |
8 files changed, 24 insertions, 8 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-kbc.c b/arch/arm/mach-tegra/board-cardhu-kbc.c index dada17b7fe41..7ed354b6fcd5 100644 --- a/arch/arm/mach-tegra/board-cardhu-kbc.c +++ b/arch/arm/mach-tegra/board-cardhu-kbc.c @@ -113,7 +113,8 @@ int __init cardhu_kbc_init(void) return 0; if ((board_info.board_id == BOARD_PM269) || - (board_info.board_id == BOARD_PM305)) { + (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311)) { cardhu_kbc_platform_data.plain_keycode = plain_kbd_keycode_pm269; row_count = CARDHU_PM269_ROW_COUNT; col_count = CARDHU_PM269_COL_COUNT; @@ -237,6 +238,7 @@ int __init cardhu_keys_init(void) if (!((board_info.board_id == BOARD_E1198) || (board_info.board_id == BOARD_E1291) || (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311) || (board_info.board_id == BOARD_PM269))) return 0; @@ -259,6 +261,7 @@ int __init cardhu_keys_init(void) /* Register on-key through pmu interrupt */ if ((board_info.board_id == BOARD_E1291) || (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311) || (board_info.board_id == BOARD_PM269)) platform_device_register(&cardhu_int_keys_device); return 0; diff --git a/arch/arm/mach-tegra/board-cardhu-memory.c b/arch/arm/mach-tegra/board-cardhu-memory.c index 885392f62624..905c6f0ee72a 100644 --- a/arch/arm/mach-tegra/board-cardhu-memory.c +++ b/arch/arm/mach-tegra/board-cardhu-memory.c @@ -2534,7 +2534,6 @@ int cardhu_emc_init(void) switch (board.board_id) { case BOARD_PM269: - case BOARD_PM305: if (MEMORY_TYPE(board.sku) == SKU_MEMORY_ELPIDA) tegra_init_emc(cardhu_emc_tables_edb8132b2ma, ARRAY_SIZE(cardhu_emc_tables_edb8132b2ma)); @@ -2542,6 +2541,10 @@ int cardhu_emc_init(void) tegra_init_emc(cardhu_emc_tables_k4p8g304eb, ARRAY_SIZE(cardhu_emc_tables_k4p8g304eb)); break; + + case BOARD_PM305: + case BOARD_PM311: + break; default: if (tegra_get_revision() == TEGRA_REVISION_A01) tegra_init_emc(cardhu_emc_tables_h5tc2g, diff --git a/arch/arm/mach-tegra/board-cardhu-panel.c b/arch/arm/mach-tegra/board-cardhu-panel.c index 693cc1a051e8..c5b776c994bb 100644 --- a/arch/arm/mach-tegra/board-cardhu-panel.c +++ b/arch/arm/mach-tegra/board-cardhu-panel.c @@ -268,7 +268,8 @@ static int cardhu_panel_enable(void) regulator_enable(cardhu_lvds_vdd_panel); } if ((board_info.board_id == BOARD_PM269) || - (board_info.board_id == BOARD_PM305)) + (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311)) gpio_set_value(pm269_lvds_shutdown, 1); else gpio_set_value(cardhu_lvds_shutdown, 1); @@ -290,7 +291,8 @@ static int cardhu_panel_disable(void) regulator_put(cardhu_lvds_vdd_panel); cardhu_lvds_vdd_panel= NULL; if ((board_info.board_id == BOARD_PM269) || - (board_info.board_id == BOARD_PM305)) + (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311)) gpio_set_value(pm269_lvds_shutdown, 0); else gpio_set_value(cardhu_lvds_shutdown, 0); @@ -1033,7 +1035,8 @@ int __init cardhu_panel_init(void) } if ((board_info.board_id == BOARD_PM269) || - (board_info.board_id == BOARD_PM305)) { + (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311)) { gpio_request(pm269_lvds_shutdown, "lvds_shutdown"); gpio_direction_output(pm269_lvds_shutdown, 1); tegra_gpio_enable(pm269_lvds_shutdown); diff --git a/arch/arm/mach-tegra/board-cardhu-pinmux.c b/arch/arm/mach-tegra/board-cardhu-pinmux.c index 50cdf40b97f0..d8dfbe2ffeae 100644 --- a/arch/arm/mach-tegra/board-cardhu-pinmux.c +++ b/arch/arm/mach-tegra/board-cardhu-pinmux.c @@ -543,6 +543,7 @@ int __init cardhu_pinmux_init(void) case BOARD_PM269: case BOARD_PM305: + case BOARD_PM311: tegra_pinmux_config_table(cardhu_pinmux_e118x, ARRAY_SIZE(cardhu_pinmux_e118x)); tegra_pinmux_config_table(unused_pins_lowpower, @@ -646,7 +647,8 @@ int __init cardhu_pins_state_init(void) ARRAY_SIZE(pin_lpm_cardhu_common)); if ((board_info.board_id == BOARD_PM269) || - (board_info.board_id == BOARD_PM305)) + (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311)) set_unused_pin_gpio(&vddio_gmi_pins_pm269[0], ARRAY_SIZE(vddio_gmi_pins_pm269)); return 0; diff --git a/arch/arm/mach-tegra/board-cardhu-power.c b/arch/arm/mach-tegra/board-cardhu-power.c index 359c166d2d65..d20422958a7d 100644 --- a/arch/arm/mach-tegra/board-cardhu-power.c +++ b/arch/arm/mach-tegra/board-cardhu-power.c @@ -946,6 +946,7 @@ int __init cardhu_gpio_switch_regulator_init(void) case BOARD_PM269: case BOARD_PM305: + case BOARD_PM311: gswitch_pdata.num_subdevs = ARRAY_SIZE(gswitch_subdevs_pm269); gswitch_pdata.subdevs = gswitch_subdevs_pm269; break; @@ -1021,6 +1022,7 @@ int __init cardhu_suspend_init(void) case BOARD_E1198: case BOARD_PM269: case BOARD_PM305: + case BOARD_PM311: break; case BOARD_E1187: case BOARD_E1186: diff --git a/arch/arm/mach-tegra/board-cardhu-sdhci.c b/arch/arm/mach-tegra/board-cardhu-sdhci.c index 89644aa76aee..d48c56b3a14e 100644 --- a/arch/arm/mach-tegra/board-cardhu-sdhci.c +++ b/arch/arm/mach-tegra/board-cardhu-sdhci.c @@ -342,7 +342,8 @@ int __init cardhu_sdhci_init(void) struct board_info board_info; tegra_get_board_info(&board_info); if ((board_info.board_id == BOARD_PM269) || - (board_info.board_id == BOARD_PM305)) { + (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311)) { tegra_sdhci_platform_data2.max_clk = 12000000; rc = pm269_sd_wp_gpio_init(); if (!rc) { diff --git a/arch/arm/mach-tegra/board-cardhu-sensors.c b/arch/arm/mach-tegra/board-cardhu-sensors.c index 2f8729e16e96..ecb7ba204ca9 100644 --- a/arch/arm/mach-tegra/board-cardhu-sensors.c +++ b/arch/arm/mach-tegra/board-cardhu-sensors.c @@ -594,7 +594,8 @@ static int cardhu_nct1008_init(void) if ((board_info.board_id == BOARD_E1198) || (board_info.board_id == BOARD_E1291) || (board_info.board_id == BOARD_PM269) || - (board_info.board_id == BOARD_PM305)) { + (board_info.board_id == BOARD_PM305) || + (board_info.board_id == BOARD_PM311)) { nct1008_port = TEGRA_GPIO_PCC2; } else if ((board_info.board_id == BOARD_E1186) || (board_info.board_id == BOARD_E1187) || diff --git a/arch/arm/mach-tegra/board-cardhu.h b/arch/arm/mach-tegra/board-cardhu.h index fce4801b0df6..fc3c89617d91 100644 --- a/arch/arm/mach-tegra/board-cardhu.h +++ b/arch/arm/mach-tegra/board-cardhu.h @@ -36,6 +36,7 @@ #define BOARD_PM269 0x0245 #define BOARD_E1208 0x0C08 #define BOARD_PM305 0x0305 +#define BOARD_PM311 0x030B #define BOARD_PMU_PM299 0x0263 /* SKU Information */ |