From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 18 Aug 2023 16:24:53 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qX0PG-009XUI-Ic for lore@lore.pengutronix.de; Fri, 18 Aug 2023 16:24:53 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qX0PE-000876-QB for lore@pengutronix.de; Fri, 18 Aug 2023 16:24:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+Y/wzH3TpH47klIyFKSTc4cl0p4e8Mdgxi5lQILNlHs=; b=2LTzu5Q+WEhhwlL2dWVsh1k1qv 5uKNmj8KnfVD6WySgZRwuNMWGryZ+xhphPSQ74ijVgA/gI1Aq8hEbnW93Iz2+bClYmrWUwogP7+1k 4SATFkuh3Fbx9EGHWe217BLJ7EPDlYxk9371MRZa97NCcKMj2hEZZDTz9rwenCgZQjsAsBcVc/BC5 G5xbxnoXUW/KYgErvEFU66janYvKGRA+RYxAYv5W8X71aeCLQkkyusLFynRNGeowkJsQkZFTb4rVs kb6F1PN5dT6/3XzGuppPp3Qys8t+XQZ8ZQ70/3WYYWU3CH6EyP/Eok9unfjKjWJMre/qh0Nx6Osvc o9Yos07g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qX0O2-009URf-24; Fri, 18 Aug 2023 14:23:38 +0000 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qX0Nx-009UOx-1x for barebox@lists.infradead.org; Fri, 18 Aug 2023 14:23:35 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id BD81A240008; Fri, 18 Aug 2023 14:23:26 +0000 (UTC) From: Jules Maselbas To: barebox@lists.infradead.org Cc: Jules Maselbas Date: Fri, 18 Aug 2023 16:22:38 +0200 Message-ID: <20230818142244.17157-1-jmaselbas@kalray.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: jmaselbas@zdiv.net X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230818_072333_802598_7B43BBF2 X-CRM114-Status: UNSURE ( 7.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v3 1/7] mci: sdhci: Set 8-bit host caps X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) Set the mci::host_cap MMC_CAP_8_BIT_DATA if supported by the hardware. Signed-off-by: Jules Maselbas --- drivers/mci/sdhci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mci/sdhci.c b/drivers/mci/sdhci.c index 635884e2a2..f6deea4020 100644 --- a/drivers/mci/sdhci.c +++ b/drivers/mci/sdhci.c @@ -568,6 +568,9 @@ int sdhci_setup_host(struct sdhci *host) if (host->caps & SDHCI_CAN_DO_HISPD) mci->host_caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED; + if (host->caps & SDHCI_CAN_DO_8BIT) + mci->host_caps |= MMC_CAP_8_BIT_DATA; + host->sdma_boundary = SDHCI_DMA_BOUNDARY_512K; return 0; -- 2.41.0