]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: sdhci-of-aspeed: Allow max-frequency limitation of SDCLK
authorAndrew Jeffery <andrew@aj.id.au>
Mon, 2 Sep 2019 03:58:42 +0000 (13:28 +0930)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000 (15:58 +0200)
commit0a0e8d7501cda79c9b20f6011814e2ec9b473ade
treea354f1351ed85a1979fba13605e49c9580dd26aa
parent7b954cdf33da3d3bd8046c499426b7433724f82e
mmc: sdhci-of-aspeed: Allow max-frequency limitation of SDCLK

Add a get_max_clock() handler to sdhci-of-aspeed to report f_max as the
maximum clock rate if it is set. This enables artificial limitation of
the bus speed via max-frequency in the devicetree for e.g. the AST2600
evaluation board where I was seeing errors at 200MHz.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-aspeed.c