mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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>
This commit is contained in:
@@ -1128,7 +1128,7 @@ static void bcm2835_set_clock(struct bcm2835_host *host, unsigned int clock)
|
||||
const unsigned int MHZ = 1000000;
|
||||
int div;
|
||||
|
||||
if (host->overclock_50 && (clock == 50*MHZ))
|
||||
if (host->overclock_50 && (clock >= 50*MHZ))
|
||||
clock = host->overclock_50 * MHZ + (MHZ - 1);
|
||||
|
||||
/* The SDCDIV register has 11 bits, and holds (div - 2). But
|
||||
|
||||
Reference in New Issue
Block a user