summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-power.c
diff options
context:
space:
mode:
authorDaniel Solomon <daniels@nvidia.com>2011-11-09 15:31:26 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-15 11:49:55 +0530
commit07b1a0d342f49215f5e6ce72fe6142b0bc026ff9 (patch)
tree1a0ac326d166456cba0be24c3f7ef9d1d38723fd /arch/arm/mach-tegra/board-enterprise-power.c
parente54c2f08eb44bf8aabd26445788c772e7178bf30 (diff)
arm: tegra: enterprise: Power down CEC and CLK_32K_OUT/BLINK pads
- Disabling HDMI CEC, which is generally not supported by T30. - Clear APBDEV_PMC_DPD_PADS_ORIDE_0_BLINK at boot time - Pull down CLK_32K_OUT/BLINK Bug 898597 Cherry-picked From: http://git-master/r/#change,63408 Signed-off-by: Daniel Solomon <daniels@nvidia.com> Change-Id: Ic6e6a5ddf16adf9e8f5a847a31ce7c902e3df9bc Reviewed-on: http://git-master/r/68558 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-power.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-power.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c
index 8a7977309375..470a8b13e05a 100644
--- a/arch/arm/mach-tegra/board-enterprise-power.c
+++ b/arch/arm/mach-tegra/board-enterprise-power.c
@@ -44,6 +44,9 @@
#define PMC_CTRL 0x0
#define PMC_CTRL_INTR_LOW (1 << 17)
+#define PMC_DPD_PADS_ORIDE 0x01c
+#define PMC_DPD_PADS_ORIDE_BLINK (1 << 20)
+
/************************ TPS80031 based regulator ****************/
static struct regulator_consumer_supply tps80031_vio_supply[] = {
REGULATOR_SUPPLY("vio_1v8", NULL),
@@ -492,6 +495,7 @@ int __init enterprise_regulator_init(void)
{
void __iomem *pmc = IO_ADDRESS(TEGRA_PMC_BASE);
u32 pmc_ctrl;
+ u32 pmc_dpd_pads;
/* configure the power management controller to trigger PMU
* interrupts when low */
@@ -499,6 +503,9 @@ int __init enterprise_regulator_init(void)
pmc_ctrl = readl(pmc + PMC_CTRL);
writel(pmc_ctrl | PMC_CTRL_INTR_LOW, pmc + PMC_CTRL);
+ pmc_dpd_pads = readl(pmc + PMC_DPD_PADS_ORIDE);
+ writel(pmc_dpd_pads & ~PMC_DPD_PADS_ORIDE_BLINK , pmc + PMC_DPD_PADS_ORIDE);
+
/* Disable battery charging if power adapter is connected. */
if (get_power_supply_type() == POWER_SUPPLY_TYPE_MAINS) {
bcharger_pdata.num_consumer_supplies = 0;