u-boot/arch/arm/mach-bcm283x
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
..
include/mach arm: rpi: fallback to max clock rate for MMC clock 2023-03-24 14:43:20 +00:00
init.c common: board_r: drop initr_addr_map wrapper 2022-01-18 08:31:02 -05:00
Kconfig fdt: Enable OF_HAS_PRIOR_STAGE for most boards with OF_BOARD 2021-12-23 11:19:17 -05:00
lowlevel_init.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mbox.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
msg.c arm: rpi: fallback to max clock rate for MMC clock 2023-03-24 14:43:20 +00:00
phys2bus.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset.c reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00