* updated libkcddb (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / architecture / riscv64 / package / u-boot / 0004-riscv-sifive-fu740-kconfig-Enable-support-for-Openco.patch
blob7f21f3ea920a92df7d9a456e76e0279e2397830e
1 From feb5ac0bc029c8199bc29ab5b2ddf66eaa533843 Mon Sep 17 00:00:00 2001
2 From: Zong Li <zong.li@sifive.com>
3 Date: Wed, 30 Jun 2021 23:23:46 +0800
4 Subject: [PATCH 04/16] riscv: sifive: fu740: kconfig: Enable support for
5 Opencores I2C controller
7 Enable the Opencores I2C controller on FU740
9 Signed-off-by: Zong Li <zong.li@sifive.com>
10 Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
11 ---
12 arch/riscv/cpu/fu740/Kconfig | 2 ++
13 board/sifive/unmatched/Kconfig | 1 +
14 2 files changed, 3 insertions(+)
16 diff --git a/arch/riscv/cpu/fu740/Kconfig b/arch/riscv/cpu/fu740/Kconfig
17 index 3a5f6e4..1dc052b 100644
18 --- a/arch/riscv/cpu/fu740/Kconfig
19 +++ b/arch/riscv/cpu/fu740/Kconfig
20 @@ -35,3 +35,5 @@ config SIFIVE_FU740
21 imply SIFIVE_OTP
22 imply DM_PWM
23 imply PWM_SIFIVE
24 + imply DM_I2C
25 + imply SYS_I2C_OCORES
26 diff --git a/board/sifive/unmatched/Kconfig b/board/sifive/unmatched/Kconfig
27 index 88b5883..fb2c1fb 100644
28 --- a/board/sifive/unmatched/Kconfig
29 +++ b/board/sifive/unmatched/Kconfig
30 @@ -47,5 +47,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
31 imply PHY_MSCC
32 imply SYSRESET
33 imply SYSRESET_GPIO
34 + imply CMD_I2C
36 endif
37 --
38 2.7.4