diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-06-09 15:03:35 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-11 02:22:50 +0000 |
commit | b50e5a8b3066cdab6cb98f25038ef8649410ce2a (patch) | |
tree | 54d207d5e9f8153f017711f63649e6024ba0174b /board/twinkie/sniffer.c | |
parent | 5822d01f99f09443dc81dd9a85143047a0e1a1c7 (diff) | |
download | chrome-ec-b50e5a8b3066cdab6cb98f25038ef8649410ce2a.tar.gz |
twinkie: add config to behave as a PD message injector
Add a compile-time configuration to make Twinkie behave as
a USB Power Delivery consumer/provider device rather than a
transparent sniffer.
To use it, edit board/twinkie/ec.tasklist:
enable the PD task and comment out the SNIFFER task.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=connect it to a Fruitpie and use "pd charger" command on Twinkie
console, see the Fruitpie receiving the source capabilities and
answering.
Change-Id: Ic2b4ba2d166ea1d3f5f9be410453a030a4ee7b68
Reviewed-on: https://chromium-review.googlesource.com/204168
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/twinkie/sniffer.c')
-rw-r--r-- | board/twinkie/sniffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/twinkie/sniffer.c b/board/twinkie/sniffer.c index b9240e5072..5d6fdcc9e0 100644 --- a/board/twinkie/sniffer.c +++ b/board/twinkie/sniffer.c @@ -100,7 +100,7 @@ USB_DECLARE_EP(USB_EP_SNIFFER, ep_tx, ep_tx, ep_reset); #define EXTI_COMP 21 /* Timer used for RX clocking */ -#define TIM_RX TIM_CLOCK_PD_RX +#define TIM_RX 1 /* Clock divider for RX edges timings (2.4Mhz counter from 48Mhz clock) */ #define RX_CLOCK_DIV (20 - 1) |