diff options
Diffstat (limited to 'board/boten/board.c')
-rw-r--r-- | board/boten/board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/boten/board.c b/board/boten/board.c index 6679b4bd7d..76b4a25771 100644 --- a/board/boten/board.c +++ b/board/boten/board.c @@ -108,6 +108,21 @@ void board_hibernate(void) raa489000_hibernate(0, true); } +__override void board_pulse_entering_rw(void) +{ + /* + * On the ITE variants, the EC_ENTERING_RW signal was connected to a pin + * which is active high by default. This causes Cr50 to think that the + * EC has jumped to its RW image even though this may not be the case. + * The pin is changed to GPIO_EC_ENTERING_RW2. + */ + gpio_set_level(GPIO_EC_ENTERING_RW, 1); + gpio_set_level(GPIO_EC_ENTERING_RW2, 1); + usleep(MSEC); + gpio_set_level(GPIO_EC_ENTERING_RW, 0); + gpio_set_level(GPIO_EC_ENTERING_RW2, 0); +} + /* Must come after other header files and interrupt handler declarations */ #include "gpio_list.h" |