Skip to content

Commit 56a7ea8

Browse files
committed
mmc: bcm2835-mmc: Relax the 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. See: #7120 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 6b7a0de commit 56a7ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/bcm2835-mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ static void bcm2835_mmc_set_clock(struct bcm2835_host *host, unsigned int clock)
10681068
unsigned long timeout;
10691069
unsigned int input_clock = clock;
10701070

1071-
if (host->overclock_50 && (clock == 50000000))
1071+
if (host->overclock_50 && (clock >= 50000000))
10721072
clock = host->overclock_50 * 1000000 + 999999;
10731073

10741074
host->mmc->actual_clock = 0;

0 commit comments

Comments
 (0)