From patchwork Mon Dec 5 10:59:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 631471 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43DB9C47089 for ; Mon, 5 Dec 2022 11:00:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbiLELAY (ORCPT ); Mon, 5 Dec 2022 06:00:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbiLELAA (ORCPT ); Mon, 5 Dec 2022 06:00:00 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2118.outbound.protection.outlook.com [40.107.241.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCF719C39; Mon, 5 Dec 2022 02:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YXz5fv1yq64cWR7aCabADQ6UcktW6k4qKBAKB1Eoj2+2AMXnBVLMzNc3OfRt1kmMCLwL/IBTS3AzAxejgudt+8JUkb6mXRT0CHPzMbdvOQmaVmEqewXGdat0BJue4g5HbKr3GNGnZSU7Z5CqRul2OSt2O6S5Kq/2u/RpcI536pEgmLuYV9DKSpJ6X5oQeNPkOsVEVyK783qCrnfR9bw93UqQDk89R/l/VqVLsYDKWxy2+vIGy4H1Ev4MdxdCpttzTBzNMqIirFH86mZJAqPhalxr/5cT/V2f/98Ox4Y5U5NyZs+ZeQNzQqeb+Z/rnfRfDseYc8UjiyFz0vNBPFSepA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VpcaWWF4JSn6Ob5VZ6amkREguT+yRCr5wQ13O4HQulg=; b=RHybSP6cKlmzIQ/8BJp24QaRUH+jUCZgSoLjN8gsU0q3kUDo2Zqt4z4LkDWIQl0062NhzB4fNRTMf8Qv58LzqEAyb56OciLMKOQ3x3IV2eelbjqQBkJHj6RJTDtWLMuhgz/gkIlUQnFydITLpTbiHbLlDHmS/RRLTUbX4da2nPWWX+8oUkFWx7qLtJGWb4jHDebrahktGy7xTtWazlIfpbpslPDN0y7VaKKZQEdcRpIlACV2NUj3plOsuqK4f+6/bHnQ5dRJozWhrp4+hti5oWejpdxDU7sYWR096YqSdwnCKOth3GK8qagVsETbeNpA1i3vvKkyEcMsIzcTUsh+EA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VpcaWWF4JSn6Ob5VZ6amkREguT+yRCr5wQ13O4HQulg=; b=iTi6YW8fGOSHSMCox39NHkJ6XLiNpPZxHIYvN7In2zFzNDaYF/g3fJNAEC1RiLErg9FxprkmMwxkBuOOCK8IfGyzfKEa3lP0bJDFZ2pGWcVKLRh3JmXxpD2erwpK5VjAOVriOGC//hPz3fbZB+0ighkyOyLkaoghyA+Nb8MKSIk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by AM8P190MB0980.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1da::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Mon, 5 Dec 2022 10:59:48 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a%3]) with mapi id 15.20.5880.013; Mon, 5 Dec 2022 10:59:48 +0000 From: Vadym Kochan To: Hu Ziji , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Adrian Hunter , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Elad Nachman , Chris Packham , Vadym Kochan Subject: [PATCH v3 1/3] dt-bindings: mmc: xenon: Add compatible string for AC5 SoC Date: Mon, 5 Dec 2022 12:59:28 +0200 Message-Id: <20221205105931.410686-2-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221205105931.410686-1-vadym.kochan@plvision.eu> References: <20221205105931.410686-1-vadym.kochan@plvision.eu> X-ClientProxiedBy: FRYP281CA0018.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10::28) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P190MB0317:EE_|AM8P190MB0980:EE_ X-MS-Office365-Filtering-Correlation-Id: 852ebbc4-ae17-4dd8-4610-08dad6afd34d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: USlIwbz5A6p3UdSmywmNB/+0kARMin87bekI2LkDbTo+TEl55Sn+5tk3ljh8RD0uxEfmWStXDYFjl+AID2utQkUs8+lrd11TT6l+/EzLIiyqPUYd1RLqMpKlt+zEpJyQ5lS8nc8Nk6r4A6mp85O1Sif2/z+rH36c8Gay51B24GVpfm6mPcQPzkapLBtmYrxp8YV0wskcnfsJhHl50n68FA9V5ABPwavUCSOAl9/74rMKahgcY5hR+ha+HG4CnygqSF7OkivkhSDkCUpwcuF70E5lUsNY8ygnBwTexyVeiVUWbDnJ/hMzitvwBwf08lEGnkeyzkWmE59TKs2m8+tj/W0E7hMbxjscujklv/4pxYXGhdxhgIj7si1X5dNnKyFcO44hyTa/VWgbakBAVHjq0VJDKJB4ARX71djYeNWYjQ30ifkUwyQxLqkYuUqIRs+1Bcp1wx3TGoX9VqWB6pnpbqIfyqKA2sPK4rD+ub3YQlECjn4p+qPrEaZ6KmGnGxnuD//tfJezR3Jlelm8SFRG3Xt4WLh2qM4RF+XdvRESQ6K0jm3bvBt9q7zCQsygKLaau0hQs8cLGam2bBdBmVSmn4NtdktKYB+9XoW8K2fwppGX6fTliQ+p67f+IlnFRUSNu2+mzQuQJbxR8PRYeVy67tELhi6cA1jg6jbDKyk7IrB3L2D87jChLzdrxtWtY7El X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(346002)(136003)(39830400003)(366004)(451199015)(36756003)(38100700002)(86362001)(38350700002)(2906002)(41300700001)(8936002)(4326008)(44832011)(4744005)(5660300002)(7416002)(83380400001)(66946007)(478600001)(6486002)(66476007)(66556008)(316002)(54906003)(2616005)(110136005)(8676002)(107886003)(1076003)(6666004)(52116002)(6506007)(26005)(186003)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BBMub0BGKwWRJobGJQL8SVYCY4/yOnjz7pU7udmaddjZNbRb9J9wxXDQVjRxylvc+FHS9DLEhV0rUoiYF3+JHMwTzN+glyQhk39VtDopm5AR2K1jiNCoQkGL+4bcz6Bp8n1kFQOwD5TZBhL5RbOOQjuUz0djduIMd8X5NJqaoRpJXdW7qBc2TG759NYEVK6ljeEsVZo8gQZb6xt/RONuOIvmO9UU6MC5eVmCDl6xsjqobqFLWIUDZcx4CrH4e0XK/fThcig21tJTOjSnX6yFuvzSCb5O//YRZpDWKi47+LmMseMaqBfaYnkHhmIB0Bks2so76KustYS7EGy9X/DhcymAaEnjyyRPj6Yfy6JIcB6710nm7Remx+45ROtysKNsYCGD7vrTde9S+em+sHGWzj0D8Y2b9ewFduREz+inpnqiWvn+yS69HZxsaXeSGa670tXWIfOGNkkDyq8siT9woStUCoR2GiciDOrzdX3WZ+o854m/A+MkdZTiK+wTgrsQlOV2+FQnP0yjxcCsw1rEBBLFP8PMG8l5HwHDgqzRF8Q6QkyQhUb3qSlV5v3VVCcpXfSbC6R+hjsY8O8l7Dhn2Sl2o3Zt7ZF4xycxVo0h+oEwdCmTSsyt/krIfV8q5vBkL39rbGV4pFjruCmM2ipm8mnwcFHj5oX/qkB7xxRVBx3N50j0umSNYbpvYq1Aq86Te3jvbktAQJCZAaryfgtybwl92NtmW2idiTfRltJKVzmOBZRCtM3WtKb61Z1GibUMaUEdg6v7ZNfe9aB3+be4SDkCTZy9zczRGt1aPI330ZZanc6m6qf2zlvLp54p78bmUNv+vSNdNey5AD5+AXbDR59OuFMILibVXxvOkbIWA9kjwP23PB2k22xBD4RMlZMTHs0TnIKtLGAbHlko8lNtgzeIrlstr75m/O5svMPV8uyZIWexfbQ6g3BzBtomQLsWhHp6J3fK3NwZmGXHEEQK5zwcTA96MSOjzcyOqbXAypCjrq+mheuDUVZctaF85pY0wTK6m0Y8c0R/UCq9uyzJOCUCopARQ9MpNfFLIDCHToXTAAUzt9ZVfoZ01wY9CDvVUspYsyc40pR4AMQYNQ5pzgDPPcyolSocvFD7vQSMRkFE5GibWZ6ivC1COaOZnon8o9WhBzByL/XuSKYUdmiXl900Vdi+yTV8RFyKuklvDTASawo5lEVpIzTQ0l7VxAKgbWjNCsgfiEDEeuh/l3ajHDDK2JSSte58fLtYgzRLPoijnZlN4Np65udSzLV1xX9eoNL+CWrXRFbC2NwVm/PmmOLHyRkua6xCzlPvi6z/vET5nE/kYQkVP6FhUv8w1Ej2sL2FIBHuqKEnzUwMfVsg3duQBY1Ob7lOgYJgpKAp3O0OjCnwzolFPtLPYEUABXJkGAFg7gFw4/Kmm1imtHEfzPEJwvT1tqWK9+Bw7XNOLhXK0j0nm9b2ffy64mgrvE6o+CdlIcz2qi4taOe0dLaYqDFnEHRJJuftZwG1MhMPGe5LbHH7+O0btoKz+ZxYRd3du9xfUeKg9nE7fX/maRH0oVXGRPAYyHUpc6XNh44+pH8A/XtqfOoY9ZM62VDLA2+KNXTB6eCcDV9LrxpdfdYSqA== X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 852ebbc4-ae17-4dd8-4610-08dad6afd34d X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2022 10:59:48.0902 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IhDqO5o/q02WKKLvqrUYBq4qqF9FNAIHcUDVHcoO6zTL0s88x5bLPWfF+v2nGLZP0oej2gU3RvCUBkEsredU8jU3kP3sBYPSHRG7FChAMFQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0980 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org AC5 SoC has Xenon SDHCI IP, but with a limitation of maximum 2G DMA address range. Signed-off-by: Vadym Kochan --- v3: #1 Put compatible string in alphabetical order in the yaml file Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml b/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml index 3ee758886558..3546de114d7c 100644 --- a/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml +++ b/Documentation/devicetree/bindings/mmc/marvell,xenon-sdhci.yaml @@ -23,6 +23,7 @@ properties: compatible: oneOf: - enum: + - marvell,ac5-sdhci - marvell,armada-cp110-sdhci - marvell,armada-ap806-sdhci From patchwork Mon Dec 5 10:59:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 631223 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01920C47089 for ; Mon, 5 Dec 2022 11:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231307AbiLELAK (ORCPT ); Mon, 5 Dec 2022 06:00:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbiLEK76 (ORCPT ); Mon, 5 Dec 2022 05:59:58 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2118.outbound.protection.outlook.com [40.107.241.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C44167D7; Mon, 5 Dec 2022 02:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UT7wv9Zyup5hfRjVzY8V6qNKxfgDXuRS9h+2W8+wxZ3EvieBR3PvYT3LctyjRLxySHrdEA5BKH+WELgodI13Mt+cNOa6PUNT5Mzije3oLfYshdaVmMvDT13zXZZLtX8Rte6zqA3AAaJqVlQ7Kq0QONBZSzc1khkIzsFjX7kNK+Zo1EeDLkDw2AqZFVX5pwoDD6gBX35RvL9eMBOX3jqHLVPnqUNl7H93cglznGrfnK1KKgxlglqnhgKH8bqaBq+2pWIXv70XKcYOEyR9FQWD49hsWuOY1ViuHKoRc3ggrzwvTxMtGfDZAe+DC/nG3fe7jL/B4AiPX0McKbb8zEPHtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ey09jtabUAQlpFOVjz/ZCGOl8FKQUNzR4azGy+CAeqA=; b=hyBQo0mkuhoMlRqKw4y53ipDgZw9dV3qqepzWkInaphuWYKPY52j9hE3XQ+1RLtw+0CRWgM8nfHqQe9GiUoFygdnXN1S+A88F5JFlMPUegiTKqiK/WME/YIRAlRV9+gMsyCVd8ogXhxY/uwYW7TetmSoRdgOiAm2zm10afo5e3H8fxLeI4MktX7ZHcNopBzFH/R5YKPLj4xt1EIcJ13NBzQWzjDBEx6ok894/16NUTVRzkqSXva7O3oPGXgGDda000P+Q2ybggquUPkz9Zlgb0/r3I7bG8l8tEIQ/k6TAJqYkKqIedJKTzWngKIk4n5Dg00uVD9JGkhL+dcXcl5AIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ey09jtabUAQlpFOVjz/ZCGOl8FKQUNzR4azGy+CAeqA=; b=vG89IqigGe4+HYw33Ep4hSlqXmWNPitF1RTjRHlzmUVL7uEzXIvqCt1QzASqUlLhie2SSW2F01PdDGwCTDgDqowzRNRl4kDNRiU1UtVTfBWcUoeZTKZI6xno9eqw6Gmhn2oXLEjW69MWEit+Q8LpHzBp3FzF9ojv1+Z2RS+gWCw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by AM8P190MB0980.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1da::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Mon, 5 Dec 2022 10:59:50 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a%3]) with mapi id 15.20.5880.013; Mon, 5 Dec 2022 10:59:49 +0000 From: Vadym Kochan To: Hu Ziji , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Adrian Hunter , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Elad Nachman , Chris Packham , Vadym Kochan Subject: [PATCH v3 2/3] mmc: sdhci: Export sdhci_set_dma_mask to be used by the drivers Date: Mon, 5 Dec 2022 12:59:29 +0200 Message-Id: <20221205105931.410686-3-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221205105931.410686-1-vadym.kochan@plvision.eu> References: <20221205105931.410686-1-vadym.kochan@plvision.eu> X-ClientProxiedBy: FRYP281CA0018.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10::28) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P190MB0317:EE_|AM8P190MB0980:EE_ X-MS-Office365-Filtering-Correlation-Id: 927fa950-e448-4a09-714e-08dad6afd440 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +HArG96V0NVcGnbgcGjuqcNFgm0kxaCE1pv4QdXODGMEzpkjUFOE3TvW94BAANJiIM5rf72pWpRlUJh0KwCovQAnzGRZF1sOsX1Qx5PhA+ENv96KKSf2qxFesXS+7O0zrD/ycHZQGn3pmyQ94h774gw5YSPWLLoAi7VvgzMM17I7ZaEP9YUh4TN5RRSlyJkjxRASgrG4bSXUCVklswVMMIEFDJgyX2XBIexsRymTIkZ5d3DNwX+j2vHpM2JogidAjDT5ScYU5DALszHAOTCTPmxCgaJaFxmECurL/uLRnVCtjXrfC6wrodAtnzbTz5sHsmy7unopZ/Br8s3UPHC4mXZ9cc1c42RqWS+fQvvMze1qc+CCJtEMONXzesHsuCIM4KWS3voIfwlNXYiyM/dculgoRRJpNUT9CBWNIa05CeGaNaSgvCgSb/izirSUSrBf+PY4RAMPssszOdCN1HtV0G/3pri1PM1avJ/kAb0I9G+Iy989tOWDX3rA2uOjvG7B2da0gbMoSZozH2nKgjYZJhi2Wvu4ChB6HtsXBr640kmDVTK14TvWo7xX64ADNcjYpxxS7vO8EhMdiuobJrdJdDSmda7HQoyNd4CWbVbNZ4qH1ylGNBE9wDn/RLLOtcBH6f14ulAguqqcko7JkJ3qs/CxzeymoaR3si4kYJZdyp6prHc7vnHEcZpy0mKzHF38 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(346002)(136003)(39830400003)(366004)(451199015)(36756003)(38100700002)(86362001)(38350700002)(2906002)(41300700001)(8936002)(4326008)(44832011)(5660300002)(7416002)(83380400001)(66946007)(478600001)(6486002)(66476007)(66556008)(316002)(54906003)(2616005)(110136005)(8676002)(107886003)(1076003)(6666004)(52116002)(6506007)(26005)(186003)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zDfa7djD9/dkwq+5p+wqkBHPVHd62VMzKkVwJ8l9VbiYSRksT/D16R4zboGiCNjJzSboOPihMYUhwX41xAeXbywUJkD95MdvrFw4zmoRINlNcTdowvZZV1EtftFWfIWGV/eOQiWc8ZrtUM/aXTW1ERRrny4cygClNEz6xvlJWm9+ejf1ITxwgeKOHaLh9u4yH9nR/0m8Iwp7gSzj+x7mfcXGthgIt8JN0XoZDV5uuo8yaauQ3Rb2YuPawlKLwsJDTF0/ISBll64NtbtbrrScQaxXHq8WCXZdEBo9QDuM8J4xTZI1gZezio8pGuAstOYWU6KpP2Kwz8gCfW4ZvJiULoeQe6NYF/VXeJSI/5JOdgOhRylL93Ig/pFo3JGg/lNcs9Htfy7cUs+XjnwyeVHEIhT4u+A5SvVnoFrv8x328AxC6wGkoa6gvlewP0hH81+pzXi4QRzeH5FhRs7hofgeOTJKmgOUeuJtqQl5PKb3pYDhEkBt+gmH3wXEiuLJlB4fqug6RWRB64ngXo/v8MTKdt4zcKB7xAjYpSkBE9fpX9WHJUcV5YNtwhKluUIRUPLQm8sECydEemDpIfw9PY7894oHYuPr86dnPLzAzg2KPG6bgNumQEnP3JQsk7gi0wgoRLGwZB6+zjK6UXrUdOIbOD71W5BaA2ppOMKi/Na3nj+aEAvXnvx/AQ4VNJWXwdoiHEwI5GgZiXGpWv5sxMQJj9Pr/g2Yu9jU3jFKvLPdixMx/wMz4c1BSAllmOqEwWtp7C8D5fzUBq+eJTYjt0qKAFu5VycJBDPti9gsy+Hl/OK2UDSApCuIFQFs4L2tSXnW+Psf1sHSr5gIDih6IQq5cERRzsUOq41PxKvJ2X3B4abA1uYFsKe8NB0XupRGXoe+hFT7g3ZCJ5AcCcvwHhUxtVWMKIJzydkkYisAPRRpqL2reP+2epUgs+IKCDvzbrK2GNDHH3Y6r0XMgbIFbo6+mtulY1VLHgutfr1hatbSSTTyw7xZCUwkdIXKKSx43uVvhX+b2DTpWOT3NAzU939sHfwyfjef8h8DuSyDDkm1tHpEjMALmdkiBzPN3FNzrEPLjdb6mxS9UeHM0HEkwSLap+AZGAR+SN2EWe1bKsFK2VaxD5HKJH+QyaeAGxnLmbGelza5MWsXFywusCt8aTFyjOyKdsM4enASk9QeFGjvV8b2dqGlIf/dD+ZIyHrHyMuuoBAsotsj8PRo+cFMJ+uugQKvBgFPdGhEjejOXdoXkznIxTRiARl1VSlF4NU7O8hpOM7vB/NBabLe3MPcEkudwrDnL5OAhDuilCSC49x/BX04X7FJvXEveOrDBz0YgDbaO4pSWi1k0eXckHi+/6XBmI0M7RyiYG0si6AUQDqDCkwP+PXJqBtw+srxu7gWOK1L8ZjHCCPH0j8uEKa4spapvLALsJezohUIiAGBLAXQXLsmcWfPyYiWe2/weLjtC781A8bvBVGhZpnCr3gImh7bBSHaQpVrEE8hKR4jQjqpViqPduBAVdQ8TmJYApvc7LUmeb38w1ftO/E1petK+O+ju9RVU8UecHSWxEhKxFjH9fr0yLIrmL5y+AKjRUhpkTt8AErtkCRc2TV0rFdhnGJA7g== X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 927fa950-e448-4a09-714e-08dad6afd440 X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2022 10:59:49.6991 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0knt1Owyw1GkWDIjAKQIbREHQrGOVwOkKnUig5uWAYAXABcdMSqstDK95keaiV0pHHZ6DyhKKh/gq/g5K+hK/h3shkNuLpYezGaoKoA7oxA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0980 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Particularly it is needed for xenon-sdhci which uses set_dma_mask callback to fixup the DMA settings for AC5 SoC. Signed-off-by: Vadym Kochan --- v3: #1 Fix missing EXPORT_SYMBOL_GPL for sdhci_set_dma_mask drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 2108e8075609..d3ed0531d985 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -4022,7 +4022,7 @@ struct sdhci_host *sdhci_alloc_host(struct device *dev, EXPORT_SYMBOL_GPL(sdhci_alloc_host); -static int sdhci_set_dma_mask(struct sdhci_host *host) +int sdhci_set_dma_mask(struct sdhci_host *host) { struct mmc_host *mmc = host->mmc; struct device *dev = mmc_dev(mmc); @@ -4051,6 +4051,7 @@ static int sdhci_set_dma_mask(struct sdhci_host *host) return ret; } +EXPORT_SYMBOL_GPL(sdhci_set_dma_mask); void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, const u32 *caps, const u32 *caps1) diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 908da47ac5ba..b46d47c19650 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -815,4 +815,6 @@ void sdhci_switch_external_dma(struct sdhci_host *host, bool en); void sdhci_set_data_timeout_irq(struct sdhci_host *host, bool enable); void __sdhci_set_timeout(struct sdhci_host *host, struct mmc_command *cmd); +int sdhci_set_dma_mask(struct sdhci_host *host); + #endif /* __SDHCI_HW_H */ From patchwork Mon Dec 5 10:59:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 631222 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AECA8C47090 for ; Mon, 5 Dec 2022 11:00:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231531AbiLELA0 (ORCPT ); Mon, 5 Dec 2022 06:00:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230508AbiLELAB (ORCPT ); Mon, 5 Dec 2022 06:00:01 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2118.outbound.protection.outlook.com [40.107.241.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B255019292; Mon, 5 Dec 2022 03:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ic9l6lw6d7AQwrJoo4eELrx6h6ZuqczNDl79CU0hG2LWjsTZANClr9Ttl3/95rvG3xL8/pqevATnKwP7sek9fJyNKHTdlhAleWhHwVqJpUPtDnjIUsF4fD4OhELFCXBSwp/dbvMuNygG6KPbsOHMMBZbcE2WuOhsSe5Ub+KPBhF3DcXmkAh8kdLWswfDRuwDgklkfj6GGkCCVdxtLFU5dvgmCrFqATVYoH5netYuSKmK2oju9etr+2lpZ4YqDnKYM/Oz9dIgPm1yRe5ClfyCsQSStyy2Umf//YuZE0kslhytEHsb3N31aUmXvKKZyExRjL9SZk9pawN+dpCx86rQZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FuldcKvKeWXVmKDJ7yaKSDt9K0l06pHPOxoH4W4h1gY=; b=bvhoc3qJiEMTGROY8JWZDMtLA6HoQhGSp5sS5y/N1sAb3K+zja3g2e5mqAlQLGztXRrTZqfUtZ39jUywP0TG7SkvuSpBkmOmefilIoTG+h1vnyDxogMrTto/283jzAD7bfFhuo8BkXT3lZg+Zi4DVoYC/Ymz+04zeUOa0n6icOC5hpHN57SjTycOU+spX0gXy/sCdAYrkyDUYxmbX1KdNHb2tGDTQo4zikcGMQJrkul3I9tKy7N/xsXO2NiAJGFlSyshqioUQKPROolS6o44vpoUCRZu/zBXuvtnfRjNbb5UfM6DR4Iz9d6oBYLdr+g6GyWRjgX6+OOwb9n7HoEUyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FuldcKvKeWXVmKDJ7yaKSDt9K0l06pHPOxoH4W4h1gY=; b=dK2HoMVgHF4TMoT+Ar6hoxmcRHCYM4KeregMPWw8BCszlw5zD34heAkXB6IscnZcJnx5QWi0iTEkJkxrKquTeJ8RzFPoZOv32Ohwv8pDG+0M2pi1r5cR/b1OczhqJLhqh9kVpXzEaqnAcMf+lL6zYRWTKjW8CYrH+YWoOpIT5dw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by AM8P190MB0980.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1da::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Mon, 5 Dec 2022 10:59:51 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a%3]) with mapi id 15.20.5880.013; Mon, 5 Dec 2022 10:59:51 +0000 From: Vadym Kochan To: Hu Ziji , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Adrian Hunter , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Elad Nachman , Chris Packham , Vadym Kochan Subject: [PATCH v3 3/3] mmc: xenon: Fix 2G limitation on AC5 SoC Date: Mon, 5 Dec 2022 12:59:30 +0200 Message-Id: <20221205105931.410686-4-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221205105931.410686-1-vadym.kochan@plvision.eu> References: <20221205105931.410686-1-vadym.kochan@plvision.eu> X-ClientProxiedBy: FRYP281CA0018.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10::28) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P190MB0317:EE_|AM8P190MB0980:EE_ X-MS-Office365-Filtering-Correlation-Id: ba06d64a-842c-4ae7-6165-08dad6afd538 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yP99TKulsQ/XPm1R3zFFu8E4YHKtOx36NsL11kHm8R0yAeRRgxsfBhzHcfVeWkABqUk+PaHfLDirm5M180KAQ5qd5w14SwW0g//5n2FMqSTuKtK9fifxuwE1u0lSC6wD0R/Ob2mPZB5grvqKhj4W/PjXo+NwzMvKRXYY3Rh3XRJs8G9Xr0Kgc2YXr5LFdaXRyPA4yeWtEWnwyh+ZygEED2VG2E0Hwa3MQ6/E+rHRtjva0JOY6ng+kKXbjuUR9GK/LE6o/Tb0D3eMs3hc92vMmSoRrkEg7aaqzSYfz5+SxtZK4u06BKs6swY1S46lTGDE8kuCNsu7+rWuwem/+pzMLXiy8GDAav5XWqXsVwOOElFBe3NQjJurnplo3FXWAWIanPztnjZ/eQdftpzmXS5zxLeATpftB7RJPpPS5Y21Z5R70253Nxn0IsIsA8Boi4weYJebAGn15p6OViMUKdMUDhdD/bDFDEYRs8antR8GAn8wA8TKLVt5DzKwXctLauU22K+P0EsmlfxVhVdJGjaCorn8UNsWqCeLrUs1itIPvOObDMKnC4PO3z89DL7ywT4preCiWP3P9k5n7xOOQqIS1j3z77YAeqHzoNJ1st5OsUig51BEcMyJzJxqaCHHR+UjYYeEm39vJ3IXTzXHxQwTgyGmKVc2iCYemI+LVaHWHRy4e28gEPvcThEeNy+qwHdF X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(346002)(136003)(39830400003)(366004)(451199015)(36756003)(38100700002)(86362001)(38350700002)(2906002)(41300700001)(8936002)(4326008)(44832011)(5660300002)(7416002)(83380400001)(66946007)(478600001)(6486002)(66476007)(66556008)(316002)(54906003)(2616005)(110136005)(8676002)(107886003)(1076003)(6666004)(52116002)(6506007)(26005)(186003)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 88ZUkP+/xJBFJYOQ1P5vFxypZv4Et7fu4X/DoRzua41khsaUYTR29PvpGqUEOx3Tn4dK2erCjVSRizUx1LQR/LgXfBF2NgEI8b/PmG4SSW8KEPkllg7s9lICQSuqkJzdZ3UOD0yPZtw+Et3nI8nS/MyOZyOYuLBLbT8WXbYhhsiMYG+ZC58nz151jaZDsKuMfezEhNuaTr85N6leNYApyKoe2V2UB6v5JfzkthxJXyphDMT03/40jjZNVHnfhpMi2i2Wbtk1XvQb4f287IML2TrNc5SX2lS7vmMl9O0Rioz78/oAS8+DmEJ1049qBlEM7I/d9suTEi+gCxtzR+M2hKyqyhTDPusVB3JKzf1Zh2TA1RhNQEeUrnK/uzcXjBi4C6z7kmYWYBtLn8kwiibtNjGfZILYa74cNsSLTc2H+JtVHuBe6yZg5cVAHjfCBoHR7kcSjkrts7KySFUWzYmI0X3wZoUHbMOPKJ9+kP49q14X47a0wOHEUPMrIdnsNA8eRTMP54gGh2YJPn8Nq7hTFWfZSw4dUS1SsGgXP8wsyhKtCrDTIePyqOc06n8hdtFie0+EgWKvxJN8kOZ76OjtS3l5AvxFNIsHqKY7Nmvmv5CvgH/Gy6i9lpFXlU7eYh4u2ZEsoxFkFZtht1TxR7LcKiLTnfMmttIv1HAJXo66X7stRuE25prfeO09LsktbJFWZtWqrMiu5PljeuCZGn+en3Uy293GZcUmJhhVUGk5yjfc+R43lURIGXPeioXCA5c+EHGcaHOgRAumnh+746mFzvq71lPEA0aTgWVebiGXhHelIfhwMXMans8JZpXymrtGTDd8tGCH0qSyJndcJdhB+IYD3JAzbzuBMLHkyc9KHuvTN1PNcDOF/Ae3vJrZ/7MFWXx2OIIA/NzOgnqocLt5d7USHVkn/lXQatihGy4glZMdqKWcttyuPzz+cUEhal7nkhVszXPGkcu4TOLOdF3VOgzSp8xOuZZzq7TiCnJ++PGAhkb0C8S/VIp/aC0wXOO4HOMyTiLggQmv0cOPOLp5vJ0Fa2IHaw3z8lf+CwWDwVjPe0kyw4dwko4BvTulrpapf7DSLamRD5W6K6MsmwAg9tAU+48fY9BB8IGmETfAB+pkyHhJMJU1Luwb4l2Fy/jp0TySXoH5P15NcQ4b70tcsDrLei/2NLo1+tzmnEZUxOw2mFaSwbxNwEV1Z+WVPw6yEStcVd/mCTN17Y3MTfxejhp7vOtEZBt33LTVNaEmQj3xEfGNOFPbN298rnyETamPmXkOzeRmZ+Rn7/eFX3STjTsWV25EgcpFlcN7PpWiImfJyxMIgK1u9pow5Ss1hoeK+98DrTYjuFm0owVukSDTDuAk7+d3JhW7umpFbW3oN6H67l1fmOvQIh6YGBEK9ECmWWUzbO1A9NPzjQEuH9647zJmppp0MVIBclO571oW0jqrLdev6gRs+zIKEDbrOq3FHHvVCNqjCw4XipP32JRu6orVi5l2kbLE4lvUcFXe1HgRuDKvewEdi4scPhhW2zUrRjDNk6cpfN0uRhS1K7EMm72lo8tP20HLR/MMBTtjSiFPY0pFtdMGlYCpAldCPKJNzstNl97Y9DIvK8wB2v0HZw== X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: ba06d64a-842c-4ae7-6165-08dad6afd538 X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2022 10:59:51.2771 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9HiSZn03lR21RbbMBAfCkeErssuLgYO2ZzrCjIqmZh/DbMf1reaHU9i9F1DFqECxtB4Vs+wTAJLerXX2Ufc7anSYmhN/SCP3TlVDh1IKM3M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0980 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org There is a limitation on AC5 SoC that mmc controller can't have DMA access over 2G memory, so use SDMA with a bounce buffer. Swiotlb can't help because on arm64 arch it reserves memblock's at the end of the memory. Additionally set mask to 34 bit since on AC5 SoC RAM starts at 0x2_00000000. Co-developed-by: Elad Nachman Signed-off-by: Elad Nachman Signed-off-by: Vadym Kochan --- drivers/mmc/host/sdhci-xenon.c | 38 ++++++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci-xenon.h | 3 ++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-xenon.c b/drivers/mmc/host/sdhci-xenon.c index 08e838400b52..5f3db0425674 100644 --- a/drivers/mmc/host/sdhci-xenon.c +++ b/drivers/mmc/host/sdhci-xenon.c @@ -13,7 +13,9 @@ #include #include +#include #include +#include #include #include #include @@ -253,6 +255,22 @@ static unsigned int xenon_get_max_clock(struct sdhci_host *host) return pltfm_host->clock; } +static int xenon_set_dma_mask(struct sdhci_host *host) +{ + struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); + struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); + struct mmc_host *mmc = host->mmc; + struct device *dev = mmc_dev(mmc); + + if (priv->hw_version == XENON_AC5) { + host->flags &= ~SDHCI_USE_64_BIT_DMA; + + return dma_set_mask_and_coherent(dev, DMA_BIT_MASK(34)); + } + + return sdhci_set_dma_mask(host); +} + static const struct sdhci_ops sdhci_xenon_ops = { .voltage_switch = xenon_voltage_switch, .set_clock = sdhci_set_clock, @@ -261,6 +279,7 @@ static const struct sdhci_ops sdhci_xenon_ops = { .reset = xenon_reset, .set_uhs_signaling = xenon_set_uhs_signaling, .get_max_clock = xenon_get_max_clock, + .set_dma_mask = xenon_set_dma_mask, }; static const struct sdhci_pltfm_data sdhci_xenon_pdata = { @@ -486,6 +505,18 @@ static void xenon_sdhc_unprepare(struct sdhci_host *host) xenon_disable_sdhc(host, sdhc_id); } +static int xenon_ac5_probe(struct sdhci_host *host) +{ + struct sysinfo si; + + si_meminfo(&si); + + if ((si.totalram * si.mem_unit) > SZ_2G) + host->quirks |= SDHCI_QUIRK_BROKEN_ADMA; + + return 0; +} + static int xenon_probe(struct platform_device *pdev) { struct sdhci_pltfm_host *pltfm_host; @@ -533,6 +564,12 @@ static int xenon_probe(struct platform_device *pdev) } } + if (priv->hw_version == XENON_AC5) { + err = xenon_ac5_probe(host); + if (err) + goto err_clk_axi; + } + err = mmc_of_parse(host->mmc); if (err) goto err_clk_axi; @@ -682,6 +719,7 @@ static const struct of_device_id sdhci_xenon_dt_ids[] = { { .compatible = "marvell,armada-ap807-sdhci", .data = (void *)XENON_AP807}, { .compatible = "marvell,armada-cp110-sdhci", .data = (void *)XENON_CP110}, { .compatible = "marvell,armada-3700-sdhci", .data = (void *)XENON_A3700}, + { .compatible = "marvell,ac5-sdhci", .data = (void *)XENON_AC5}, {} }; MODULE_DEVICE_TABLE(of, sdhci_xenon_dt_ids); diff --git a/drivers/mmc/host/sdhci-xenon.h b/drivers/mmc/host/sdhci-xenon.h index 3e9c6c908a79..0460d97aad26 100644 --- a/drivers/mmc/host/sdhci-xenon.h +++ b/drivers/mmc/host/sdhci-xenon.h @@ -57,7 +57,8 @@ enum xenon_variant { XENON_A3700, XENON_AP806, XENON_AP807, - XENON_CP110 + XENON_CP110, + XENON_AC5 }; struct xenon_priv {