forked from Minki/linux
2d945194cc
STM32G0 comes with STM32 bootloader in its system memory. Add support for some I2C bootloader commands as described in application notes AN2606 and AN4221, to enable STM32G0 UCSI firmware update. Upon probing, the driver needs to know the STM32G0 state: - In bootloader mode, STM32 G0 answers at i2c addr 0x51. - In running mode, STM32 G0 firmware may answer at two address. - The main address specified in DT is used for UCSI. - 0x51 addr can be re-used for FW controls like getting software version or jump to booloader request. So probe using the main firmware i2c address first, before attempting bootloader address (e.g. check for blank, erased or previously aborted firmware update). Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20220713120842.560902-4-fabrice.gasnier@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
altmodes | ||
mux | ||
tcpm | ||
tipd | ||
ucsi | ||
anx7411.c | ||
bus.c | ||
bus.h | ||
class.c | ||
class.h | ||
hd3ss3220.c | ||
Kconfig | ||
Makefile | ||
mux.c | ||
mux.h | ||
pd.c | ||
pd.h | ||
port-mapper.c | ||
qcom-pmic-typec.c | ||
retimer.c | ||
retimer.h | ||
rt1719.c | ||
stusb160x.c | ||
wusb3801.c |