summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Hu <andy.hu@starfivetech.com>2023-07-28 14:23:59 +0300
committerAndy Hu <andy.hu@starfivetech.com>2023-07-28 14:23:59 +0300
commit6e41e1c5eab8cfe1a91afa546705096756da0429 (patch)
treea2b93c6a887f894a7b60c9745cd3eccef0aebd32
parentd4fbf8960686ea6687dbc5c9a5f885ef2aba229e (diff)
parent39eb5e5464d4de7cb4367f7ccf2939ee52c60c5f (diff)
downloadu-boot-6e41e1c5eab8cfe1a91afa546705096756da0429.tar.xz
Merge tag 'JH7110_515_SDK_v5.4.3' into vf2-devel
-rw-r--r--arch/riscv/dts/starfive_evb.dts2
-rw-r--r--board/starfive/evb/spl.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/riscv/dts/starfive_evb.dts b/arch/riscv/dts/starfive_evb.dts
index cd0255035e..2b49984630 100644
--- a/arch/riscv/dts/starfive_evb.dts
+++ b/arch/riscv/dts/starfive_evb.dts
@@ -246,6 +246,8 @@
};
&sdio0 {
+ assigned-clocks = <&clkgen JH7110_SDIO0_CLK_SDCARD>;
+ assigned-clock-rates = <50000000>;
fifo-depth = <32>;
bus-width = <4>;
status = "okay";
diff --git a/board/starfive/evb/spl.c b/board/starfive/evb/spl.c
index 8616a61479..9e5ce3588e 100644
--- a/board/starfive/evb/spl.c
+++ b/board/starfive/evb/spl.c
@@ -100,6 +100,17 @@ void board_init_f(ulong dummy)
/* reset emmc */
SYS_IOMUX_DOEN(22, LOW);
SYS_IOMUX_DOUT(22, 19);
+ SYS_IOMUX_SET_DS(64, 2);
+ SYS_IOMUX_SET_SLEW(64, 1);
+ SYS_IOMUX_SET_DS(65, 1);
+ SYS_IOMUX_SET_DS(66, 1);
+ SYS_IOMUX_SET_DS(67, 1);
+ SYS_IOMUX_SET_DS(68, 1);
+ SYS_IOMUX_SET_DS(69, 1);
+ SYS_IOMUX_SET_DS(70, 1);
+ SYS_IOMUX_SET_DS(71, 1);
+ SYS_IOMUX_SET_DS(72, 1);
+ SYS_IOMUX_SET_DS(73, 1);
/* reset sdio */
SYS_IOMUX_DOEN(24, LOW);
SYS_IOMUX_DOUT(24, 66);