]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive/fu540: kconfig: Enable support for Opencores I2C controller
authorPragnesh Patel <pragnesh.patel@sifive.com>
Sat, 14 Nov 2020 09:12:35 +0000 (14:42 +0530)
committerHeiko Schocher <hs@denx.de>
Sat, 28 Nov 2020 07:30:41 +0000 (08:30 +0100)
Enable support for SiFive FU540 Opencores I2C master controller.

Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/cpu/fu540/Kconfig
board/sifive/fu540/Kconfig

index ac3f183342f9ce271f13f3b5ad67614c824a47fa..61bd5c426ed0a02e6d65bb7f6d4c0c6a9239f218 100644 (file)
@@ -35,6 +35,8 @@ config SIFIVE_FU540
        imply SIFIVE_OTP
        imply DM_PWM
        imply PWM_SIFIVE
+       imply DM_I2C
+       imply SYS_I2C_OCORES
 
 if ENV_IS_IN_SPI_FLASH
 
index e70d1e53f9cf974d2811ac8f5fd65adeb13c8271..64fdbd44b4ad51ea4bcf7c03e1d22632d180d6a6 100644 (file)
@@ -47,5 +47,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply SPI_FLASH_ISSI
        imply SYSRESET
        imply SYSRESET_GPIO
+       imply CMD_I2C
 
 endif