summaryrefslogtreecommitdiff
path: root/board/servo_v4p1/board.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2021-01-20 17:32:46 +0000
committerCommit Bot <commit-bot@chromium.org>2021-01-20 21:29:58 +0000
commit5fef5654ceb57364872ab5352eaff6a7f5cae91e (patch)
tree3cd01a9c9b1561a350f4d24ca0f44e57330fa49c /board/servo_v4p1/board.c
parent1c0e83be5ef0f03caba062d6045b5ec041a4a78f (diff)
downloadchrome-ec-5fef5654ceb57364872ab5352eaff6a7f5cae91e.tar.gz
servo_v4p1: clean-up and USB-C timings
Small clean-ups inherited from Nathan, the sooner they are pushed the better. - Fix typos/terminology. - Use symbolic port names. - update timings from power supplies to be more tolerant when using an upstream host charger. - disable the discharge on the power path at startup as a safety measure. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=none BRANCH=servo TEST=none Change-Id: If3ca4498b23763ce43371ce9cfe80391b0c1a4b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2640656 Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/servo_v4p1/board.c')
-rw-r--r--board/servo_v4p1/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/servo_v4p1/board.c b/board/servo_v4p1/board.c
index d6e409ab18..6e83f20a09 100644
--- a/board/servo_v4p1/board.c
+++ b/board/servo_v4p1/board.c
@@ -423,6 +423,10 @@ static void board_init(void)
usleep(MSEC);
init_ioexpanders();
+ CPRINTS("Board ID is %d", board_id_det());
+
+ vbus_dischrg_en(0);
+
init_dacs();
init_pi3usb9201();