diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-05-13 17:01:41 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-14 22:53:44 +0000 |
commit | 6d01f2e16981710f1b07d2a02ea6edb2d61ff9b4 (patch) | |
tree | 4c834e8a666215f1f25b1e121bc67a323e73f1e2 /common | |
parent | ac78a35cf198e69cec291d1d645b89997da10ea5 (diff) | |
download | chrome-ec-6d01f2e16981710f1b07d2a02ea6edb2d61ff9b4.tar.gz |
samus: add PD MCU board
Initial patch for samus PD board. This configures GPIOs to match
samus 1.9.
BUG=chrome-os-partner:28350
BRANCH=none
TEST=none, no boards yet.
Change-Id: Ibc9d67325a1d9699b4e76e2998ab830ddbd0fb98
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/199660
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_protocol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 08381dcf2f..d9eb6259d6 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -669,8 +669,8 @@ void pd_task(void) break; case PD_STATE_SRC_DISCONNECTED: /* Vnc monitoring */ - cc1_volt = adc_read_channel(ADC_CH_CC1_PD); - cc2_volt = adc_read_channel(ADC_CH_CC2_PD); + cc1_volt = pd_adc_read(0); + cc2_volt = pd_adc_read(1); if ((cc1_volt < PD_SRC_VNC) || (cc2_volt < PD_SRC_VNC)) { pd_polarity = !(cc1_volt < PD_SRC_VNC); @@ -726,8 +726,8 @@ void pd_task(void) #ifdef CONFIG_USB_PD_DUAL_ROLE case PD_STATE_SNK_DISCONNECTED: /* Source connection monitoring */ - cc1_volt = adc_read_channel(ADC_CH_CC1_PD); - cc2_volt = adc_read_channel(ADC_CH_CC2_PD); + cc1_volt = pd_adc_read(0); + cc2_volt = pd_adc_read(1); if ((cc1_volt > PD_SNK_VA) || (cc2_volt > PD_SNK_VA)) { pd_polarity = !(cc1_volt > PD_SNK_VA); |