Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp399811imm; Fri, 31 Aug 2018 03:36:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdapG05hmgSeX4nAXJFZ7cA3X8VBp+NBzv2yOYUV8f7wSJDkaZsb3tbXFPYpGafG9WdUQF1o X-Received: by 2002:a62:45d2:: with SMTP id n79-v6mr15171974pfi.137.1535711762230; Fri, 31 Aug 2018 03:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535711762; cv=none; d=google.com; s=arc-20160816; b=Z5zuc5Kp5tTj+93BrlS227DxHE0/xVXIxinuHbcvOhuUccQ5xuiCpH9O6G99C3XrRK 8OuP0FSuuei82wUEUJWti9iVIFEUxJEjgJDjKpt7dmYn1vzabniL0KEAVwpsMaDrTxvW SwS6GebwjTpOxnX2gUaIY3+SPUvr325izduUgCTme95NUuCs3iSCjqI3519mIgJt+hak 7Ep1Df0hudBDMOH3BEsW4GVNpwnmaSZB8qi6OUowRaDcKdvn8Uduo3dXUknHDsap71I1 TIXTY+kJK/1bmb8y/SyOmEEyvMZu4citds+KRcr/43EaOc7qqWBf+2lVtpjhx17DHjTj Gb9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=bgiYf2Ur7sJwKj9pmaYJQNRh6lgiVq7M/phBgQs+oHE=; b=x4EuUOvSkVRE7k/yFawOzQxTunlJ/+t8p8A6M8XLPdjXPF611KnDIaUbnLGQCJlMZi WM/gQZV90i21CZ9S+ydBISbv1y7HIqPE8nVvmX67JVTFUtndMdyT1eyqyTqKyT41oBfW shY51lsYGekeX0yL+YA6YtRWQZcjV49s1ZB68jyhvuUa1tnYGU1jrleEsAZMnFl/OfqR MTvi4xHkJ1NNK/mYQN3CXjOm/pB2OVIB4B4xOdj3ZjsWVMRL8nfSGWhZEx7Mm/YoqMlH dE58HsKS77zKKqPXytnpH4sT0r7UZ1UunJYThDZuSlX0dl3hPOiZUUFxXr18mUGibWMF /TVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=RZZgGP9Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3-v6si9584396pgu.248.2018.08.31.03.35.48; Fri, 31 Aug 2018 03:36:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=RZZgGP9Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728353AbeHaOjA (ORCPT + 99 others); Fri, 31 Aug 2018 10:39:00 -0400 Received: from mail-eopbgr30078.outbound.protection.outlook.com ([40.107.3.78]:23484 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726493AbeHaOi7 (ORCPT ); Fri, 31 Aug 2018 10:38:59 -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=bgiYf2Ur7sJwKj9pmaYJQNRh6lgiVq7M/phBgQs+oHE=; b=RZZgGP9QVTY3aMHEqTRNi8YhZFZfwIgi3jCh5sovJw5qMnnIhrBN7R4tuVKD/2oWz813w3pQmkwDqcWmiJUUWs9fbMLiC/Q/LT5mZi3kg7NNmOO3LaeEXziNhvmqvn9ZZZy8AvQkdw94GQgWoAiDT/QytwGBwOh8iGK9oyEK8nM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by HE1PR04MB1034.eurprd04.prod.outlook.com (2a01:111:e400:581a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.16; Fri, 31 Aug 2018 10:32:00 +0000 From: Yogesh Gaur To: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.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 Subject: [PATCH 2/7] spi: add flags for octal I/O data transfer Date: Fri, 31 Aug 2018 15:59:59 +0530 Message-Id: <1535711404-29528-3-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535711404-29528-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1535711404-29528-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: SG2PR01CA0100.apcprd01.prod.exchangelabs.com (2603:1096:3:15::26) To HE1PR04MB1034.eurprd04.prod.outlook.com (2a01:111:e400:581a::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28f5055d-a3d1-4470-c67b-08d60f2cfed8 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:HE1PR04MB1034; X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB1034;3:yzveqPQgFV/4hPNWxbRBg+eE+vZdLINw/qxVDUKnnozS2tgsEzHCUIVq4wCBu4cMlv3HiRFLZ9DWkMFkl9382Lfgr6aWyexURO4Zmd8vWd+rPjIdBN67TAbBFCP+ms7FqVH4umSCOBQtJFhysy++3oaXf0Fk4MCkJz37kzuxzvLmVHPWykavH0lfeTBDvSXZtFDj91arIuuvkP74/2v9UO3LVdaEkQ2QgqLsr6+yKoTopwxlX+Z4mX5B2WfV4DnM;25:B8ql4o5cWOtijTyo6eA2+SpvDG0Qvr+Ta6aKKtXAOZxeTQ0F4m0stF+3cKZXGPj7A4HpxM8Vas6ORkJFaRI86NFwSkh2RIT54uV+lj7FlQzg8M2Q00Rn72zeKNKLbXS8GKlbPISpYfdIRddvyT1xGbckrERKkRvj1DxryqUtvwCFfoywlp2kDXlI27CdYW6sVKoOyhBvwXeqCrWhf0wiDyEfg+EA9EkJV3sy4Zl/LR86+FOHbXGdVEkhNQczER+8E5U5YcFV09lYyWfJp3g1uQpLfwOK237KWZrZ3RvoutFue0bW5sMsLZZnTaUhjQ5yVP5OHDM6RjExeEdgE0biv9waZZj9EA5ByYmFBwNIeiI=;31:0RwCCGKAiR9TdyD+YX64CXFJQ5YrwoEdvsnNnQmsZwHmuda/1HhA5yQI92xtfyg8v6vLx+jgk655JgqCP2wrpSMxaPybiMPBYD+XGDttttm/Uc4zSCS9cl+LH35AUESQQsrUCtZGPOOq6WXt/8ZoXBiCbTwI6hTjNyx/9R+3kTJwg0hmOlwo8tdBhR1z/uOAI//1J5i8pf+akeW10+U2WT6urh2QnrynAgiuzIsUBBw= X-MS-TrafficTypeDiagnostic: HE1PR04MB1034: X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB1034;20:glIw7VV8s/Et/QpSUNJaXc9w9ggQRCKPPEu3j30PGvgFrAZahZzP0htAcpwWGRxEY4/a31Ur1pAYn9IJGzZoyHaUzE5FgFAMrNwvAa0+3viNbklycbP5967gXIfuPTJcSKxQtbTZN2x9B2HzHIQRKSgmiDraWUTcwuxhjfSUt0/WJusR8ChHCkYTR7IrhNDd7gyfpMX0BdAlr/mGT+W/vfulgyEZ+EBph4SvG1/TvkWmHxgYedP/zT2G9XizuJgNIuzYWk/m4VqgmFybbMy5eZpdl5fxO7z7B1PpnAccIhfCG/peVnBvrQBzwbpJYo+Bq/5p0HkZzy7ADyhCojB/KTR1nHfeH8J+4HkqgMY8RVq2AYPwSiOTYzqe7tIakFqGqgliXYtVK2h9cqgxtD66g8WvZ18trROpY6hz0BZm1XqHz/PggG5AMPYS2GsMjXc7hUXMlTrhSQEgg5h5YPiEwXpjPKXiYcOq2voMi3nScEO2SCfXRHpEqg3tJMRcf5DX;4:kBLVYf15sWuJEjKIsKCTGw8gcSOnEQ2q07iUUSHLCVuE6MWqWj3U/4IsKPhYYZ708dedn20Wl2yXMD6HFPXmbsfZx735FmMrE/tnA4GhIaBtn+KJcvbJGTOG/fPI3wj8M48+IbywxXKSDRwsoX+Yu8rUU3R5av1AAztnmjuF33tzBE2I349u5RIPk48iN+kE6gYGcE7wfo6/vtZMZMLjtuCPGI/IPIg3cHKkmOmXpwIH4jwunydyVqyNcK0rNNMGoq2rzgYbPTFK/9zKvYM3xi13PXJabxYWA8G0M5FOApI6GmGE+H7b/SGpgqYtWK2D X-Microsoft-Antispam-PRVS: 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)(823301075)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:HE1PR04MB1034;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1034; X-Forefront-PRVS: 07817FCC2D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(396003)(39850400004)(376002)(346002)(366004)(136003)(199004)(189003)(48376002)(7736002)(7416002)(8936002)(105586002)(5009440100003)(52116002)(106356001)(51416003)(55236004)(386003)(6506007)(81156014)(81166006)(76176011)(2906002)(86362001)(3846002)(186003)(50466002)(16526019)(6116002)(305945005)(26005)(6486002)(66066001)(47776003)(25786009)(36756003)(5660300001)(97736004)(8676002)(53936002)(6512007)(50226002)(316002)(39060400002)(68736007)(486006)(4326008)(16586007)(11346002)(478600001)(446003)(2616005)(476003)(956004)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1034;H:idcbfarm.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HE1PR04MB1034;23:bToh7JCqZ/zB4nvLXHWp5Y67E6REXyxTkUvDif2mp?= =?us-ascii?Q?LPSztsheTbENbQRUOCy2owAnq6OHskXuHpbnY6dVAYHGzEdjd6FPLQrLdmCm?= =?us-ascii?Q?yghUO8wxOUeDNic33FEbyjViwK4FYJf/XlKXjbG0UagZVJ+8BFHGeDldDFIP?= =?us-ascii?Q?Sxjers7tyw3oaXMDYmIvlZvkaiMy34l9ldb9U/5dsq2Ulkp3p8nboBVq7CdF?= =?us-ascii?Q?0BnacC/dzy8Mu3gISFC35RdjEKyci/Khh34w3KgFDWrBxiLnMUxI0Q45t+7e?= =?us-ascii?Q?ONpAQH+KFssLjE4uvKB4qpR9I07KUTqMP7NLfzJBIy3IiTOFzJ9mHwiYnDPZ?= =?us-ascii?Q?+udUlsr7jBAeLbPqMBUc1oM4CeLQcAzuRPc68QkYiT8G51J8XUPY5RhrO+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BaxzvGJ8ZHhBUHliPeWCLth1XXNaJcbKTSRDQppQvcJgtdK/qsnvbJMy2iHPpAXj3iYDUDpNY3ReLvSpZesrWlj2m+oghiojY2tgrvG4JipSG2bhXS5NU/DFtsemh5SlYRuK0ePDgLDnj/bLLxsXxAto4zsNgyhMcejQ5GR4hIHWyptvO3bEA5lB6qALn+GL5CGY/+s/8p+kTP47OzxH3Wn7b4r3z1FGZTIN6rgLDo SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2018 10:32:00.2476 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28f5055d-a3d1-4470-c67b-08d60f2cfed8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1034 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add flags for Octal I/O data transfer Required for the SPI controller which can do data transfer (TX/RX) on 8 data lines e.g. NXP FlexSPI controller. SPI_TX_OCTAL: transmit with 8 wires SPI_RX_OCTAL: receive with 8 wires Signed-off-by: Yogesh Gaur --- include/linux/spi/spi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 558aeed..180f277 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -164,6 +164,8 @@ struct spi_device { #define SPI_TX_QUAD 0x200 /* transmit with 4 wires */ #define SPI_RX_DUAL 0x400 /* receive with 2 wires */ #define SPI_RX_QUAD 0x800 /* receive with 4 wires */ +#define SPI_TX_OCTAL 0x1000 /* transmit with 8 wires */ +#define SPI_RX_OCTAL 0x2000 /* receive with 8 wires */ int irq; void *controller_state; void *controller_data; -- 2.7.4