summaryrefslogtreecommitdiff
path: root/board/cr50/scratch_reg1.h
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@google.com>2019-02-20 13:48:42 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-06 06:51:01 -0800
commit50af447ed6ac7efb2776f97d6cb6920776272b29 (patch)
tree618e1a9b55042dfd80ba3e5ff386081775ee13ab /board/cr50/scratch_reg1.h
parent18ff0fd2603f8013b9b6798987fef5a8c3e53909 (diff)
downloadchrome-ec-50af447ed6ac7efb2776f97d6cb6920776272b29.tar.gz
cr50: add no ina support board property
Mistral also uses the ina pins as gpios. Add a board property for no ina support. Use that instead of the closed source set board property for the usb_i2c_enable code. BUG=b:124949444 BRANCH=cr50 TEST=flash on mistral. Make sure EN_PP3300_INA_L isn't asserted when ccd is enabled. Change-Id: If06a65bc4a1ef7b374a44fc53d65ea5daed336df Signed-off-by: Mary Ruthven <mruthven@google.com> Reviewed-on: https://chromium-review.googlesource.com/1480711 Commit-Ready: Mary Ruthven <mruthven@chromium.org> Tested-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/cr50/scratch_reg1.h')
-rw-r--r--board/cr50/scratch_reg1.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/board/cr50/scratch_reg1.h b/board/cr50/scratch_reg1.h
index 36eb266712..8be7783afa 100644
--- a/board/cr50/scratch_reg1.h
+++ b/board/cr50/scratch_reg1.h
@@ -75,6 +75,12 @@
#define BOARD_CLOSED_LOOP_RESET (1 << 18)
/*
+ * The board uses INA pins as GPIOs, so it can't support reading inas using usb
+ * i2c.
+ */
+#define BOARD_NO_INA_SUPPORT (1 << 19)
+
+/*
* Macro to capture all properties related to board strapping pins. This must be
* updated if additional strap related properties are added.
*/
@@ -82,6 +88,6 @@
| BOARD_NEEDS_SYS_RST_PULL_UP | BOARD_USE_PLT_RESET | \
BOARD_DEEP_SLEEP_DISABLED | BOARD_DETECT_AP_WITH_UART | \
BOARD_WP_DISABLE_DELAY | BOARD_CLOSED_SOURCE_SET1 | \
- BOARD_CLOSED_LOOP_RESET)
+ BOARD_CLOSED_LOOP_RESET | BOARD_NO_INA_SUPPORT)
#endif /* ! __EC_BOARD_CR50_SCRATCH_REG1_H */