From a7bf7b9564bf952a229d1cb4bcef5b65be777c93 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Wed, 5 Aug 2015 16:05:02 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/290950 Commit-Queue: Rong Chang Tested-by: Rong Chang --- power/mediatek.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'power') 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); } /** -- cgit v1.2.1