From patchwork Fri Nov 21 17:39:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin O'Connor X-Patchwork-Id: 413127 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9078B140170 for ; Sat, 22 Nov 2014 04:43:40 +1100 (AEDT) Received: from localhost ([::1]:41860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrsF8-0001Ww-Ro for incoming@patchwork.ozlabs.org; Fri, 21 Nov 2014 12:43:38 -0500 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=PmKt8HC1Mv70hVtfBCS5z9y2zOx5izu2x8XsIMVRfoo=; b=htCEmmIGq1fXz2RzmWOGqNqCI15ou/a0hk25H6KSud0yiNk+vFp55CqUeqLHVK92fv P8Dhljtws5PORLeTST+fSHmzjRB1/StWUUusLgKKPBtKgPcJOtx8WxiHlOy07tH3cSHx Gk/2NdpIU3xpRuYTwhc4S6utgXomqM73vLVKeayyc8kPIvPW/jJRJiqeG+eoDZJ+gC1U twoIs7k4jqy5tuCYYBbkQ0TebVxeOcURec6clgr6JbKNGSjjq724v4lM65L+gjUlp1ql 6arivobrwNyjuM8Xl73YYG+j5GbYzOQyeRsvCW+GTTMhou5oxzyWNS/OXEJfUGsMdQqL wmng== X-Gm-Message-State: ALoCoQkmbZFqj4e7CL0AJG2XXsZOR8bm/ki6Fn59WSSngZmgFZRF1jGmBxDClmyi3RQjjfWIqboc X-Received: by 10.224.29.196 with SMTP id r4mr8381107qac.12.1416591591939; Fri, 21 Nov 2014 09:39:51 -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 To: qemu-devel@nongnu.org Date: Fri, 21 Nov 2014 12:39:36 -0500 Message-Id: <1416591576-10341-6-git-send-email-kevin@koconnor.net> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1416591576-10341-1-git-send-email-kevin@koconnor.net> References: <1416591576-10341-1-git-send-email-kevin@koconnor.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.46 Subject: [Qemu-devel] [PATCHv2 5/5] sdhci: Set a default frequency clock X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 || \