diff options
author | andy.hu <andy.hu@starfivetech.com> | 2023-07-28 13:56:18 +0300 |
---|---|---|
committer | andy.hu <andy.hu@starfivetech.com> | 2023-07-28 13:56:18 +0300 |
commit | 39eb5e5464d4de7cb4367f7ccf2939ee52c60c5f (patch) | |
tree | 6d2a1ab0dc338005df394ccf37f9d09c4fa21b73 | |
parent | f1ad44f525915b4f5a3ba04eee3be6e15c08aa77 (diff) | |
parent | 7818499b71d2b5404ddf4b62bf1106710168af9a (diff) | |
download | u-boot-39eb5e5464d4de7cb4367f7ccf2939ee52c60c5f.tar.xz |
Merge branch 'CR_6806_MMC_evb_william.qiu' into 'jh7110-master'
CR_6806: spl: starfive: modify driver strength and slew rate
See merge request sdk/u-boot!63
-rw-r--r-- | arch/riscv/dts/starfive_evb.dts | 2 | ||||
-rw-r--r-- | board/starfive/evb/spl.c | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/riscv/dts/starfive_evb.dts b/arch/riscv/dts/starfive_evb.dts index 6f865f7094..19b8e5f1e0 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); |