diff options
author | Anton Staaf <robotboy@chromium.org> | 2014-11-11 12:05:08 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-13 03:14:26 +0000 |
commit | 079742b1ffb352cb0149d4fea232747e83dd6209 (patch) | |
tree | e0079651e3b04a07869d784547ec31eab22a628f /board/hoho/board.h | |
parent | 4340685cf9ab9335256d63a8a551faa85af4f892 (diff) | |
download | chrome-ec-079742b1ffb352cb0149d4fea232747e83dd6209.tar.gz |
USB: Enable finer grain control over init process
Previously enabling USB would automatically (using an
init hook) initialize the USB peripheral. This would
take over the GPIO lines assigned to the USB module.
This is not OK on Ryu for Case Closed Debug because it
interferes with the AP's access to the USB 2.0 lines
even when not in Case Close Debug mode.
This change adds a configuration option to inhibit this
default initialization of the USB peripheral. It also
renames the existing CONFIG_USB_INHIBIT to
CONFIG_USB_INHIBIT_CONNECT now that there are two
possible inhibitions.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Enable console on ryu_p2 and discovery-stm32f072 board
Verify that it works on both
Change-Id: I6734357131b4356e3d4164349d6c74deac196ce5
Reviewed-on: https://chromium-review.googlesource.com/229138
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'board/hoho/board.h')
-rw-r--r-- | board/hoho/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hoho/board.h b/board/hoho/board.h index 41c7dc40a7..0ed93413e5 100644 --- a/board/hoho/board.h +++ b/board/hoho/board.h @@ -29,7 +29,7 @@ #define CONFIG_SPI_CS_GPIO GPIO_PD_MCDP_SPI_CS_L #define CONFIG_USB #define CONFIG_USB_BOS -#define CONFIG_USB_INHIBIT +#define CONFIG_USB_INHIBIT_CONNECT #define CONFIG_USB_POWER_DELIVERY #define CONFIG_USB_PD_ALT_MODE #define CONFIG_USB_PD_DUAL_ROLE |