]> git.baikalelectronics.ru Git - uboot.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)
commit1502642623fb0a3eb9b168ad8dafaffafa97717f
tree137923d9d45f73d083b8088967cfd1831e9364af
parent27cae6793e0e55fe1d9c36024990c473cb144444
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