summaryrefslogtreecommitdiff
path: root/driver/tcpm/anx7447.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-04-30 10:31:57 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-05-01 02:13:29 -0700
commita5695793ba99a4b2af8f95e31a3a8ba23df4d567 (patch)
tree00d0804ff40277a3b993a3e101eee06d7ffd2e9f /driver/tcpm/anx7447.h
parentbbb5edb220834dc563893311fc371526087af708 (diff)
downloadchrome-ec-a5695793ba99a4b2af8f95e31a3a8ba23df4d567.tar.gz
anx7447: convert automatic OCM erase into command
We do not want to erase the OCM flash automatically so we can ensure that we fix our supply chain issues. Add a command that will erase the OCM if needed. BRANCH=none BUG=b:77658388 TEST=verified command works on yorp Change-Id: Iaf6ada3b1e223d15ae0d9624bdcc54b90cb33b64 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1035428 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'driver/tcpm/anx7447.h')
-rw-r--r--driver/tcpm/anx7447.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/tcpm/anx7447.h b/driver/tcpm/anx7447.h
index eac4057967..6998723f7b 100644
--- a/driver/tcpm/anx7447.h
+++ b/driver/tcpm/anx7447.h
@@ -33,7 +33,7 @@
/*
* This section of defines are only required to support the config option
- * CONFIG_USB_PD_TCPM_ANX7447_OCM_ERASE.
+ * CONFIG_USB_PD_TCPM_ANX7447_OCM_ERASE_COMMAND.
*/
/* SPI registers used for OCM flash operations */
#define ANX7447_DELAY_IN_US (20*1000)
@@ -70,7 +70,7 @@
/* ADDR_GPIO_CTRL_0 bit definitions */
#define ANX7447_ADDR_GPIO_CTRL_0_SPI_WP (1<<7)
#define ANX7447_ADDR_GPIO_CTRL_0_SPI_CLK_ENABLE (1<<6)
-/* End of defines used for CONFIG_USB_PD_TCPM_ANX7447_OCM_ERASE */
+/* End of defines used for CONFIG_USB_PD_TCPM_ANX7447_OCM_ERASE_COMMAND */
struct anx7447_i2c_addr {
int tcpc_slave_addr;