Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 NVIDIA, Inc. | 2 * Copyright (C) 2010 NVIDIA, Inc. |
| 3 * | 3 * |
| 4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
| 5 * it under the terms of the GNU General Public License version 2 as | 5 * it under the terms of the GNU General Public License version 2 as |
| 6 * published by the Free Software Foundation. | 6 * published by the Free Software Foundation. |
| 7 * | 7 * |
| 8 * This program is distributed in the hope that it will be useful, | 8 * This program is distributed in the hope that it will be useful, |
| 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 | 117 |
| 118 static struct regulator_init_data sm0_data = REGULATOR_INIT(sm0, 725, 1500); | 118 static struct regulator_init_data sm0_data = REGULATOR_INIT(sm0, 725, 1500); |
| 119 static struct regulator_init_data sm1_data = REGULATOR_INIT(sm1, 725, 1500); | 119 static struct regulator_init_data sm1_data = REGULATOR_INIT(sm1, 725, 1500); |
| 120 static struct regulator_init_data sm2_data = REGULATOR_INIT(sm2, 3000, 4550); | 120 static struct regulator_init_data sm2_data = REGULATOR_INIT(sm2, 3000, 4550); |
| 121 static struct regulator_init_data ldo0_data = REGULATOR_INIT(ldo0, 1250, 3300); | 121 static struct regulator_init_data ldo0_data = REGULATOR_INIT(ldo0, 1250, 3300); |
| 122 static struct regulator_init_data ldo1_data = REGULATOR_INIT(ldo1, 725, 1500); | 122 static struct regulator_init_data ldo1_data = REGULATOR_INIT(ldo1, 725, 1500); |
| 123 static struct regulator_init_data ldo2_data = REGULATOR_INIT(ldo2, 725, 1500); | 123 static struct regulator_init_data ldo2_data = REGULATOR_INIT(ldo2, 725, 1500); |
| 124 static struct regulator_init_data ldo3_data = REGULATOR_INIT(ldo3, 1250, 3300); | 124 static struct regulator_init_data ldo3_data = REGULATOR_INIT(ldo3, 1250, 3300); |
| 125 static struct regulator_init_data ldo4_data = REGULATOR_INIT(ldo4, 1700, 2475); | 125 static struct regulator_init_data ldo4_data = REGULATOR_INIT(ldo4, 1700, 2475); |
| 126 static struct regulator_init_data ldo5_data = REGULATOR_INIT(ldo5, 1250, 3300); | 126 static struct regulator_init_data ldo5_data = REGULATOR_INIT(ldo5, 1250, 3300); |
| 127 static struct regulator_init_data ldo6_data = REGULATOR_INIT(ldo6, 1250, 3300); | 127 static struct regulator_init_data ldo6_data = REGULATOR_INIT(ldo6, 1800, 1800); |
| 128 static struct regulator_init_data ldo7_data = REGULATOR_INIT(ldo7, 1250, 3300); | 128 static struct regulator_init_data ldo7_data = REGULATOR_INIT(ldo7, 1250, 3300); |
| 129 static struct regulator_init_data ldo8_data = REGULATOR_INIT(ldo8, 1250, 3300); | 129 static struct regulator_init_data ldo8_data = REGULATOR_INIT(ldo8, 1250, 3300); |
| 130 static struct regulator_init_data ldo9_data = REGULATOR_INIT(ldo9, 1250, 3300); | 130 static struct regulator_init_data ldo9_data = REGULATOR_INIT(ldo9, 1250, 3300); |
| 131 | 131 |
| 132 static struct tps6586x_rtc_platform_data rtc_data = { | 132 static struct tps6586x_rtc_platform_data rtc_data = { |
| 133 .irq = TEGRA_NR_IRQS + TPS6586X_INT_RTC_ALM1, | 133 .irq = TEGRA_NR_IRQS + TPS6586X_INT_RTC_ALM1, |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 #define TPS_REG(_id, _data) \ | 136 #define TPS_REG(_id, _data) \ |
| 137 { \ | 137 { \ |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 int __init seaboard_regulator_init(void) | 187 int __init seaboard_regulator_init(void) |
| 188 { | 188 { |
| 189 void __iomem *pmc = IO_ADDRESS(TEGRA_PMC_BASE); | 189 void __iomem *pmc = IO_ADDRESS(TEGRA_PMC_BASE); |
| 190 u32 pmc_ctrl; | 190 u32 pmc_ctrl; |
| 191 | 191 |
| 192 /* configure the power management controller to trigger PMU | 192 /* configure the power management controller to trigger PMU |
| 193 * interrupts when low */ | 193 * interrupts when low */ |
| 194 pmc_ctrl = readl(pmc + PMC_CTRL); | 194 pmc_ctrl = readl(pmc + PMC_CTRL); |
| 195 writel(pmc_ctrl | PMC_CTRL_INTR_LOW, pmc + PMC_CTRL); | 195 writel(pmc_ctrl | PMC_CTRL_INTR_LOW, pmc + PMC_CTRL); |
| 196 | 196 |
| 197 ldo6_data.constraints.apply_uV = 1; | |
|
Olof Johansson
2011/03/28 22:41:44
Should the changes to this file be a separate patc
| |
| 198 | |
| 197 i2c_register_board_info(4, seaboard_regulators, 1); | 199 i2c_register_board_info(4, seaboard_regulators, 1); |
| 198 return 0; | 200 return 0; |
| 199 } | 201 } |
| 200 | 202 |
| 201 /* ac power */ | 203 /* ac power */ |
| 202 static char *tegra_batteries[] = { | 204 static char *tegra_batteries[] = { |
| 203 "battery", | 205 "battery", |
| 204 }; | 206 }; |
| 205 | 207 |
| 206 static struct resource seaboard_ac_resources[] = { | 208 static struct resource seaboard_ac_resources[] = { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 300 pr_warning("Unable to initialize regulator\n"); | 302 pr_warning("Unable to initialize regulator\n"); |
| 301 | 303 |
| 302 err = seaboard_ac_power_init(); | 304 err = seaboard_ac_power_init(); |
| 303 if (err < 0) | 305 if (err < 0) |
| 304 pr_warning("Unable to initialize ac power\n"); | 306 pr_warning("Unable to initialize ac power\n"); |
| 305 | 307 |
| 306 pm_power_off = seaboard_power_off; | 308 pm_power_off = seaboard_power_off; |
| 307 | 309 |
| 308 return 0; | 310 return 0; |
| 309 } | 311 } |
| OLD | NEW |