Todd Broch 6bc911d978 pd: Expand polarity logic to include Ra pull-down logic.
Original implemenation of polarity only addressed Rd.  This CL hopes
to address the addition of the Ra pull-down for powered accessories.

Truth table based on type-C specfication document is included in
source as well.

BRANCH=none
BUG=chrome-os-partner:28585
TEST=manual,

Setup:
  <insert hoho into samus type-C port>
  # from PD MCU console
  typec <port>

Result:
  See appropriate polarity.  For example,

  typec 1
  Port C1: CC1 445 mV  CC2 115 mV (polarity:CC1)
  Superspeed USB1

  <flip type-C accessory (hoho)>
  typec 1
  Port C1: CC1 119 mV  CC2 426 mV (polarity:CC2)
  Superspeed USB1

Also see correct polarity when just Rd is present.

Change-Id: I09073d731e4a6050281add3673cb4ec24c053da9
Signed-off-by: Todd Broch <tbroch@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/215666
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
2014-09-02 23:34:47 +00:00
2014-08-29 03:00:20 +00:00
2014-08-29 03:00:20 +00:00
2014-03-31 22:45:09 +00:00
2012-05-11 09:11:52 -07:00
2014-04-02 19:58:53 +00:00
2014-05-15 05:20:14 +00:00

For an overview of the Embedded Controller firmware, refer to

http://www.chromium.org/chromium-os/2014-firmware-summit
Description
No description provided
Readme 1.4 GiB
Languages
C 64.7%
Lasso 20.7%
ASL 3.6%
JavaScript 3.2%
C# 2.9%
Other 4.6%