Attention is currently required from: Angel Pons, Neill Corlett. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/61288 )
Change subject: Add mediatek_i2c_spi interface ......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS1:
Ah, hmmm, I'm not sure but I think there are SMBus controller drivers that could […]
Thank you very much! it helps a lot to know what we are dealing with here.
I think the cannonical flashrom way would be to add this as part of the `internal` programmer which handles on-board flashing. We have all the infrastructure there to detect a specific board, handle what is necessary to enable writes and eventually decide what driver will be used.
Board detection and lifting write-protection is usually done in `board_enable.c`. From there one can call the initialization of a driver like `mstarddc_spi` (in this case with a hint if I2C or SMBus transfers should be used?).