summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-06-06 09:44:11 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-06-07 23:33:36 -0700
commita730fd6219d53469a8ca0e74a6631912a24877a3 (patch)
tree2ea27f5164b94cbaca04a07f2578304a2dcb4dd5 /baseboard
parent866c67086757eddf84680a2de4377fd3a5a893d7 (diff)
downloadchrome-ec-a730fd6219d53469a8ca0e74a6631912a24877a3.tar.gz
yorp: update gpio and functionality based on latest schematic
- Change GPIO signals at runtime based on board version - SYS_RESTET_L, ENTERING_RW, USB2_OTG_ID - Add 2nd signal for 2nd USB-A port BC1.2 outbound charging - (GPIO96) USB_A1_CHARGE_EN_L (V1) maps to EN_BRD_ID (V0) so we can just enable the USBA port 1 signal on V0 with only a small power drain. It is not worth the EC codebase churn to add support for changing the number of USB-A ports at runtime (since it is a compile time constant now) - Yorp V0 is the only board that set USB_PORT_COUNT to 1 so we can make common octopus code only have the 2 port case. - Add placeholders for LED_3_L, WFCAM_VSYNC - Updated signal name comments to match schematics - Formatting cleanup for consistency BRANCH=none BUG=b:109747036,b:74388692 TEST=verified `sysjump rw` does not brown out board when only powering with USB C1 without battery. Since GPIO_C1_EN_SNK_V0 moved, the board would lock power out if GPIOs state was not maintained properly through sysjump transition. Change-Id: Ie4c72699ab23ee6f7d2fa77a78709e5b4343e46f Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1087815 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/octopus/baseboard.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/baseboard/octopus/baseboard.c b/baseboard/octopus/baseboard.c
index 2c0d47489a..10e7fe5a9c 100644
--- a/baseboard/octopus/baseboard.c
+++ b/baseboard/octopus/baseboard.c
@@ -79,13 +79,8 @@ struct keyboard_scan_config keyscan_config = {
/******************************************************************************/
/* USB-A Configuration */
const int usb_port_enable[USB_PORT_COUNT] = {
-#if USB_PORT_COUNT == 1
- GPIO_EN_USB_A_5V,
- /* TODO(b/74388692): Add second port control after hardware fix. */
-#else
GPIO_EN_USB_A0_5V,
GPIO_EN_USB_A1_5V,
-#endif
};
/******************************************************************************/