]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
sdhci: Set a default frequency clock
authorKevin O'Connor <kevin@koconnor.net>
Mon, 8 Dec 2014 23:10:34 +0000 (18:10 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Dec 2014 16:34:43 +0000 (17:34 +0100)
The Linux SDHCI PCI driver will only register the device if there is a
clock frequency set.  So, set a default frequency of 52Mhz.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/sd/sdhci.c

index b38005003c29ca26c9a1553ffa3c9aa78d1b7280..9ef99b67d563b50663e9395aabbfe1d5308c84be 100644 (file)
 #define SDHC_CAPAB_MAXBLOCKLENGTH 512ul
 /* Maximum clock frequency for SDclock in MHz
  * value in range 10-63 MHz, 0 - not defined */
-#define SDHC_CAPAB_BASECLKFREQ    0ul
+#define SDHC_CAPAB_BASECLKFREQ    52ul
 #define SDHC_CAPAB_TOUNIT         1ul  /* Timeout clock unit 0 - kHz, 1 - MHz */
 /* Timeout clock frequency 1-63, 0 - not defined */
-#define SDHC_CAPAB_TOCLKFREQ      0ul
+#define SDHC_CAPAB_TOCLKFREQ      52ul
 
 /* Now check all parameters and calculate CAPABILITIES REGISTER value */
 #if SDHC_CAPAB_64BITBUS > 1 || SDHC_CAPAB_18V > 1 || SDHC_CAPAB_30V > 1 ||     \