summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2019-12-13 12:06:01 +0800
committerCommit Bot <commit-bot@chromium.org>2019-12-16 04:52:09 +0000
commit7c89289e32ba60dca6d00aca6827b6ebe82f87ba (patch)
treef9afa29a736c87dbf39556d19ead0f4225543942
parent13a1764e9d23aeb20a819ca479440ce006b10cd1 (diff)
downloadchrome-ec-7c89289e32ba60dca6d00aca6827b6ebe82f87ba.tar.gz
jinlon: assign power enable pin for FAN2 with proto2
This patch adds power enable pin for FAN2 with porto2 board. BUG=b:145163123 BRANCH=hatch TEST=Use console "faninfo" to make sure FAN2 power on with S0. Use console "faninfo" to make sure FAN2 power off on with S5. Change-Id: Id7ed57b3b4c5fa2a93a6a5019f572edea3a2f0e0 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1966811 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rw-r--r--board/jinlon/board.c2
-rw-r--r--board/jinlon/gpio.inc1
2 files changed, 2 insertions, 1 deletions
diff --git a/board/jinlon/board.c b/board/jinlon/board.c
index a5617b017c..3bc5dbb771 100644
--- a/board/jinlon/board.c
+++ b/board/jinlon/board.c
@@ -281,7 +281,7 @@ const struct fan_conf fan_conf_1 = {
.flags = FAN_USE_RPM_MODE,
.ch = MFT_CH_1, /* Use MFT id to control fan */
.pgood_gpio = -1,
- .enable_gpio = -1,
+ .enable_gpio = GPIO_EN_PP5000_FAN2,
};
/* Default */
diff --git a/board/jinlon/gpio.inc b/board/jinlon/gpio.inc
index 99661cae46..7170f3dc01 100644
--- a/board/jinlon/gpio.inc
+++ b/board/jinlon/gpio.inc
@@ -89,6 +89,7 @@ GPIO(PWR_LED_WHITE_L, PIN(6, 0), GPIO_OUT_HIGH)
GPIO(EC_KB_BL_EN, PIN(8, 6), GPIO_OUT_LOW) /* Keyboard backlight */
GPIO(EDP_BKLTEN_OD, PIN(D, 3), GPIO_ODR_HIGH) /* Display backlight */
GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_LOW)
+GPIO(EN_PP5000_FAN2, PIN(8, 3), GPIO_OUT_LOW)
GPIO(EN_MST, PIN(9, 6), GPIO_OUT_LOW)