From nobody Sat May 10 04:50:28 2025 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=quarantine dis=quarantine) header.from=ti.com ARC-Seal: i=1; a=rsa-sha256; t=1610539250; cv=none; d=zohomail.com; s=zohoarc; b=NZadI3+wgWRvb4d6nR7TupXW3fYqiw4VfcZ03KFnL33vHukTO+iuERyqVuM8KupRwZ1SUVkT5CXFbmVyZmdCXZxqlHfPzPHBWnhni5ljREgl6D/NNeR/uqk1l5pf7xlre1ttPhc3JzEqak+QUNr2eK2yCEtxbekggZ+Roldk6tg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610539250; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:MIME-Version:Message-ID:References:Subject:To; bh=GUonOkkIARDwv50MiC0wedALt3iHo3HDOz+ceuFKS6k=; b=NLSIBHgHaK2IDfSKee+WK7ACPrPqgMjURrOm6QExu0i9hFlKoAHkPzXO3JrvpLpA5smITh1GmOx+fESdwRQbDOJf7Os21R+iN4kj2QyACNinqClvrNyi0ZndX9uofDkhvSFcc2n84T5WHTFcX4p4RTG8+4sAYYEvUn5gMGMGw1g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=quarantine dis=quarantine) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 161053925054528.491269685363022; Wed, 13 Jan 2021 04:00:50 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727610AbhAMMAO (ORCPT ); Wed, 13 Jan 2021 07:00:14 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39740 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbhAMMAO (ORCPT ); Wed, 13 Jan 2021 07:00:14 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 10DBxU34045945; Wed, 13 Jan 2021 05:59:30 -0600 Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 10DBxUHi030325 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Jan 2021 05:59:30 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 13 Jan 2021 05:59:30 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 13 Jan 2021 05:59:30 -0600 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 10DBxDdl041723; Wed, 13 Jan 2021 05:59:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1610539170; bh=GUonOkkIARDwv50MiC0wedALt3iHo3HDOz+ceuFKS6k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Dfwmwo1tUF+rV59CjRE9NXeX0YriplT+NTt1wCnet0BpHyozkQ7XNbH0Rry9X1Tw1 6CFQ1hYaQYBg9jahsmDsiIS0ge7KveWxgn8Qq/N63+jpvL4HodQf9D7sbTK6wMYdq7 eT+Fn3hTSNtAUcscVC/Y+zn6O/6ieGkCtRfrbbg4= From: Aswath Govindraju CC: Sekhar Nori , Vignesh Raghavendra , Kishon Vijay Abraham I , Faiz Abbas , Aswath Govindraju , Ulf Hansson , Rob Herring , Adrian Hunter , , , Subject: [PATCH 2/2] mmc: sdhci_am654: Add Support for TI's AM64 SoC Date: Wed, 13 Jan 2021 17:29:08 +0530 Message-ID: <20210113115908.3882-3-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210113115908.3882-1-a-govindraju@ti.com> References: <20210113115908.3882-1-a-govindraju@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Faiz Abbas Add support for the controller present on the AM64x SoC. There are instances: sdhci0: 8bit bus width, max 400 MBps sdhci1: 4bit bus width, max 100 MBps Signed-off-by: Faiz Abbas Signed-off-by: Vignesh Raghavendra Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Aswath Govindraju --- drivers/mmc/host/sdhci_am654.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index a64ea143d185..7a34649b0754 100644 --- a/drivers/mmc/host/sdhci_am654.c +++ b/drivers/mmc/host/sdhci_am654.c @@ -514,6 +514,26 @@ static const struct sdhci_am654_driver_data sdhci_j721= e_4bit_drvdata =3D { .flags =3D IOMUX_PRESENT, }; =20 +static const struct sdhci_pltfm_data sdhci_am64_8bit_pdata =3D { + .ops =3D &sdhci_j721e_8bit_ops, + .quirks2 =3D SDHCI_QUIRK2_PRESET_VALUE_BROKEN, +}; + +static const struct sdhci_am654_driver_data sdhci_am64_8bit_drvdata =3D { + .pdata =3D &sdhci_am64_8bit_pdata, + .flags =3D DLL_PRESENT | DLL_CALIB, +}; + +static const struct sdhci_pltfm_data sdhci_am64_4bit_pdata =3D { + .ops =3D &sdhci_j721e_4bit_ops, + .quirks2 =3D SDHCI_QUIRK2_PRESET_VALUE_BROKEN, +}; + +static const struct sdhci_am654_driver_data sdhci_am64_4bit_drvdata =3D { + .pdata =3D &sdhci_am64_4bit_pdata, + .flags =3D IOMUX_PRESENT, +}; + static const struct soc_device_attribute sdhci_am654_devices[] =3D { { .family =3D "AM65X", .revision =3D "SR1.0", @@ -737,6 +757,14 @@ static const struct of_device_id sdhci_am654_of_match[= ] =3D { .compatible =3D "ti,j721e-sdhci-4bit", .data =3D &sdhci_j721e_4bit_drvdata, }, + { + .compatible =3D "ti,am64-sdhci-8bit", + .data =3D &sdhci_am64_8bit_drvdata, + }, + { + .compatible =3D "ti,am64-sdhci-4bit", + .data =3D &sdhci_am64_4bit_drvdata, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sdhci_am654_of_match); --=20 2.17.1