Skip to content

Commit 663fe52

Browse files
committed
mmc: bcm2835-sdhost: Relax 50MHz overclock check
EMMC clock speeds are based around divisions of 52Mhz, not the 50MHz used by SD. As such, relax the "full speed" check (intended to stop any overclock whenever an operation has to be retried) so that any requested speed of 50MHz or higher will be overclocked. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 56a7ea8 commit 663fe52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/bcm2835-sdhost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ static void bcm2835_sdhost_set_clock(struct bcm2835_host *host, unsigned int clo
15411541
if (host->debug)
15421542
pr_info("%s: set_clock(%d)\n", mmc_hostname(host->mmc), clock);
15431543

1544-
if (host->overclock_50 && (clock == 50*MHZ))
1544+
if (host->overclock_50 && (clock >= 50*MHZ))
15451545
clock = host->overclock_50 * MHZ + (MHZ - 1);
15461546

15471547
/* The SDCDIV register has 11 bits, and holds (div - 2).

0 commit comments

Comments
 (0)