Skip to content

Commit b916aa5

Browse files
pelwellpopcornmix
authored andcommitted
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 807af4b commit b916aa5

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
@@ -1128,7 +1128,7 @@ static void bcm2835_set_clock(struct bcm2835_host *host, unsigned int clock)
11281128
const unsigned int MHZ = 1000000;
11291129
int div;
11301130

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

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

0 commit comments

Comments
 (0)