]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: hisilicon: hikey: Fix eMMC with latest ATF & U-Boot
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 15 Aug 2017 16:18:16 +0000 (17:18 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 20 Aug 2017 13:54:31 +0000 (09:54 -0400)
commitfb53e7eb60567dae2181a3d55f51e72e03a2aac6
tree746c4d0590b7c4b5ad3a72095423c5ddfabb7e19
parent42a9f147d87b6e4442d6c3074c34b08854f36ef5
ARM: hisilicon: hikey: Fix eMMC with latest ATF & U-Boot

ATF can leave the MMC IP in a state where U-Boot mmc driver
can't enumerate the eMMC.

This patch provides a mmc0_reset_clk() function like we
already so do sd card controller which resets the IP
when entering U-Boot.

With this patch applied eMMC partitions are successfully
enumerated again.

=> mmc dev 0
switch to partitions #0, OK
mmc0(part 0) is current device
=> mmc part

Partition Map for MMC device 0  --   Partition Type: EFI

Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
  1 0x00000800 0x00000fff "vrl"
attrs: 0x0000000000000000
type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
guid: 496847ab-56a1-4cd5-a1ad-47f4acf055c9
  2 0x00001000 0x000017ff "vrl_backup"
attrs: 0x0000000000000000
type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
guid: 61a36fc1-8efb-4899-84d8-b61642efa723
  3 0x00001800 0x00001fff "mcuimage"
<snip>

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
board/hisilicon/hikey/hikey.c