summaryrefslogtreecommitdiff
path: root/board/volteer/gpio.inc
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-01-03 16:58:29 -0700
committerCommit Bot <commit-bot@chromium.org>2020-01-08 03:13:56 +0000
commit83f95fa7763155ea76bde754e8e4b02749be04b0 (patch)
tree47c06b2bc7a593641dfb4dbc86cdaa5ebecdb7d1 /board/volteer/gpio.inc
parent6109da0a52fa568742c55fa0f10166590ff7bbf5 (diff)
downloadchrome-ec-83f95fa7763155ea76bde754e8e4b02749be04b0.tar.gz
volteer: Enable daughter-board LED
PWM the motherboard/daughter-board switch at 50% to drive both LEDs equally. BUG=b:139554899 TEST=ledtest 0 enable <various colors>; observe LEDs BRANCH=none Change-Id: I0fefac4d540351f5083b769b09ede83c87c97a86 Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1987245 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/volteer/gpio.inc')
-rw-r--r--board/volteer/gpio.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/volteer/gpio.inc b/board/volteer/gpio.inc
index b93a183834..e2a8ed2478 100644
--- a/board/volteer/gpio.inc
+++ b/board/volteer/gpio.inc
@@ -103,10 +103,6 @@ UNIMPLEMENTED(USB_C1_LS_EN)
UNIMPLEMENTED(USB_C1_RT_FORCE_PWR)
/* Misc Signals */
-/* This selects between an LED module on the motherboard and one on the daughter
- * board, to be controlled by LED{1,2,3}. Select the one on the motherboard by
- * default. */
-GPIO(LED_SIDESEL_4_L, PIN(6, 0), GPIO_OUT_LOW)
/*
* eDP backlight - both PCH and EC have enable pins that must be high
@@ -144,7 +140,11 @@ ALTERNATE(PIN_MASK(D, BIT(1) | BIT(0)), 0, MODULE_I2C, 0)
ALTERNATE(PIN_MASK(3, BIT(3) | BIT(6)), 0, MODULE_I2C, 0) /* I2C5 */
ALTERNATE(PIN_MASK(B, BIT(3) | BIT(2)), 0, MODULE_I2C, 0) /* I2C7 */
-ALTERNATE(PIN_MASK(C, BIT(2) | BIT(3) | BIT(4)), 0, MODULE_PWM, 0) /* LED{3,2,1}_L */
+/* This selects between an LED module on the motherboard and one on the daughter
+ * board, to be controlled by LED_{1,2,3}_L. PWM allows driving both modules at
+ * the same time. */
+ALTERNATE(PIN_MASK(6, BIT(0)), 0, MODULE_PWM, 0) /* LED_SIDESEL_4_L */
+ALTERNATE(PIN_MASK(C, BIT(2) | BIT(3) | BIT(4)), 0, MODULE_PWM, 0) /* LED_{3,2,1}_L */
/* Fan signals */
GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_LOW)