Browse Source

riscv: sifive: fu740: kconfig: Enable support for Opencores I2C controller

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>
Zong Li 2 years ago
parent
commit
e2172aa83d
2 changed files with 3 additions and 0 deletions
  1. 2 0
      arch/riscv/cpu/fu740/Kconfig
  2. 1 0
      board/sifive/unmatched/Kconfig

+ 2 - 0
arch/riscv/cpu/fu740/Kconfig

@@ -35,3 +35,5 @@ config SIFIVE_FU740
 	imply SIFIVE_OTP
 	imply DM_PWM
 	imply PWM_SIFIVE
+	imply DM_I2C
+	imply SYS_I2C_OCORES

+ 1 - 0
board/sifive/unmatched/Kconfig

@@ -47,5 +47,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply PHY_MSCC
 	imply SYSRESET
 	imply SYSRESET_GPIO
+	imply CMD_I2C
 
 endif