summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-10-29 16:18:35 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-30 09:57:05 +0000
commitbd9a53f3229018ec3fce077118c7e33e0561453c (patch)
tree4e7ec7c40b07565eed3c482449b031c909b765fc
parent498abf833cad27c5014cdb2d1511f3860703ba82 (diff)
downloadchrome-ec-bd9a53f3229018ec3fce077118c7e33e0561453c.tar.gz
twinkie: fix INA reference in PD injector
Update the INA naming in the optional PD code to use Twinkie as PD source/sink. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=none Change-Id: Ib06e274c0d916d6c84107546a8701fc80b4e6ab1 Reviewed-on: https://chromium-review.googlesource.com/226363 Reviewed-by: Vic Yang <victoryang@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/twinkie/usb_pd_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/twinkie/usb_pd_config.h b/board/twinkie/usb_pd_config.h
index 08a1dd3a15..649b7a802e 100644
--- a/board/twinkie/usb_pd_config.h
+++ b/board/twinkie/usb_pd_config.h
@@ -8,7 +8,7 @@
#ifndef __USB_PD_CONFIG_H
#define __USB_PD_CONFIG_H
-#include "ina231.h"
+#include "ina2xx.h"
/* Port and task configuration */
#define PD_PORT_COUNT 1
@@ -137,8 +137,8 @@ static inline void pd_tx_init(void)
gpio_config_module(MODULE_USB_PD, 1);
/* Detect when VBUS crosses the 4.5V threshold (1.25mV/bit) */
- ina231_write(0, INA231_REG_ALERT, 4500 * 100 / 125);
- ina231_write(0, INA231_REG_MASK, INA231_MASK_EN_BOL);
+ ina2xx_write(0, INA2XX_REG_ALERT, 4500 * 100 / 125);
+ ina2xx_write(0, INA2XX_REG_MASK, INA2XX_MASK_EN_BOL);
/* start as a power consumer */
gpio_set_level(GPIO_CC1_RD, 0);
gpio_set_level(GPIO_CC2_RD, 0);