Re: [PATCH 11/11] sunxi: Enable DM_I2C for all sunxi boards

2021-08-22 Thread Heiko Schocher
Hello Samuel,

On 22.08.21 01:05, Samuel Holland wrote:
> Now that the last users of legacy I2C (outside of SPL) have been
> resolved, we can enable DM_I2C at the sunxi architecture level.
> 
> Signed-off-by: Samuel Holland 
> ---
> 
>  arch/arm/Kconfig| 1 +
>  arch/arm/mach-sunxi/Kconfig | 3 ---
>  2 files changed, 1 insertion(+), 3 deletions(-)

Reviewed-by: Heiko Schocher 

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: h...@denx.de


[PATCH 11/11] sunxi: Enable DM_I2C for all sunxi boards

2021-08-21 Thread Samuel Holland
Now that the last users of legacy I2C (outside of SPL) have been
resolved, we can enable DM_I2C at the sunxi architecture level.

Signed-off-by: Samuel Holland 
---

 arch/arm/Kconfig| 1 +
 arch/arm/mach-sunxi/Kconfig | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0720647e876..ae5cc13916c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1000,6 +1000,7 @@ config ARCH_SUNXI
select DM
select DM_ETH
select DM_GPIO
+   select DM_I2C if I2C
select DM_KEYBOARD
select DM_MMC if MMC
select DM_SCSI if SCSI
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 82b598e6e7f..4b805c67423 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -165,7 +165,6 @@ endif
 
 config MACH_SUNXI_H3_H5
bool
-   select DM_I2C
select PHY_SUN4I_USB
select SUNXI_DE2
select SUNXI_DRAM_DW
@@ -322,7 +321,6 @@ config MACH_SUN50I
bool "sun50i (Allwinner A64)"
select ARM64
select SPI
-   select DM_I2C
select DM_SPI if SPI
select DM_SPI_FLASH
select PHY_SUN4I_USB
@@ -929,7 +927,6 @@ config VIDEO_LCD_BL_PWM_ACTIVE_LOW
 config VIDEO_LCD_PANEL_I2C
bool "LCD panel needs to be configured via i2c"
depends on VIDEO_SUNXI
-   select DM_I2C
select DM_I2C_GPIO
---help---
Say y here if the LCD panel needs to be configured via i2c. This
-- 
2.31.1