Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754498AbbGIMqf (ORCPT ); Thu, 9 Jul 2015 08:46:35 -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 ); Thu, 9 Jul 2015 08:46:10 -0400 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; From: Ranjit Waghmode To: , , , , , , , , , CC: , , , , , , , Ranjit Waghmode 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: 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?WchuT20tc2civMzb1RoIZPQUGoj2u4ulNoGbyRJvu0kJ9UFtqG0bESVEVBEw?= =?us-ascii?Q?gEIt/H5cTrSxftL0CoCMT5cdzl87tpcZAbYKwProjS6A2C/T5SEDoyDayCpf?= =?us-ascii?Q?O3RzRJ2EN3x9svbNBb+YO3WJxWbblHHAcutBNDMJVRrJBalDgMEGKqvkwgnd?= =?us-ascii?Q?7wvwuNE9J0Uqgc1UMCRm/8V0UkGVwKk4+XBhmxkoG/PlzFrQ2LpCjFqLvpmz?= =?us-ascii?Q?rr2N/D2d6aS48E8dcZemJluUB/TMI26IwsTL7orCowCLm16Hk5SdwPSPH2E0?= =?us-ascii?Q?Pm6s/OKjM9okxClcdqSXWC4hyJyaJFEOCH0nCRg9ZXq9g2UjM4Rbdo+3xNpM?= =?us-ascii?Q?umvVuhjow9AMQGMDYsJ0fCGQSOQBUo+reIIwKpguClhVyKgOXuZv3gmhQLTX?= =?us-ascii?Q?p88llqX4kZr9t/xfu1ByM7L7HtI9AwbASBE7D6wm9egAS1EE2mbrJMCod9OF?= =?us-ascii?Q?zC6WLp2vdRunRhmkYt0oTWGwpzWMKmRFk5PBAO8ju1tvE9ln2sAunQL53wzd?= =?us-ascii?Q?R+bXXrmAGecKZlKuTNi4K1lpsVBAnGZvvEyB+5x+KVOls5eXyy+cSvwe9C0k?= =?us-ascii?Q?XSw3M9uK0HpcWYBSQzU3/mCcbQy37w8Q7/kd4ZOp4dZxnQ7Vn2RQO99xH3OC?= =?us-ascii?Q?tkfxoNK3zoe4but5Swj1R7vK861otCu03qiXyWq9daOllOp5gmD4qI1AV0FF?= =?us-ascii?Q?p4wqOllF0dtjPFLnEMfmY3lNg+CQwPGyxnX7ujU2uch6WTeDNeOng4cG8Znk?= =?us-ascii?Q?aGAfQQoU8LX+r+keGnXqqNXeiDGcwFUkRg/RrSr9FwQXXC+8phnGaqTqNdiS?= =?us-ascii?Q?lSkd4SBzD5ENFvM8yzPIeAy9Wu0COr0ovLNWpaOBwmwBfOOY3eT7s52ACigL?= =?us-ascii?Q?XF8ZD9Tg39mFQhPrt/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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1121 Lines: 31 This patch adds support of stacked mode configuration for Zynq Ultrascale+ MPSoC GQSPI controller driver. Signed-off-by: Ranjit Waghmode --- drivers/spi/spi-zynqmp-gqspi.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/