diff mbox series

[3/6] riscv: sifive: fu740: Support i2c in spl

Message ID b509b39ec54a1c93fce1ac0ffae56a676f386e0e.1625065973.git.zong.li@sifive.com
State Accepted
Commit 564d630e2653901f1f115a933a7390f884b9a24f
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 SPL_I2C_SUPPORT for fu740, and add 'u-boot,dm-spl' property in
i2c node.

Signed-off-by: Zong Li <zong.li@sifive.com>
---
 arch/riscv/cpu/fu740/Kconfig          | 1 +
 arch/riscv/dts/fu740-c000-u-boot.dtsi | 4 ++++
 2 files changed, 5 insertions(+)

Comments

Leo Liang July 6, 2021, 12:19 p.m. UTC | #1
On Wed, Jun 30, 2021 at 11:23:47PM +0800, Zong Li wrote:
> Enable SPL_I2C_SUPPORT for fu740, and add 'u-boot,dm-spl' property in
> i2c node.
> 
> Signed-off-by: Zong Li <zong.li@sifive.com>
> ---
>  arch/riscv/cpu/fu740/Kconfig          | 1 +
>  arch/riscv/dts/fu740-c000-u-boot.dtsi | 4 ++++
>  2 files changed, 5 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 1dc052ba31..8e54310b9c 100644
--- a/arch/riscv/cpu/fu740/Kconfig
+++ b/arch/riscv/cpu/fu740/Kconfig
@@ -37,3 +37,4 @@  config SIFIVE_FU740
 	imply PWM_SIFIVE
 	imply DM_I2C
 	imply SYS_I2C_OCORES
+	imply SPL_I2C_SUPPORT
diff --git a/arch/riscv/dts/fu740-c000-u-boot.dtsi b/arch/riscv/dts/fu740-c000-u-boot.dtsi
index a5d0688b06..a6f7a0873e 100644
--- a/arch/riscv/dts/fu740-c000-u-boot.dtsi
+++ b/arch/riscv/dts/fu740-c000-u-boot.dtsi
@@ -95,6 +95,10 @@ 
 	u-boot,dm-spl;
 };
 
+&i2c0 {
+	u-boot,dm-spl;
+};
+
 &eth0 {
 	assigned-clocks = <&prci PRCI_CLK_GEMGXLPLL>;
 	assigned-clock-rates = <125125000>;