diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-12-07 04:25:39 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-11 21:13:48 +0000 |
commit | 34fe8658abe4e6b63b3d1b5e727ba8c792110431 (patch) | |
tree | 0966fb21ba58a2616a239e35e3485b7599672583 /board/twinkie/injector.c | |
parent | a94a5561dc2a959e3cc586f0c5ca63f9de0a810a (diff) | |
download | chrome-ec-34fe8658abe4e6b63b3d1b5e727ba8c792110431.tar.gz |
pd: refactor pd policy layer request voltage functions
Remove common code across all PD policy layers to select the requested
voltage and build a Request Data Object (RDO).
BUG=none
BRANCH=samus
TEST=Load onto samus and connect zinger. Make sure we request the right
voltage (first 5V, then after initial contract is made, 20V). Make
sure input current limit is set appropriately by checking limit on EC
console using charger command.
Change-Id: Ic6bda5e23b2d7b7d710ffdf085e7fbc1b0c3add9
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/233673
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Shawn Nematbakhsh <shawnn@chromium.org>
Tested-by: Shawn Nematbakhsh <shawnn@chromium.org>
Diffstat (limited to 'board/twinkie/injector.c')
-rw-r--r-- | board/twinkie/injector.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/board/twinkie/injector.c b/board/twinkie/injector.c index 4f1ece6f78..03db1c4af5 100644 --- a/board/twinkie/injector.c +++ b/board/twinkie/injector.c @@ -66,11 +66,6 @@ static const struct res_cfg { #define CC_RD(cc) ((cc > PD_SRC_RD_THRESHOLD) && (cc < PD_SRC_VNC)) #define GET_POLARITY(cc1, cc2) (CC_RD(cc2) || CC_RA(cc1)) -/* Stub the function as we are not using the RX path */ -void pd_set_max_voltage(unsigned mv) -{ -} - /* we don't have the default DMA handlers */ void dma_event_interrupt_channel_3(void) { |