]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive: fu740: Support i2c in spl
authorZong Li <zong.li@sifive.com>
Wed, 30 Jun 2021 15:23:47 +0000 (23:23 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 6 Jul 2021 12:24:25 +0000 (20:24 +0800)
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>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/fu740/Kconfig
arch/riscv/dts/fu740-c000-u-boot.dtsi

index 1dc052ba31b37fd426915b94dbdc5df5eddf95f9..8e54310b9cbf6b1be49d40c67a9b193fae20d530 100644 (file)
@@ -37,3 +37,4 @@ config SIFIVE_FU740
        imply PWM_SIFIVE
        imply DM_I2C
        imply SYS_I2C_OCORES
+       imply SPL_I2C_SUPPORT
index a5d0688b06e7f0bffd9d72bca0437515e1bfc567..a6f7a0873ee10f2c18f570ff2f36d6d7145166fd 100644 (file)
        u-boot,dm-spl;
 };
 
+&i2c0 {
+       u-boot,dm-spl;
+};
+
 &eth0 {
        assigned-clocks = <&prci PRCI_CLK_GEMGXLPLL>;
        assigned-clock-rates = <125125000>;