Message ID | 1538642920-3843-4-git-send-email-yogeshnarayan.gaur@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-spi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC8261515 for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEB2A28D59 for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC8F428DA3; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 756E728D59 for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbeJDPnD (ORCPT <rfc822;patchwork-linux-spi@patchwork.kernel.org>); Thu, 4 Oct 2018 11:43:03 -0400 Received: from mail-eopbgr20074.outbound.protection.outlook.com ([40.107.2.74]:64779 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727172AbeJDPnD (ORCPT <rfc822;linux-spi@vger.kernel.org>); Thu, 4 Oct 2018 11:43:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pAVRD8M58pASWtSy3XObgRqod/eUyA0ztQImlbmKSb4=; b=CufoaQ8k0hEPBKXSvZ2ZyBqBPNKgWUwjMOjI+QlzTZho89VIs81DMuFWMR7PGl9A3bQ4n8XDilPTlSJdS77dGVUw/9Zsl2EOslM/mPeZFSOzwmNGUXWF7AzvQ3ntFIL9Fl+0LO+BiO3g8AuTDPI/VOBHtVNlyvTPbtsw4w2XBeU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Thu, 4 Oct 2018 08:50:38 +0000 From: Yogesh Gaur <yogeshnarayan.gaur@nxp.com> To: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, vigneshr@ti.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, computersforpeace@gmail.com, frieder.schrempf@exceet.de, linux-kernel@vger.kernel.org, Yogesh Gaur <yogeshnarayan.gaur@nxp.com> Subject: [PATCH 3/4] spi: nxp-fspi: add mode flag bit for octal support Date: Thu, 4 Oct 2018 14:18:39 +0530 Message-Id: <1538642920-3843-4-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR06CA0156.apcprd06.prod.outlook.com (2603:1096:1:1f::34) To AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0a8ced3-8f9b-482a-0fd0-08d629d67787 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM2PR04MB1025; X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;3:AiTveoktA4RKSr2MT4ZlbXSPT057hG28xOIRkRE09iIR0WLR97nx1ouztM2lO49oQBSxFJDJnVJp2rJWx6MUeP04qM6AFU5r/fbuG/scidakPANMlCpOCH/cbBOBV1yBK1ORZ6q6I7llybBxy2dBWNq+lzZtzJobSMjLMO7gM9/h7DSBFwJA3ZAz0IGZJxRA8jPaBoXweVUmGatIUm/QvxOvjYjbY1Rw9br+EeM93aSIlwu3otxpqSXTCpYPTxAb;25:Gr8j0cs32wNAxKlJBdxx3CK05pIgHtKz3ggXC+EybuD6mLnaVY38/45MKztJY/lLgOTmDqZlexEZBQv4FW7fIuU/TG6RL3uHh5ne70ArQD7LS2oFJK83JNL9unnkGVgTHys35h/+mC9ixWZGINWOE09a1FqiHS7g865Rz0W6xMmWfwU9UnDZ44tp5rmGhnYfifGxLDcc8GrkhxTuW7x25wDqR/1m8NSiCOFFmvQlPb4klHqtvf8pEA5RaWD7CGfCiEg6ExxmNLvnUITGMOK+McthReidMAtGVujCerjCAiWgh9Dk2vEJR/qYYeJXJ2I5MXLG1M2N0Bx0Nq9ZsFri+Q==;31:g1azERlSRzsuG/I6SXXKucawHtvh/P56PUBAVJ3HYpRqjNY+PT44GbLj6EFxL8J/QZ8PJZrnZQSaoke7Ae9zxOeoLzU/uiQYejjTy6t2QPouu+2EmBIYosv7zC1SpsfvYlNQYxq1bvSVRPvZhsirdTYBbIZcP+llQcA9lekXwWEGW60rvtwWvhmr8WE2xC9yPZMM56v927Kwst7oab4/eQvW/jK3bdFDn8l30Z+3M7o= X-MS-TrafficTypeDiagnostic: AM2PR04MB1025: X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;20:h6FVyjZa4+xpJRCFKXwI0sKRsObVZhdwpPM3invnYvDeT9kXL+UUnOuiX9vOgGUdSWEd1UiiwDcYAHLK92vKyvFV/2VF7TGjdAKguOioA56/p6BZTZjHSyHnmE/SBABXxJmxaRvg8WVEc3/BXhA5kSxoyZp7jl+S1EoARMYiTMtty9g2fcWwdVyvpXt2Imn3cDGOvL0tjH/awGa9J2NzxPYlFDTecHsW0tF9U+VV8aQhBlejPIqCyY/E9ejAna/BpD37zznV0hoHZj9wWPO9F9iZTSW+WO43wyvTSE7cRsAlFoKpyvEQkuJJ1YiHtpQcChlkb5+lnDz8e+Gx1sUelT00wkhlWgFqB5foolUDza6aCEvBkMiuNSMwwbTi0BWoBPR4xSJOCu9gxLRLshuFPQ4Ug+4OdUJ9YFKZXqsAztT95/Qk2KZPlimk15K7lpl63vCMLiEZWomWDASpwn13jP04akjeLAoGjHCa4RWX6ibLUKV+uT86O3v8kuclKFKT;4:5fgrbkBpHJuerDwUGYI3r6rZc9oHxSoAlGTm161YJtAc+TUaTIEMC+JeMU6AHO25oAMR+NG+w+Lw8roqkpSWjrpCxmEZe/75+P9YFY1FIV6nQGULTTdmX8XxMSVQVV3XPBypiga3zKzI2STB+JXTm/+gj6y0FGWdBjuHUeSBNXDFI5Yi+Fc72r00exfor+Kugen23TiSxGGQXtzcvfmwwN89Zwclvv8DyXF3IgUSRq39rejeZLNXTE8HZ989nj5DBLVgGJwj28hUEsZTitSCKHzPUYymnDgx5+SlIswinpsOGmoU0pyFZSIyl7Wdus5m X-Microsoft-Antispam-PRVS: <AM2PR04MB1025AEFB63F60BB808F0686499EA0@AM2PR04MB1025.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051);SRVR:AM2PR04MB1025;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB1025; X-Forefront-PRVS: 0815F8251E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(396003)(136003)(346002)(376002)(189003)(199004)(6512007)(8676002)(3846002)(6116002)(7416002)(476003)(11346002)(2616005)(956004)(446003)(66066001)(386003)(52116002)(16586007)(51416003)(6506007)(81156014)(81166006)(6486002)(486006)(68736007)(8936002)(316002)(106356001)(105586002)(25786009)(26005)(48376002)(7736002)(76176011)(2906002)(50466002)(186003)(16526019)(478600001)(53936002)(47776003)(50226002)(97736004)(36756003)(305945005)(5009440100003)(39060400002)(55236004)(4326008)(86362001)(5660300001)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR04MB1025;H:idcbfarm.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;23:NvFFSgfyAgYdm+2Spu+rSRYycJJMmIUg4PRL0YFqh0pPOPUmPgq2O8w+InFTX1VOsi+RQm47d13gh3nsPFi+rv9f2OXQAQMYrkADhrfrApJ04xDkYMauFTsdNgkmhp8vitx2hIohS1rKL4BL/Us21yy7cavW3olWkpT28nq/o/Ufho3Oew5O4R8kNG7ax5CUYpwhVGNrTpT4qxmKzZGcu2L+c88kqhrb60xgv92hetwlAsMC7T/jFzsvGlBzSrm2OEBKfZNsS/5SwAWGVrQC1yLN5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DOAknCIGip7cnWDAxGDizLRLmyfndCsB3K9ZnJ0pjBBacxVL51ruKmT5gnWwpOA/QSmq2NL4OhU2IPpCzOPal7z2V0Fd+suzRo9onW/9MPDjSv/t6n7UdBRYlxyx4DJdVnbWvFo7PJg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2018 08:50:38.4023 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0a8ced3-8f9b-482a-0fd0-08d629d67787 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB1025 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-spi.vger.kernel.org> X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
spi: add support for octal mode data transfer
|
expand
|
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index 0967651..ebab44a 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -1065,8 +1065,8 @@ static int nxp_fspi_probe(struct platform_device *pdev) if (!ctlr) return -ENOMEM; - ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | - SPI_TX_DUAL | SPI_TX_QUAD; + ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | SPI_RX_OCTAL | + SPI_TX_DUAL | SPI_TX_QUAD | SPI_TX_OCTAL; f = spi_controller_get_devdata(ctlr); f->dev = dev;
Add mode flags for octal I/O data transfer support. NXP FlexSPI controller supports octal mode data transfer. Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com> --- drivers/spi/spi-nxp-fspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)