u-boot/arch/arm/mach-bcm283x/include/mach
Vincent Fazio 0a36afa823 arm: rpi: fallback to max clock rate for MMC clock
In rpi-firmware 25e2b597ebfb2495eab4816a276758dcc6ea21f1,
the GET_CLOCK_RATE mailbox property was changed to return the last
value set by SET_CLOCK_RATE.

https://github.com/raspberrypi/firmware/issues/1619#issuecomment-917025502

Due to this change in firmware behavior, bcm2835_get_mmc_clock now
returns a clock rate of zero since we do not issue SET_CLOCK_RATE.
This results in degraded MMC performance.

SET_CLOCK_RATE fixes the clock to a specific value and disables scaling
so is not an ideal solution.

Instead, fallback to GET_MAX_CLOCK_RATE in bcm2835_get_mmc_clock if
GET_CLOCK_RATE returns zero.

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
2023-03-24 14:43:20 +00:00
..
base.h rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit) 2020-07-10 14:10:43 -04:00
gpio.h dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
mbox.h arm: rpi: fallback to max clock rate for MMC clock 2023-03-24 14:43:20 +00:00
msg.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
sdhci.h ARM: bcm283x: Move BCM283x_BASE to a global variable 2019-11-24 10:46:27 +01:00
timer.h common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
wdog.h ARM: bcm283x: Move BCM283x_BASE to a global variable 2019-11-24 10:46:27 +01:00