Message ID | 1436445895-25504-3-git-send-email-ranjit.waghmode@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-spi-owner@kernel.org> X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3E97FC05AC for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 9 Jul 2015 12:46:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6804F2073A for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 9 Jul 2015 12:46:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 24B1320721 for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 9 Jul 2015 12:46:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754471AbbGIMqT (ORCPT <rfc822;patchwork-linux-spi@patchwork.kernel.org>); Thu, 9 Jul 2015 08:46:19 -0400 Received: from mail-bn1on0092.outbound.protection.outlook.com ([157.56.110.92]:18528 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754443AbbGIMqK (ORCPT <rfc822;linux-spi@vger.kernel.org>); Thu, 9 Jul 2015 08:46:10 -0400 Received: from BN1AFFO11FD053.protection.gbl (10.58.52.33) by BN1AFFO11HUB039.protection.gbl (10.58.52.150) with Microsoft SMTP Server (TLS) id 15.1.213.8; Thu, 9 Jul 2015 12:46:08 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BN1AFFO11FD053.mail.protection.outlook.com (10.58.53.68) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Thu, 9 Jul 2015 12:46:08 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:60607 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <ranjit.waghmode@xilinx.com>) id 1ZDBDL-0000ck-Bt; Thu, 09 Jul 2015 05:46:07 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <ranjit.waghmode@xilinx.com>) id 1ZDBDL-0007H6-5N; Thu, 09 Jul 2015 05:46:07 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id t69CjeJS002289; Thu, 9 Jul 2015 05:45:40 -0700 Received: from [172.23.64.207] (helo=xhd-lin64re117.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <ranjitw@xilinx.com>) id 1ZDBDF-0007Ft-Dr; Thu, 09 Jul 2015 05:46:01 -0700 Received: by xhd-lin64re117.xilinx.com (Postfix, from userid 32810) id 83C9A20872; Thu, 9 Jul 2015 18:16:00 +0530 (IST) From: Ranjit Waghmode <ranjit.waghmode@xilinx.com> To: <broonie@kernel.org>, <michal.simek@xilinx.com>, <soren.brinkmann@xilinx.com>, <dwmw2@infradead.org>, <computersforpeace@gmail.com>, <zajec5@gmail.com>, <marex@denx.de>, <shijie.huang@intel.com>, <juhosg@openwrt.org>, <ben@decadent.org.uk> CC: <linux-mtd@lists.infradead.org>, <linux-spi@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <harinik@xilinx.com>, <punnaia@xilinx.com>, <ran27jit@gmail.com>, Ranjit Waghmode <ranjit.waghmode@xilinx.com> Subject: [RFC PATCH 2/2] spi: zynqmp: gqspi: add support for stacked mode configuration Date: Thu, 9 Jul 2015 18:14:55 +0530 Message-ID: <1436445895-25504-3-git-send-email-ranjit.waghmode@xilinx.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1436445895-25504-1-git-send-email-ranjit.waghmode@xilinx.com> References: <1436445895-25504-1-git-send-email-ranjit.waghmode@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21666.003 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD053; 1:iOlat4Cb+EDgOq9XqZaY7BDzVvraV4Ku4rx8l/1inO/iE0g7/4Z40nnWo47lWOQDQcy8feYm1I3q0Yrs45LGbJQ4XD+rQovOG8FVkwK7x1n7Lpzbs2NRIr4UIe6Zm2MEihiPL8B3lZXF7e1X/BJ7al5iRkNLkmDnkuEElW3AytNirOZd3s2rUyZgxz4ADtatgzbWDlYefye1NYXOZHYYP2SWpCgOhMTG1Lh4qV23HB+J7kl+/iB9f4ezr0W4LM/quNKCzuaXcaILO5OgCj4zTkZzBeYAhj8Lxn7jKll+soqifsLupmlhUJKobfAypMulPPQstd0eWXWqf86U3/xaTw== X-Forefront-Antispam-Report: CIP:149.199.60.100; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(103686003)(86362001)(106466001)(2201001)(36386004)(48376002)(50466002)(36756003)(50226001)(92566002)(52956003)(87936001)(42186005)(63266004)(5001770100001)(46386002)(45336002)(5001960100002)(107886002)(76176999)(50986999)(19580395003)(19580405001)(6806004)(77156002)(62966003)(189998001)(33646002)(5003940100001)(2950100001)(46102003)(229853001)(107986001)(921003)(90966001)(217873001)(4001430100001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1AFFO11HUB039; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11HUB039; 2:WhDbYoEhSr3EY3ZTzD0gvJXyeYUFbpTvDyPkATu7zxVtAp4fdJRXNxvdPtWKcq9A; 3:HKWxY5/xbqhyfHrxkCnuetEXBfouj2LUyNqCy8uEhL0lREdiGMXa1sjy8BrRsVyuh/YMvKbmnUAgpogieARQZtJxjBByeWH1KJ1HnypVfkMpSgHffKbcDV0vu9kEGPz+psUE7a0nZv9JRk/UkaxgFgvbqCQ3aqxp6OIcFW1RIANEGCxVt45jZL7wfr+YDIki/J7ei+3B9GWBDdMHISOO6fH7yiry/nqS356EskDbd+bhjQBL6F6KbruUsoPYP9qu; 25:DSwH/0NcvGe03MEryUjZxoALlK62RXTDq6oMDX9I0YsP/IZV6B6WYLjgHLuXLAwwAYh1LouRc1b8B4bALljBoUmezTdwWMk6ejl+1wdFWyzHcamLcJ/la6/L7c8tokfW7KZdctQbULk0eIyppUGjCvUeBjNBhOWmowuz7E9bPIDURdt47I2BAchSsFJmRaelnoMU1JrYCeROSNcaMDZUmAyFqw25g3yhfyJ4JPRMN+0HPb3hVNx1KIj82pGJe42R7IAWnutRKyyaYnD2HwqbVA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1AFFO11HUB039; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11HUB039; 20:BPwEoZmBtlfrsWf4C4P2KndSH8njZS75gPKe9GaDc2LxNyeLWINMQFIRoYghJUqms+1EWhue5A7RrzFnxGBhkxQu5CgWlSEiUF+i+3MFNS+2yBW9vd2ubyJi0veR5lNvMMt6gEpIn6S6QIHcWmb0cMlIB/8v+5LFq5bNDyG+oYFsV5pradi4i7iO9J2DSHYetRGyk9GVwTM/BYcaqCwIcaiaZ5l3L6nYSRcqvjlJ00bq3MO6fZNC0loKwB7YdSI0MURDGKn5sm1hpMYVxdhMGYsyUlqTIuFrgStakLUwoQJsIdrMYLmg/CrqQIqlmn/xG62icokn7f8lFfZuWTdwQKEdIfMFS7PTdouZYzmwgH2drI06UB6gbR8EdRz9660CiL0zaUiQpRv6f7ePH2aGpIsD6XY026tXTyO+VYu/qlVcw+LXen/uBtKxqDZXqWIwRSOxbA001AKvLuMIUY2t4gB7UTEbTAbs+/fmi85akpqUaoXDkWnfpyOh8PMABiJN; 4:FuEgiol+fl2+gmde4iajhtiB+BpEkRv8Xk5I3QcafEqD3qh9nmDk8r58kL6hewwqow1Jwqy0H2pZ4wT1ZHTRavRq5efpBhnvGXzzK0pE3b4kjfNkQblvafGv2psgfreJQvOfRBwRQfh4XRMbQaXiW3fuL9fnO3xzyARWRvbRwnEFDG6O+5Vb71Oj98dM0Vlv+nwbU7axAiLC2fYqCyDCsiToX7ej2hOz5SFjI7otAegbZjbx9F/j/vpZ5Q7cUEh55zKt1E1DzZxobsY1UoHbMCPaJeWhoSglg7THKIBv1p4= BN1AFFO11HUB039: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: <BN1AFFO11HUB039A6B98E26FA6EE26F55E389900@BN1AFFO11HUB039.protection.gbl> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BN1AFFO11HUB039; BCL:0; PCL:0; RULEID:; SRVR:BN1AFFO11HUB039; X-Forefront-PRVS: 0632519F33 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1AFFO11HUB039; 23:IG2xIKRkiub/PpLpg5F/c/oyL80O0XDnJAT2sbd?= =?us-ascii?Q?No7FawPt61CanlVhm7x8t8OyPgr+SzP2Ad+m6QlC55v0N8QTDrvGZK9MPqCa?= =?us-ascii?Q?045dOfZXobelFouLlShDAJq/aPPdGV0tDW24+OscxbtOVgLucc6ggaoOk40b?= =?us-ascii?Q?WchuT20tc2civMzb1RoIZPQUGoj2u4ulNoGbyRJvu0kJ9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QhPrt/Roiuw62l5C75LKq/ahCSQRbC1uoQilI+BMnxsu9yTv?= =?us-ascii?Q?3RTdV7wa+YrY=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11HUB039; 5:SmhSjtAzG+rbtKu73UecRBqIPS7bN5LNDVKEBa8uxe/v++cHhM0QhwbZyghLNBmhZivkDpwRdr3qCOSXrpaQws2xbxDbN7DwOrcsVK3hL6zkfDfk92Gpydm/Il9ZwyYa+e/FHU1xkV8D7O9M26HAzQ==; 24:M4Fk+HV8ND825PdpUIoCnN9PN1Bmjc6PkjBQicGD+kTqszq6v8OZ3eRjWQzpSDKlzoX2I6KbqIT1DcmeToMbETJw5o3QETX2cKGfaG+KT/w= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2015 12:46:08.2536 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1AFFO11HUB039 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-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Thu, Jul 09, 2015 at 06:14:55PM +0530, Ranjit Waghmode wrote: > This patch adds support of stacked mode configuration for > Zynq Ultrascale+ MPSoC GQSPI controller driver. > + } else if (qspi->master->flags & SPI_MASTER_U_PAGE) { Same here, there's no definition of SPI_MASTER_U_PAGE. It doesn't sound very generic but I'm not entirely sure what "stacked mode" is.
diff --git a/drivers/spi/spi-zynqmp-gqspi.c b/drivers/spi/spi-zynqmp-gqspi.c index 271fa80..6c9f7d9 100644 --- a/drivers/spi/spi-zynqmp-gqspi.c +++ b/drivers/spi/spi-zynqmp-gqspi.c @@ -410,6 +410,10 @@ static void zynqmp_qspi_chipselect(struct spi_device *qspi, bool is_high) zynqmp_gqspi_selectslave(xqspi, GQSPI_SELECT_FLASH_CS_BOTH, GQSPI_SELECT_FLASH_BUS_BOTH); + } else if (qspi->master->flags & SPI_MASTER_U_PAGE) { + zynqmp_gqspi_selectflash(xqspi, + GQSPI_SELECT_FLASH_CS_UPPER, + GQSPI_SELECT_FLASH_BUS_LOWER); } else { zynqmp_gqspi_selectslave(xqspi, GQSPI_SELECT_FLASH_CS_LOWER,
This patch adds support of stacked mode configuration for Zynq Ultrascale+ MPSoC GQSPI controller driver. Signed-off-by: Ranjit Waghmode <ranjit.waghmode@xilinx.com> --- drivers/spi/spi-zynqmp-gqspi.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html