]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: stm32f7: add support for stm32mp25 soc
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 15 Dec 2023 17:06:10 +0000 (18:06 +0100)
committerWolfram Sang <wsa@kernel.org>
Thu, 18 Jan 2024 20:10:44 +0000 (21:10 +0100)
commit90f9b1406236853bd524ddde86cc5a945690c6b7
treeea1ffcb6e949f9081a7d2cf3ed5d5240f4c80191
parenta058b24c08023ea0ea0a7c38e6845f1d25139a22
i2c: stm32f7: add support for stm32mp25 soc

The stm32mp25 has only a single interrupt line used for both
events and errors. In order to cope with that, reorganise the
error handling code so that it can be called either from the
common handler (used in case of SoC having only a single IT line)
and the error handler for others.
The CR1 register also embeds a new FMP bit, necessary when running
at Fast Mode Plus frequency. This bit should be used instead of
the SYSCFG bit used on other platforms.
Add a new compatible to distinguish between the SoCs and two
boolean within the setup structure in order to know if the
platform has a single/multiple IT lines and if the FMP bit
within CR1 is available or not.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-stm32f7.c