From patchwork Thu Nov 25 21:14:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Taube X-Patchwork-Id: 12693705 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72FA0C433F5 for ; Thu, 25 Nov 2021 21:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GvuuInN/FBijZUpfi33IRa2SZxivDxPcUApLDIeNPAU=; b=CBs7vOlu5btzZl fZZfqdCTzOTcgt8JILLVZVOI26gQMq9qjoG+J5PGwTHXeWScB061hfrnxW59dygRZHkwoC62H1Avi gGMFn9xkpzfQW/eyU2mjriouM39dSL8Uo0KEvxgsHksQoYrc/6RvAdS079DvLpnwwU7q1NWrQwP1z b4EUwoBzJa1zR2PkrMfro2xnQRP11N7w28QF0LvfXouk31L8YDbCAhf1XLIidxEjMTqnoaj6nw8zy nkKGFVMORwTt8361GoCqgd07SQQlQ4a71AC4wJAoy+f1tWh69r7sBUsCGAUJfk3N2NAqfituqR14C tGi+oIqXXoY9Al6oFBAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqMB4-008hmP-5O; Thu, 25 Nov 2021 21:21:10 +0000 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqM5D-008fL6-FE for linux-arm-kernel@lists.infradead.org; Thu, 25 Nov 2021 21:15:08 +0000 Received: by mail-qk1-x736.google.com with SMTP id 132so12876569qkj.11 for ; Thu, 25 Nov 2021 13:15:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ydk5E0AUMZP3msFnqmvRmoHq6yWf+2tROGqOJqYlTaQ=; b=F0gF3VDSm7pE4dKVZX8qSU9zHT7w4QsKddKR0ccefqC702EfpFw6j+JTe2gSq1dlE/ kHllhoDAE9189pqshE+n/b1fLdQoUyVu4DCgpFDpQsynoc7C8oaW1VRjZQI9jgzlzrgo /BQ9uLrxDBGrMAoTly1IGwAc3fu5W1srhHjHegn8/fO4dVj6lHuY7b/Isjemb+QYgwog g2WbWhijdHCazqGg/G19Bvb8bDEjQKkXvSqkyiW63JtMm4ijmQAE0S4CSYi3WB18vNNG J4reLj8heiGMpzKqolQo0hLlDiZf/ajtZCoqD66fDtlJzEabYsmR9Uao39MLw1Y9EvNa ct/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ydk5E0AUMZP3msFnqmvRmoHq6yWf+2tROGqOJqYlTaQ=; b=VH+Rz4NPrtZjzPqYG/DNkXtkkZcGvTpHMbga+iXb0A2prP/GH7Jq5lnC+DqkB17JTV vbsdQrxOkPOaWl3B2N6zSgVo6+nq9yX4HEXcifh9HkPC6Yu+l7WNI1j/+nD+dhQmdKXV I0aTPKPpptXhk6kcSw5H1Cv/R0Zq+ntc0vtGvEWtzoxnRYP1WNM9HEBT0awxKcBUrt5f bvgLfekWrfdXM6i1toMWN/uXoZ7YX7Y4RBr8vchQmC0J0kdwEmK07zQQ7XBAOOurzjoX thD0/DLMKrsBvOekR8PLxEm7Jnel3AtL255915++UAgolZuYy3cpXz7n3Sa90C0pqp0E 3mBA== X-Gm-Message-State: AOAM533Uue2+mPXkky3Vx6uVppoTyRY4UYHLNTP/zu5f+A0+OEaf/Iqn vOvK9GF25ySrU4QWd6u0/Rg= X-Google-Smtp-Source: ABdhPJyXOygJCkPcuw0sa/BVi11id4uMnZCU+DLV+8kp7MmLhOabQsj8Q6Kg9yx8bobfUak3xlcmgw== X-Received: by 2002:a05:620a:191a:: with SMTP id bj26mr18475683qkb.37.1637874906775; Thu, 25 Nov 2021 13:15:06 -0800 (PST) Received: from jesse-desktop.jtp-bos.lab (146-115-144-188.s4282.c3-0.nwt-cbr1.sbo-nwt.ma.cable.rcncustomer.com. [146.115.144.188]) by smtp.gmail.com with ESMTPSA id j22sm2068175qko.68.2021.11.25.13.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 13:15:06 -0800 (PST) From: Jesse Taube X-Google-Original-From: Jesse Taube To: linux-imx@nxp.com Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, ulf.hansson@linaro.org, aisheng.dong@nxp.com, stefan@agner.ch, linus.walleij@linaro.org, gregkh@linuxfoundation.org, arnd@arndb.de, olof@lixom.net, soc@kernel.org, linux@armlinux.org.uk, abel.vesa@nxp.com, adrian.hunter@intel.com, jirislaby@kernel.org, giulio.benetti@benettiengineering.com, nobuhiro1.iwamatsu@toshiba.co.jp, Mr.Bossman075@gmail.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, Jesse Taube Subject: [PATCH v3 11/13] mmc: sdhci-esdhc-imx: Add sdhc support for i.MXRT series Date: Thu, 25 Nov 2021 16:14:41 -0500 Message-Id: <20211125211443.1150135-12-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125211443.1150135-1-Mr.Bossman075@gmail.com> References: <20211125211443.1150135-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_131507_546072_6516BBA7 X-CRM114-Status: GOOD ( 13.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Jesse Taube Add support for i.MXRT1050's sdhc. Cc: Giulio Benetti Signed-off-by: Jesse Taube Reviewed-by: Fabio Estevam --- V1->V2: * Nothing done V2->V3: * Rename imxrt to imxrt1050 * Remove BROKEN_AUTO_CMD23 and MAN_TUNING flags --- drivers/mmc/host/sdhci-esdhc-imx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 764ee1b761d9..55981b0f0b10 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -305,6 +305,9 @@ static struct esdhc_soc_data usdhc_imx7ulp_data = { | ESDHC_FLAG_PMQOS | ESDHC_FLAG_HS400 | ESDHC_FLAG_STATE_LOST_IN_LPMODE, }; +static struct esdhc_soc_data usdhc_imxrt1050_data = { + .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_HS200 | ESDHC_FLAG_ERR004536, +}; static struct esdhc_soc_data usdhc_imx8qxp_data = { .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING @@ -355,6 +358,7 @@ static const struct of_device_id imx_esdhc_dt_ids[] = { { .compatible = "fsl,imx7ulp-usdhc", .data = &usdhc_imx7ulp_data, }, { .compatible = "fsl,imx8qxp-usdhc", .data = &usdhc_imx8qxp_data, }, { .compatible = "fsl,imx8mm-usdhc", .data = &usdhc_imx8mm_data, }, + { .compatible = "fsl,imxrt1050-usdhc", .data = &usdhc_imxrt1050_data, }, { .compatible = "nxp,s32g2-usdhc", .data = &usdhc_s32g2_data, }, { /* sentinel */ } };