summaryrefslogtreecommitdiff
path: root/chip/g
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2020-07-16 08:18:54 +1000
committerCommit Bot <commit-bot@chromium.org>2020-07-22 01:03:10 +0000
commitf2711530bf8dfb764584cc1e35c35a428c90cbd0 (patch)
tree117def8a64a627bcffddc01ed6c60103fd470972 /chip/g
parentccacb7fc9378c4c00a39b2fbf913128c87e00b7f (diff)
downloadchrome-ec-f2711530bf8dfb764584cc1e35c35a428c90cbd0.tar.gz
usb_spi: add support for custom SYS_RST and EC_RST setup
Don't touch the SYS_RST_L or EC_RST_L signals when flashing the AP if flashrom is run with custom_rst=True. BUG=b:154885210 TEST=manual on bob ecrst on flashrom -p raiden_debug_spi:target=EC -r ec.bin ecrst on flashrom -p raiden_debug_spi:target=AP,custom_rst=True -r ap.bin check ecrst is still on flashrom -p raiden_debug_spi:target=AP -r ap.bin Change-Id: Ia1ab8c853c25ced994e053c9e19a18d0d0f1cb45 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2301239 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/g')
-rw-r--r--chip/g/usb_spi.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/chip/g/usb_spi.h b/chip/g/usb_spi.h
index 7a3d5652b3..65be060616 100644
--- a/chip/g/usb_spi.h
+++ b/chip/g/usb_spi.h
@@ -63,16 +63,17 @@ enum usb_spi_error {
};
enum usb_spi_request {
- USB_SPI_REQ_ENABLE = 0x0000,
- USB_SPI_REQ_DISABLE = 0x0001,
- USB_SPI_REQ_ENABLE_AP = 0x0002,
- USB_SPI_REQ_ENABLE_EC = 0x0003,
- USB_SPI_REQ_ENABLE_H1 = 0x0004,
- USB_SPI_REQ_RESET = 0x0005,
- USB_SPI_REQ_BOOT_CFG = 0x0006,
- USB_SPI_REQ_SOCKET = 0x0007,
- USB_SPI_REQ_SIGNING_START = 0x0008,
- USB_SPI_REQ_SIGNING_SIGN = 0x0009,
+ USB_SPI_REQ_ENABLE = 0x0000,
+ USB_SPI_REQ_DISABLE = 0x0001,
+ USB_SPI_REQ_ENABLE_AP = 0x0002,
+ USB_SPI_REQ_ENABLE_EC = 0x0003,
+ USB_SPI_REQ_ENABLE_H1 = 0x0004,
+ USB_SPI_REQ_RESET = 0x0005,
+ USB_SPI_REQ_BOOT_CFG = 0x0006,
+ USB_SPI_REQ_SOCKET = 0x0007,
+ USB_SPI_REQ_SIGNING_START = 0x0008,
+ USB_SPI_REQ_SIGNING_SIGN = 0x0009,
+ USB_SPI_REQ_ENABLE_AP_CUSTOM = 0x000a,
};
/* USB SPI device bitmasks */