uboot-hifiveu: add bootloader package for HiFive Ux40 boards
[openwrt/staging/wigyori.git] / package / boot / uboot-hifiveu / patches / 0004-riscv-sifive-fu740-kconfig-Enable-support-for-Openco.patch
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
6
7 Enable the Opencores I2C controller on FU740
8
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(+)
15
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
35
36 endif
37 --
38 2.7.4
39