mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
Add mediatek_i2c_spi interface
Add a spi_master interface supporting MediaTek MST9U ISP mode. Autodetect the bus type via I2C_FUNC_I2C, and use the appropriate read/write commands, in case the MST9U is attached to smbus. TEST=Successfully programmed SPI on test hardware. Change-Id: I24adb14e7b4f7160e1c3ff941774064d5a81e820 Signed-off-by: Neill Corlett <corlett@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/61288 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
55aa056c74
commit
e98b2d1184
@ -96,6 +96,7 @@ config_serprog = get_option('config_serprog')
|
||||
config_usbblaster_spi = get_option('config_usbblaster_spi')
|
||||
config_stlinkv3_spi = get_option('config_stlinkv3_spi')
|
||||
config_lspcon_i2c_spi = get_option('config_lspcon_i2c_spi')
|
||||
config_mediatek_i2c_spi = get_option('config_mediatek_i2c_spi')
|
||||
config_realtek_mst_i2c_spi = get_option('config_realtek_mst_i2c_spi')
|
||||
config_print_wiki= get_option('print_wiki')
|
||||
config_default_programmer_name = get_option('default_programmer_name')
|
||||
@ -345,6 +346,10 @@ if config_lspcon_i2c_spi
|
||||
srcs += 'lspcon_i2c_spi.c'
|
||||
cargs += '-DCONFIG_LSPCON_I2C_SPI=1'
|
||||
endif
|
||||
if config_mediatek_i2c_spi
|
||||
srcs += 'mediatek_i2c_spi.c'
|
||||
cargs += '-DCONFIG_MEDIATEK_I2C_SPI=1'
|
||||
endif
|
||||
if config_realtek_mst_i2c_spi
|
||||
srcs += 'realtek_mst_i2c_spi.c'
|
||||
cargs += '-DCONFIG_REALTEK_MST_I2C_SPI=1'
|
||||
|
Reference in New Issue
Block a user