]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: use core clock frequency in bcm2835 sdhost
authorJonathan Gray <jsg@jsg.id.au>
Sat, 17 Mar 2018 05:15:48 +0000 (16:15 +1100)
committerAlexander Graf <agraf@suse.de>
Thu, 5 Apr 2018 11:17:43 +0000 (13:17 +0200)
commit8ae1f8298820a19380bafc07ad554bd629cc27be
tree3273708813ed59db52cdbd6c29904509c80eae44
parent79153ff0c4383ff45d11be1e52ad94a1d24240f8
mmc: use core clock frequency in bcm2835 sdhost

In raspberrypi-firmware 7fdcd00e00a42a1c91e8bd6f5eb8352fe9358557 and
later start.elf now sets the EMMC clock to 200 MHz.

According to Phil Elwell in
https://github.com/raspberrypi/firmware/issues/953
the SDHost controller shares the core/VPU clock and doesn't use
the EMMC clock.

Use the core clock id when determining the frequency to allow
U-Boot to work with recent versions of raspberrypi-firmware.
Otherwise U-Boot hangs at:

U-Boot 2018.03 (Mar 14 2018 - 20:36:00 +1100)

DRAM:  948 MiB
RPI 3 Model B (0xa02082)
MMC:   mmc@7e202000: 0, sdhci@7e300000: 1
Loading Environment from FAT...

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/arm/mach-bcm283x/include/mach/msg.h
arch/arm/mach-bcm283x/msg.c
drivers/mmc/bcm2835_sdhci.c
drivers/mmc/bcm2835_sdhost.c