]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: bcm2835-host: let firmware manage the clock divisor
authorVincent Fazio <vfazio@xes-inc.com>
Tue, 14 Sep 2021 18:19:19 +0000 (13:19 -0500)
committerPeter Robinson <pbrobinson@gmail.com>
Fri, 24 Mar 2023 14:43:20 +0000 (14:43 +0000)
commit85bdd28d2bb0827f311913e00e4e338f8e4e6565
tree137923d9d45f73d083b8088967cfd1831e9364af
parent0a36afa82356b89ffc66ed7557d115186c5bd7f1
mmc: bcm2835-host: let firmware manage the clock divisor

Newer firmware can manage the SDCDIV clock divisor register, allowing
the divisor to scale with the core as necessary.

Leverage this ability if the firmware supports it.

Adapted from the following raspberrypi Linux kernel commit:

  bcm2835-sdhost: Firmware manages the clock divisor
  https://github.com/raspberrypi/linux/commit/08532d242d7702ae0add95096aa49c5e96e066e2

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
arch/arm/mach-bcm283x/include/mach/mbox.h
arch/arm/mach-bcm283x/include/mach/msg.h
arch/arm/mach-bcm283x/msg.c
drivers/mmc/bcm2835_sdhost.c