summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana-power.c
diff options
context:
space:
mode:
authorXin Xie <xxie@nvidia.com>2011-04-25 17:36:15 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:48 -0800
commit591ed00ce9d9372e7c15805f68cbd0c56615c5a7 (patch)
tree8944e63a2dc68661ad377e3a745f73814d825402 /arch/arm/mach-tegra/board-ventana-power.c
parent390411720ac884f8b822154eedf15c70cf6f0e59 (diff)
ARM: tegra: ventana: change TPS6586x SMx slew rate
Currently Ventena reference design is using the wrong LC values in tps6586x, we need reduce the slew rate of SMx in order to prevent voltage undershoot. BUG 815933 Original-Change-Id: Ib44bd9a61769ef6c2af14174347181ce7426a5b3 Reviewed-on: http://git-master/r/40265 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rfe48ec428553eed008c70244d4872a9a1bd3e36c
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-power.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana-power.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-power.c b/arch/arm/mach-tegra/board-ventana-power.c
index 656ffc5aa7c9..7b2ae159d3ec 100644
--- a/arch/arm/mach-tegra/board-ventana-power.c
+++ b/arch/arm/mach-tegra/board-ventana-power.c
@@ -105,12 +105,18 @@ static struct regulator_consumer_supply tps658621_ldo9_supply[] = {
REGULATOR_SUPPLY("avdd_amp", NULL),
};
-/*
- * Current TPS6586x is known for having a voltage glitch if current load changes
- * from low to high in auto PWM/PFM mode for CPU's Vdd line.
- */
+static struct tps6586x_settings sm0_config = {
+ .sm_pwm_mode = PWM_DEFAULT_VALUE,
+ .slew_rate = SLEW_RATE_3520UV_PER_SEC,
+};
+
static struct tps6586x_settings sm1_config = {
+ /*
+ * Current TPS6586x is known for having a voltage glitch if current load
+ * changes from low to high in auto PWM/PFM mode for CPU's Vdd line.
+ */
.sm_pwm_mode = PWM_ONLY,
+ .slew_rate = SLEW_RATE_3520UV_PER_SEC,
};
#define REGULATOR_INIT(_id, _minmv, _maxmv, on, config) \
@@ -134,7 +140,7 @@ static struct tps6586x_settings sm1_config = {
#define ON 1
#define OFF 0
-static struct regulator_init_data sm0_data = REGULATOR_INIT(sm0, 725, 1500, ON, NULL);
+static struct regulator_init_data sm0_data = REGULATOR_INIT(sm0, 725, 1500, ON, &sm0_config);
static struct regulator_init_data sm1_data = REGULATOR_INIT(sm1, 725, 1500, ON, &sm1_config);
static struct regulator_init_data sm2_data = REGULATOR_INIT(sm2, 3000, 4550, ON, NULL);
static struct regulator_init_data ldo0_data = REGULATOR_INIT(ldo0, 1250, 3300, OFF, NULL);