]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: Enable DM_I2C for all sunxi boards
authorSamuel Holland <samuel@sholland.org>
Fri, 8 Oct 2021 05:17:25 +0000 (00:17 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 12 Oct 2021 10:01:27 +0000 (11:01 +0100)
Now that the last users of legacy I2C (outside of SPL) have been
resolved, we can enable DM_I2C at the sunxi architecture level.

Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/Kconfig
arch/arm/mach-sunxi/Kconfig

index ebb19272708d18506fb9d8d7e5094e016ce51856..d8c041a87733d636f5385d039c4ccb2a14e28d6f 100644 (file)
@@ -1028,6 +1028,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
index c1e762a51846dc72dd0dabfca5229a79ba49dfd2..2c18cf02d1aafc0b48607815687ea705097f219b 100644 (file)
@@ -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
@@ -326,7 +325,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
@@ -909,7 +907,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