mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +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
8
Makefile
8
Makefile
@ -482,6 +482,9 @@ CONFIG_STLINKV3_SPI ?= yes
|
||||
# Disables LSPCON support until the i2c helper supports multiple systems.
|
||||
CONFIG_LSPCON_I2C_SPI ?= no
|
||||
|
||||
# Disables MediaTek support until the i2c helper supports multiple systems.
|
||||
CONFIG_MEDIATEK_I2C_SPI ?= no
|
||||
|
||||
# Disables REALTEK_MST support until the i2c helper supports multiple systems.
|
||||
CONFIG_REALTEK_MST_I2C_SPI ?= no
|
||||
|
||||
@ -698,6 +701,11 @@ FEATURE_FLAGS += -D'CONFIG_LSPCON_I2C_SPI=1'
|
||||
PROGRAMMER_OBJS += lspcon_i2c_spi.o
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_MEDIATEK_I2C_SPI), yes)
|
||||
FEATURE_FLAGS += -D'CONFIG_MEDIATEK_I2C_SPI=1'
|
||||
PROGRAMMER_OBJS += mediatek_i2c_spi.o
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_REALTEK_MST_I2C_SPI), yes)
|
||||
FEATURE_FLAGS += -D'CONFIG_REALTEK_MST_I2C_SPI=1'
|
||||
PROGRAMMER_OBJS += realtek_mst_i2c_spi.o
|
||||
|
Reference in New Issue
Block a user