Skip to content

Commit 4be1159

Browse files
committed
mmc: bcm2835: 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. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 663fe52 commit 4be1159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/bcm2835.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ static void bcm2835_set_clock(struct bcm2835_host *host, unsigned int clock)
11271127
const unsigned int MHZ = 1000000;
11281128
int div;
11291129

1130-
if (host->overclock_50 && (clock == 50*MHZ))
1130+
if (host->overclock_50 && (clock >= 50*MHZ))
11311131
clock = host->overclock_50 * MHZ + (MHZ - 1);
11321132

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

0 commit comments

Comments
 (0)