diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-11-02 10:51:56 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-04 07:08:35 -0800 |
commit | 4f090ad68e76f2df0bf688942e39b30ba2312459 (patch) | |
tree | dcca7dc0f8a1a5afb443a17f9b4cb3a53d7e6cf9 /board/glados_pd/board.c | |
parent | e8b998f2cc938d5982f15e23fb35c1c92410c3c2 (diff) | |
download | chrome-ec-4f090ad68e76f2df0bf688942e39b30ba2312459.tar.gz |
oak_pd: change oak_pd to be a sym link to glados_pd
Make oak_pd a sym link to glados_pd. A few small changes
necessary to make this possible:
- glados_pd now sets the VBUS present power status bit as oak_pd
does and as is appropriate for TCPCI spec.
- oak_pd now has watchdog enabled (not sure why it was
previously disabled).
- add a flag in gpio.inc to define EC_INT pin on B5 for oak_pd
and A14 for glaods_pd (and all other boards pointing to
glados_pd). Note: this breaks oak board rev 1, where EC_INT was
on A14.
BUG=none
BRANCH=none
TEST=make -j buildall
Load on glados and make sure zinger works.
Change-Id: I28f4ee106e44e2819919f1826508fc1fc05bb2a1
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/310193
Diffstat (limited to 'board/glados_pd/board.c')
-rw-r--r-- | board/glados_pd/board.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/board/glados_pd/board.c b/board/glados_pd/board.c index 791d29a097..f03af33041 100644 --- a/board/glados_pd/board.c +++ b/board/glados_pd/board.c @@ -17,6 +17,7 @@ #include "system.h" #include "task.h" #include "usb_pd.h" +#include "usb_pd_tcpc.h" #include "util.h" #define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args) @@ -32,16 +33,6 @@ void pd_send_ec_int(void) gpio_set_level(GPIO_EC_INT, !ec_int_status); } -void vbus0_evt(enum gpio_signal signal) -{ - task_wake(TASK_ID_PD_C0); -} - -void vbus1_evt(enum gpio_signal signal) -{ - task_wake(TASK_ID_PD_C1); -} - void board_config_pre_init(void) { /* enable SYSCFG clock */ |