From 6d19c024a9fc813a81193f1eef065af8dc855ae9 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Sat, 27 Apr 2013 15:36:35 +0800 Subject: spring: Enable both VFET2 and VFET4 for video We are moving video power from VFET2 to VFET4. To support old boards, we need to enable both of them. When new boards are in place, we can then drop VFET2. BUG=chrome-os-partner:18186 TEST=Build spring BRANCH=spring Change-Id: If0cbc1ac49affc1e3c7ec9650a661f80be826f97 Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/49431 Reviewed-by: Vincent Palatin --- common/extpower_usb.c | 2 ++ include/pmu_tpschrome.h | 1 + 2 files changed, 3 insertions(+) diff --git a/common/extpower_usb.c b/common/extpower_usb.c index 4866a5ae24..98200542e0 100644 --- a/common/extpower_usb.c +++ b/common/extpower_usb.c @@ -145,7 +145,9 @@ static int get_video_power(void) static void set_video_power(int enabled) { + /* TODO(victoryang): Drop VFET2. See crosbug.com/p/18186 */ pmu_enable_fet(FET_VIDEO, enabled, NULL); + pmu_enable_fet(FET_VIDEO2, enabled, NULL); video_power_enabled = enabled; } diff --git a/include/pmu_tpschrome.h b/include/pmu_tpschrome.h index deb23f79c2..744e15c634 100644 --- a/include/pmu_tpschrome.h +++ b/include/pmu_tpschrome.h @@ -73,6 +73,7 @@ enum FASTCHARGE_TIMEOUT { #define FET_BACKLIGHT 1 #define FET_VIDEO 2 #define FET_WWAN 3 +#define FET_VIDEO2 4 #define FET_CAMERA 5 #define FET_LCD_PANEL 6 #define FET_TS 7 -- cgit v1.2.1