diff mbox series

[2/6] riscv: sifive: fu740: kconfig: Enable support for Opencores I2C controller

Message ID 0ff9d882805e254a64ff5400bc9545b236b61e5a.1625065973.git.zong.li@sifive.com
State Accepted
Commit e2172aa83d587a1ee58a8349af65a098d7d27071
Delegated to: Andes
Headers show
Series Support multi-dtb in SPL on Unmatched board | expand

Commit Message

Zong Li June 30, 2021, 3:23 p.m. UTC
Enable the Opencores I2C controller on FU740

Signed-off-by: Zong Li <zong.li@sifive.com>
---
 arch/riscv/cpu/fu740/Kconfig   | 2 ++
 board/sifive/unmatched/Kconfig | 1 +
 2 files changed, 3 insertions(+)

Comments

Leo Liang July 6, 2021, 12:18 p.m. UTC | #1
On Wed, Jun 30, 2021 at 11:23:46PM +0800, Zong Li wrote:
> Enable the Opencores I2C controller on FU740
> 
> Signed-off-by: Zong Li <zong.li@sifive.com>
> ---
>  arch/riscv/cpu/fu740/Kconfig   | 2 ++
>  board/sifive/unmatched/Kconfig | 1 +
>  2 files changed, 3 insertions(+)
>

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
diff mbox series

Patch

diff --git a/arch/riscv/cpu/fu740/Kconfig b/arch/riscv/cpu/fu740/Kconfig
index 3a5f6e47f5..1dc052ba31 100644
--- a/arch/riscv/cpu/fu740/Kconfig
+++ b/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
diff --git a/board/sifive/unmatched/Kconfig b/board/sifive/unmatched/Kconfig
index 88b5883cae..fb2c1fbb58 100644
--- a/board/sifive/unmatched/Kconfig
+++ b/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