mmc: bcm2835-sdhost: Support underclocking
authorPhil Elwell <phil@raspberrypi.org>
Mon, 22 Jan 2018 12:17:27 +0000 (12:17 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:41:13 +0000 (17:41 +0000)
commit342b79cbab5335f7431530c4d9ee35f0bce97ede
tree450a3a49b42b5fe85d0d985010ec072d603bfce0
parent84924fa472696cc50b753352a47e15108522aa08
mmc: bcm2835-sdhost: Support underclocking

Support underclocking of the SD bus in two ways:
1. using the max-frequency DT property (which currently has no DT
   parameter), and
2. using the exiting sd_overclock parameter.

The two methods differ slightly - in the former the MMC subsystem is
aware of the underclocking, while in the latter it isn't - but the
end results should be the same.

See: https://github.com/raspberrypi/linux/issues/2350

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/mmc/host/bcm2835-sdhost.c