riscv: sifive: fu740: kconfig: Enable support for Opencores I2C controller
authorZong Li <zong.li@sifive.com>
Wed, 30 Jun 2021 15:23:46 +0000 (23:23 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 6 Jul 2021 12:24:25 +0000 (20:24 +0800)
Enable the Opencores I2C controller on FU740

Signed-off-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/fu740/Kconfig
board/sifive/unmatched/Kconfig

index 3a5f6e4..1dc052b 100644 (file)
@@ -35,3 +35,5 @@ config SIFIVE_FU740
        imply SIFIVE_OTP
        imply DM_PWM
        imply PWM_SIFIVE
+       imply DM_I2C
+       imply SYS_I2C_OCORES
index 88b5883..fb2c1fb 100644 (file)
@@ -47,5 +47,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply PHY_MSCC
        imply SYSRESET
        imply SYSRESET_GPIO
+       imply CMD_I2C
 
 endif