u-boot-brain/arch/arm/mach-bcm283x
Jonathan Gray 8ae1f82988 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>
2018-04-05 13:17:43 +02:00
..
include/mach mmc: use core clock frequency in bcm2835 sdhost 2018-04-05 13:17:43 +02:00
init.c RPi: Enable caches for rpi2 2016-03-27 09:12:18 -04:00
Kconfig add support for Raspberry Pi Zero W 2017-12-04 09:59:02 -05:00
lowlevel_init.S Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
Makefile arm: rpi: Add a file to handle messages 2017-05-09 20:19:32 -04:00
mbox.c ARM: bcm2835: fix 64-bit build warning in mbox 2016-03-27 09:12:20 -04:00
msg.c mmc: use core clock frequency in bcm2835 sdhost 2018-04-05 13:17:43 +02:00
phys2bus.c ARM: bcm283x: don't always define CONFIG_BCM2835 2016-03-27 09:12:20 -04:00
reset.c bcm2835_wdt: support for the BCM2835/2836 watchdog 2017-05-09 20:30:08 -04:00