diff options
author | Bitan Biswas <bbiswas@nvidia.com> | 2013-06-26 10:14:29 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:28:18 -0700 |
commit | 1390b3a1a5db1ad593ac59b3c672bf5a53d86d01 (patch) | |
tree | 44f3f43d0992b00c952fda2e01483269dfdbb1fe | |
parent | 8a8020491cc6c3aa9a2c5b42849cc9e3529c0131 (diff) |
ARM: tegra: chip-specific power detect cells
T14x specific power detect cells only must be used. The
implementation needs all supported power detect cells
specific to chip. If extra entries are declared for a
chip the initialization fails.
bug 1231612
bug 1236429
bug 1231668
Change-Id: Iffe8271c77f1b382972f29f20dc0a4094b270490
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/242233
(cherry picked from commit 11d6341368449513f9ba56ab868cf05ff0002300)
Reviewed-on: http://git-master/r/247140
Reviewed-by: Automatic_Commit_Validation_User
-rw-r--r-- | arch/arm/mach-tegra/powerdetect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/powerdetect.c b/arch/arm/mach-tegra/powerdetect.c index 05d886a6331a..5db49481a3c2 100644 --- a/arch/arm/mach-tegra/powerdetect.c +++ b/arch/arm/mach-tegra/powerdetect.c @@ -76,9 +76,13 @@ static inline u32 pmc_readl(unsigned long addr) /* Some IO pads does not have power detect cells, but still can/should be * turned off when no power - set pwrdet_mask=0 for such pads */ static struct pwr_detect_cell pwr_detect_cells[] = { +#ifndef CONFIG_ARCH_TEGRA_14x_SOC POWER_CELL("pwrdet_nand", (0x1 << 1), (0x1 << 1), 0xFFFFFFFF), +#endif POWER_CELL("pwrdet_uart", (0x1 << 2), (0x1 << 2), 0xFFFFFFFF), +#ifndef CONFIG_ARCH_TEGRA_14x_SOC POWER_CELL("pwrdet_bb", (0x1 << 3), (0x1 << 3), 0xFFFFFFFF), +#endif #ifdef CONFIG_ARCH_TEGRA_2x_SOC POWER_CELL("pwrdet_vi", 0, (0x1 << 4), 0xFFFFFFFF), #else @@ -92,7 +96,9 @@ static struct pwr_detect_cell pwr_detect_cells[] = { #ifdef CONFIG_ARCH_TEGRA_2x_SOC POWER_CELL("pwrdet_sd", 0, (0x1 << 8), 0xFFFFFFFF), #endif +#ifndef CONFIG_ARCH_TEGRA_14x_SOC POWER_CELL("pwrdet_mipi", 0, (0x1 << 9), 0xFFFFFFFF), +#endif #ifndef CONFIG_ARCH_TEGRA_2x_SOC POWER_CELL("pwrdet_cam", (0x1 << 10), (0x1 << 10), 0xFFFFFFFF), #ifdef CONFIG_ARCH_TEGRA_3x_SOC |