drivers/i2c: stm32: Configure driver by compatible

Use compatible information to configure i2c stm32.
With this, driver version selection is done thanks to compatible
and it is not needed anymore to do this via Kconfig symbol
selection under soc/

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-04-12 15:53:44 +02:00 committed by Kumar Gala
commit 9580992b3e
16 changed files with 7 additions and 63 deletions

View file

@ -44,7 +44,7 @@
#include <stm32l0xx_ll_rcc.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_I2C_STM32_V2
#ifdef CONFIG_I2C_STM32
#include <stm32l0xx_ll_i2c.h>
#endif