From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrsBa-0004r8-1T for qemu-devel@nongnu.org; Fri, 21 Nov 2014 12:40:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrsBU-0000iv-Ai for qemu-devel@nongnu.org; Fri, 21 Nov 2014 12:39:57 -0500 Received: from mail-qg0-f46.google.com ([209.85.192.46]:40776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrsBU-0000il-7y for qemu-devel@nongnu.org; Fri, 21 Nov 2014 12:39:52 -0500 Received: by mail-qg0-f46.google.com with SMTP id z107so2460668qgd.19 for ; Fri, 21 Nov 2014 09:39:52 -0800 (PST) Received: from localhost (207-172-170-53.c3-0.avec-ubr1.nyr-avec.ny.cable.rcn.com. [207.172.170.53]) by mx.google.com with ESMTPSA id q6sm5184508qaj.36.2014.11.21.09.39.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Nov 2014 09:39:51 -0800 (PST) From: Kevin O'Connor Date: Fri, 21 Nov 2014 12:39:36 -0500 Message-Id: <1416591576-10341-6-git-send-email-kevin@koconnor.net> In-Reply-To: <1416591576-10341-1-git-send-email-kevin@koconnor.net> References: <1416591576-10341-1-git-send-email-kevin@koconnor.net> Subject: [Qemu-devel] [PATCHv2 5/5] sdhci: Set a default frequency clock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- hw/sd/sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index c4fb27c..9d76fa2 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -74,10 +74,10 @@ #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 || \ -- 1.9.3