summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-08-05 16:05:02 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-06 18:48:14 +0000
commita7bf7b9564bf952a229d1cb4bcef5b65be777c93 (patch)
treec60c4e39afedb95689c75bcaa693d9d504096d34 /power
parent1e95466f3a0d022e0a77f55423e0384a9a243224 (diff)
downloadchrome-ec-a7bf7b9564bf952a229d1cb4bcef5b65be777c93.tar.gz
mediatek: Fix llama build
The llama AP_RESET GPIO differs in polarity from oak. BUG=chromium:517250 TEST=`make buildall -j` BRANCH=None Change-Id: Id06bf39e758b528d154936a3e8561704fdf4cce9 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/290950 Commit-Queue: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/mediatek.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/power/mediatek.c b/power/mediatek.c
index 47a2ce83c2..b0bba88387 100644
--- a/power/mediatek.c
+++ b/power/mediatek.c
@@ -267,25 +267,11 @@ static void set_pmic_pwron(int asserted)
/**
* Set the WARM RESET signal.
*
- * PMIC_WARM_RESET_H (PB3) is stuffed before rev < 3 and connected to PMIC RESET
- * After rev >= 3, this is removed. This should not effected the new board.
- *
- * AP_RESET_L (PC3, CPU_WARM_RESET_L) is stuffed after rev >= 3
- * and connected to PMIC SYSRSTB
- *
* @param asserted off (=0) or on (=1)
*/
static void set_warm_reset(int asserted)
{
- if (system_get_board_version() < 3) {
- /* Signal is active-high */
- CPRINTS("pmic warm reset(%d)", asserted);
- gpio_set_level(GPIO_PMIC_WARM_RESET_H, asserted);
- } else {
- /* Signal is active-low */
- CPRINTS("ap warm reset(%d)", asserted);
- gpio_set_level(GPIO_AP_RESET_L, !asserted);
- }
+ board_set_ap_reset(asserted);
}
/**