summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorBen Lok <ben.lok@mediatek.com>2015-09-18 15:07:51 +0800
committerchrome-bot <chrome-bot@chromium.org>2015-09-23 05:02:30 -0700
commit6a11d9ae705d911ba79b4d909000243a29db1233 (patch)
tree86e591711ac6b695924e1b70825f794c638d3575 /power
parentc6deb911399ee6ec5e747b3f403c0c44fbf0eef4 (diff)
downloadchrome-ec-6a11d9ae705d911ba79b4d909000243a29db1233.tar.gz
oak: updates GPIO setting for rev4
Modify the GPIO seeting according to the Oak rev4 schematic. BRANCH=none BUG=none TEST=manual Confirm all reversion of oak can be built pass: make -j EXTRA_CFLAGS=-DBOARD_REV=4 BOARD=oak make -j BOARD=oak clean make -j EXTRA_CFLAGS=-DBOARD_REV=3 BOARD=oak make -j BOARD=oak clean make -j EXTRA_CFLAGS=-DBOARD_REV=2 BOARD=oak make -j BOARD=oak clean make -j EXTRA_CFLAGS=-DBOARD_REV=1 BOARD=oak Change-Id: Ib1051f29df9d1919f0ae3ecaf55dc0997ea29c3e Signed-off-by: Ben Lok <ben.lok@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/300728 Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/mediatek.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/power/mediatek.c b/power/mediatek.c
index 05ec085429..90a23aa2d4 100644
--- a/power/mediatek.c
+++ b/power/mediatek.c
@@ -599,7 +599,11 @@ static void power_on(void)
/* enable interrupt */
gpio_set_flags(GPIO_SUSPEND_L, INT_BOTH_PULL_UP);
- gpio_set_flags(GPIO_EC_INT_L, GPIO_OUTPUT | GPIO_OUT_HIGH);
+
+ if(system_get_board_version() <= 3)
+ gpio_set_flags(GPIO_EC_INT_L, GPIO_OUTPUT | GPIO_OUT_HIGH);
+ else
+ gpio_set_flags(GPIO_EC_INT_L, GPIO_ODR_HIGH);
disable_sleep(SLEEP_MASK_AP_RUN);
#ifdef HAS_TASK_POWERLED