servo: add gsc_fw_wp_atboot_state control
Regardless of the main servo device, if there
is a GSC console, we want to be able to get and
set the atboot write protect value that the GSC
will use after the GSC reboots.
BUG=b:416600474
TEST=none
Change-Id: I85acf42271c29d530bf58d553e93a107ff4f3df2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/hdctools/+/6557589
Tested-by: Jett Rink <jettrink@google.com>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Commit-Queue: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: 488603086791@cloudbuild.gserviceaccount.com <488603086791@cloudbuild.gserviceaccount.com>
diff --git a/servo/data/ccd_cr50.xml b/servo/data/ccd_cr50.xml
index a6d6ae8..5227f41 100644
--- a/servo/data/ccd_cr50.xml
+++ b/servo/data/ccd_cr50.xml
@@ -111,12 +111,6 @@
init="force_off" />
</control>
<control>
- <name>fw_wp_atboot_state</name>
- <doc>Used to turn fw wp off and on persistently</doc>
- <params interface="9" drv="fw_wp_ccd" input_type="str"
- atboot="yes" />
- </control>
- <control>
<name>ccd_cpu_fw_spi</name>
<doc>Enable SPI mode for flashing CPU firmware over CCD</doc>
<params interface="servo" drv="macro" map="onoff">
diff --git a/servo/data/cr50.xml b/servo/data/cr50.xml
index c77970b..4db3ba5 100644
--- a/servo/data/cr50.xml
+++ b/servo/data/cr50.xml
@@ -309,6 +309,13 @@
></params>
</control>
<control>
+ <name>gsc_fw_wp_atboot_state</name>
+ <alias>fw_wp_atboot_state</alias>
+ <doc>Used to update GSC's the write protection state at GSC boot</doc>
+ <params interface="9" drv="fw_wp_ccd" input_type="str"
+ atboot="yes" />
+ </control>
+ <control>
<name>gsc_device_state_pcr0</name>
<doc>Get the current pcr0 value from gsc</doc>
<params cmd="get" uart_cmd="ccdstate"