oak: add initial support for oak board rev1

Add initial support for Oak rev1 board. This is just the
EC and includes battery charging but does not include
USB PD.

BUG=none
BRANCH=none
TEST=load on oak board and get console

Signed-off-by: Rong Chang <rongchang@chromium.org>
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Change-Id: I626f3921025fbc39ba22b04eeb6dd1084cd70777
Reviewed-on: https://chromium-review.googlesource.com/261678
This commit is contained in:
Rong Chang
2015-03-23 20:12:56 +08:00
committed by ChromeOS Commit Bot
parent 937cc8a64e
commit 552c17543f
18 changed files with 876 additions and 47 deletions

View File

@@ -668,9 +668,7 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd)
case EC_REBOOT_COLD:
#ifdef HAS_TASK_PDCMD
/* Reboot the PD chip as well */
gpio_set_level(GPIO_USB_MCU_RST, 1);
usleep(100);
gpio_set_level(GPIO_USB_MCU_RST, 0);
board_reset_pd_mcu();
#endif
system_reset(SYSTEM_RESET_HARD);
/* That shouldn't return... */