summaryrefslogtreecommitdiff
path: root/board/waddledoo/board.c
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2020-01-07 10:26:30 -0800
committerCommit Bot <commit-bot@chromium.org>2020-01-08 06:52:45 +0000
commit52524e690df2538c30b64b40b41874701ea529ee (patch)
treeb4d2496331093a281f00b8791b2c318862028ca4 /board/waddledoo/board.c
parent544ee3c5461b6f00115887122f4ad5a29d0ed6bc (diff)
downloadchrome-ec-52524e690df2538c30b64b40b41874701ea529ee.tar.gz
waddledoo: Add JSL support
waddledoo is using the Intel Jasperlake chipset. This commit enables support for that chipset as well as adding the other related power sequencing signals. JSL uses the same chipset driver as ICL, but waddledoo doesn't have a couple of the power good pins that the driver assumes. Therefore, waddledoo overrides these power good signals using other logic. BUG=b:147257114,b:146172102 BRANCH=None TEST=`make -j BOARD=waddledoo` Change-Id: Ib4baa7ff38a4f59f751ecb16c22522eda71b6f4f Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1987837 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/waddledoo/board.c')
-rw-r--r--board/waddledoo/board.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/waddledoo/board.c b/board/waddledoo/board.c
index a302d4d529..8c5a865035 100644
--- a/board/waddledoo/board.c
+++ b/board/waddledoo/board.c
@@ -9,10 +9,21 @@
#include "button.h"
#include "common.h"
#include "compile_time_macros.h"
+#include "extpower.h"
#include "gpio.h"
#include "i2c.h"
#include "lid_switch.h"
+#include "power.h"
#include "power_button.h"
#include "switch.h"
#include "gpio_list.h"
+
+int extpower_is_present(void)
+{
+ /*
+ * TODO(b:146651593) We can likely use the charger IC to determine VBUS
+ * presence.
+ */
+ return 1;
+}