mirror of
https://review.coreboot.org/flashrom.git
synced 2025-10-27 19:32:11 +01:00
nv_sma_spi: Add Nvidia SMA Programmer
Add initial support for System Management Agent (SMA) programmer. SMA is a SOC which is working as a side band management on Nvidia server board. One of its functionality is to flash firmware to other components. Test: 1. Build flashrom with this change. 2. Run operation: erase, write, read 3. All operations completed with expected performance. NV_SMA_SPI has been tested with the following SPI flash models: w25r128jw w25r64jv w25q16v Change-Id: I6b2522788db3dcee2b30faff29f605cede8c0eaf Co-Developed-by: Gilbert Chen <gilbertc@nvidia.com> Co-Developed-by: Willie Thai <wthai@nvidia.com> Signed-off-by: Willie Thai <wthai@nvidia.com> Signed-off-by: Gilbert Chen <gilbertc@nvidia.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/88816 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:
committed by
Anastasia Klimchuk
parent
c54d068418
commit
db43ab2989
@@ -81,6 +81,8 @@ struct io_mock {
|
||||
int (*libusb_submit_transfer)(void *state, struct libusb_transfer *transfer);
|
||||
void (*libusb_free_transfer)(void *state, struct libusb_transfer *transfer);
|
||||
int (*libusb_handle_events_timeout)(void *state, libusb_context *ctx, struct timeval *tv);
|
||||
int (*libusb_bulk_transfer)(void *state, libusb_device_handle *devh, unsigned char endpoint,
|
||||
unsigned char *data, int length, int *actual_length, unsigned int timeout);
|
||||
|
||||
/* POSIX File I/O */
|
||||
int (*iom_open)(void *state, const char *pathname, int flags, mode_t mode);
|
||||
|
||||
Reference in New Issue
Block a user