arm: tegra: power detect T11x support
Bitan Biswas [Wed, 29 Aug 2012 12:55:44 +0000 (17:55 +0530)]
Power detect and no io power chart updated for T11x

bug 1039236

Change-Id: Id669d994cc6ec140c53f4c0a5adeb9473fea7126
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/128207
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/powerdetect.c

index 27c8d92..c85e2ba 100644 (file)
@@ -94,10 +94,16 @@ static struct pwr_detect_cell pwr_detect_cells[] = {
        POWER_CELL("pwrdet_mipi",                 0, (0x1 <<  9), 0xFFFFFFFF),
 #ifndef CONFIG_ARCH_TEGRA_2x_SOC
        POWER_CELL("pwrdet_cam",        (0x1 << 10), (0x1 << 10), 0xFFFFFFFF),
+#ifdef CONFIG_ARCH_TEGRA_3x_SOC
        POWER_CELL("pwrdet_pex_ctl",    (0x1 << 11), (0x1 << 11), 0xFFFFFFFF),
+#endif
        POWER_CELL("pwrdet_sdmmc1",     (0x1 << 12), (0x1 << 12), 0xFFFFFFFF),
        POWER_CELL("pwrdet_sdmmc3",     (0x1 << 13), (0x1 << 13), 0xFFFFFFFF),
        POWER_CELL("pwrdet_sdmmc4",               0, (0x1 << 14), 0xFFFFFFFF),
+#ifdef CONFIG_ARCH_TEGRA_11x_SOC
+       POWER_CELL("pwrdet_hv",         (0x1 << 15), (0x1 << 15), 0xFFFFFFFF),
+       POWER_CELL("pwrdet_mem_comp",             0, (0x1 << 16), 0xFFFFFFFF),
+#endif
 #endif
 };