diff options
author | Scott <scollyer@chromium.org> | 2017-01-24 10:55:46 -0800 |
---|---|---|
committer | Scott Collyer <scollyer@chromium.org> | 2017-01-26 16:10:30 +0000 |
commit | 44676699b08f7f6ccaba3d8b89a41c79f3c29cb2 (patch) | |
tree | 71f3f550f0a4e54973d086c7941681da9cacf7de /board/dingdong/board.h | |
parent | 45817826e17528782d65f7571b1224ef99f67faa (diff) | |
download | chrome-ec-44676699b08f7f6ccaba3d8b89a41c79f3c29cb2.tar.gz |
pd: Move PD_DEFAULT_STATE to a common define in usb_pd.h
Servo_v4 requires the ability to have a different default state per
port. In previous devices, the assumption was that each supported port
had the same default usb pd state and power role. This CL moves the
by the default power role which in turn is derived from
CONFIG_USB_PD_DUAL_ROLE. In addiiton to moving the location, it now
uses 'port' as argument so it can be port specific if required.
PD_DEFAULT_STATE was a board.h specific config, but in practice each
instance used to date was set to PD_STATE_SNK_DISCONNECTED if
CONFIG_USB_PD_DUAL_ROLE was defined and set to
PD_STATE_SRC_DISCONNECTED otherwise.
BUG=chrome-os-partner:61878
BRANCH=servo
TEST=Manual run 'make -j buildall' to verify that all instances of
PD_DEFAULT_STATE were removed.
Change-Id: Iaf40718668732f525485ed7942ee7fc246d3f75d
Signed-off-by: Scott <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/431787
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/dingdong/board.h')
-rw-r--r-- | board/dingdong/board.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/board/dingdong/board.h b/board/dingdong/board.h index 91a8c8b2ea..4c33b4ba45 100644 --- a/board/dingdong/board.h +++ b/board/dingdong/board.h @@ -78,9 +78,6 @@ enum usb_strings { USB_STR_COUNT }; -/* we are acting only as a sink */ -#define PD_DEFAULT_STATE PD_STATE_SNK_DISCONNECTED - /* we are never a source : don't care about power supply */ #define PD_POWER_SUPPLY_TURN_ON_DELAY 0 /* us */ #define PD_POWER_SUPPLY_TURN_OFF_DELAY 0 /* us */ |