From patchwork Tue Feb 20 08:40:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 10229553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C30EA602B1 for ; Tue, 20 Feb 2018 08:33:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B47BE2855E for ; Tue, 20 Feb 2018 08:33:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A936F28563; Tue, 20 Feb 2018 08:33:43 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 169542855E for ; Tue, 20 Feb 2018 08:33:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751012AbeBTIdm (ORCPT ); Tue, 20 Feb 2018 03:33:42 -0500 Received: from mail-bn3nam01on0078.outbound.protection.outlook.com ([104.47.33.78]:16512 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750858AbeBTIdi (ORCPT ); Tue, 20 Feb 2018 03:33:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zrLiO0W5UZHkAF8eQJXovs6G+iuu2ij8cvUYP5juOjc=; b=LNg70ilAxBJy0Q/NEkEkwH01TBeOHRBjEEd4XPCU4mFFwH1nps1ya4oOxxhWoMXTZWt/NXFZaiRFeXCJxSUNuMRliytx6goTXp87Xj22vg6zFFam9AKCQ5cA2qA+tbcw7D7QwAR/KlYOzXagEp6W/PUxs2hq0OxLMV1KxVZ5+MA= Received: from SN4PR0201CA0038.namprd02.prod.outlook.com (10.162.76.24) by BN6PR02MB3377.namprd02.prod.outlook.com (10.161.152.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Tue, 20 Feb 2018 08:33:36 +0000 Received: from BL2NAM02FT060.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::207) by SN4PR0201CA0038.outlook.office365.com (2603:10b6:803:2e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.506.18 via Frontend Transport; Tue, 20 Feb 2018 08:33:36 +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;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; 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 BL2NAM02FT060.mail.protection.outlook.com (10.152.76.124) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.506.19 via Frontend Transport; Tue, 20 Feb 2018 08:33:35 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:42273 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eo3Ml-0006JP-6x; Tue, 20 Feb 2018 00:33:35 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1eo3Ml-00076D-5L; Tue, 20 Feb 2018 00:33:35 -0800 Received: from [172.23.37.106] (helo=xhdshubhraj40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eo3Me-00074Q-GF; Tue, 20 Feb 2018 00:33:28 -0800 From: Shubhrajyoti Datta To: CC: , , , , , , Shubhrajyoti Datta Subject: [PATCH 2/2] fpga: reset bridge: Add the reset bridge Date: Tue, 20 Feb 2018 14:10:03 +0530 Message-ID: <1519116003-6967-2-git-send-email-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1519116003-6967-1-git-send-email-shubhrajyoti.datta@xilinx.com> References: <1519116003-6967-1-git-send-email-shubhrajyoti.datta@xilinx.com> X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(346002)(39380400002)(376002)(396003)(2980300002)(438002)(189003)(199004)(107886003)(36386004)(54906003)(575784001)(77096007)(48376002)(9786002)(478600001)(4326008)(50466002)(336011)(316002)(26005)(81156014)(81166006)(8676002)(6666003)(5660300001)(2906002)(8936002)(36756003)(63266004)(6916009)(50226002)(8746002)(305945005)(39060400002)(2950100002)(106002)(5890100001)(59450400001)(51416003)(356003)(76176011)(47776003)(186003)(7696005)(2351001)(106466001)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR02MB3377; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT060; 1:rzS3MS5q1Zgp9csjNfcq5zmjfbqeaE2xlhTpMutu8kszDibNTDaGDaluRD12VQ6urXkSb5BEltiRwJftRLC4pCIYxmcrvmhz38mG89fe5Vu56u6jSNAf25OjfhiUT5mz MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d26d7cc-8b65-4d87-ece7-08d5783ca276 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:BN6PR02MB3377; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3377; 3:T+y18jPFeYWEiBZQFrbdTYzyStqMYDQkaZYuAhpMVFXLU6exv2Wy7h98p3RJOmXvdPFujLT7lb6GuuAP4d1c0ORCP0xLd6TKdcb7RJUDnWSGF3oZuAgkrS9/CVvm221+VxOkH1lCQaMi1ep6AFT4YTk+zYL2s2qlwDT7Sujeu3gheV0mq4S7ieqgarlfMLrrQCaWboXOBhfzL4yYb++0ecLfEgTle1tfS9TmVMzNvLlDWqztkUuyKvX4rF30Kg9ulgVhHG/Fa+4n9Fg/swC6l3yeIykd4eBnIVeU/NeDH5815R0BmAKnOyy/0qcEhznIsqFOiQH/LDxGvph+83HGZevaaO57qJxNiYLZcdLjY4k=; 25:okVdUOefezWD7Ckzm6D7rdjJl21S65mSX21gpdUxcto+I7vkWDCLHpY3WJj+mUPmo76JqSPkwIto5hJ42SnzeABl2O5ixUN6lfxJvMUXuFl3NE6kVMAm6Jfg4ljuzPd6iwWyVX8G2SicU/6RK7r2k0grY0eiCvhT8CUlHlhPMMoFJ5H429r/6l/tzbaIVda6e+AH+q684hxx5ogma/7+t+y/kVLpw/sSyZxbwhmdUbszbri4xsslZIrKtJV9hLNKJojAj/JX+HAkHw3pTBqjOrkDt0N5yjHi1okGuwyK5JSsrED2H9xrgXfoTlqMHlugBaWlyNeSddDbkKRaA/sduw== X-MS-TrafficTypeDiagnostic: BN6PR02MB3377: X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3377; 31:oWxTFRLZD9NFpztHdERI2ZV9oJx/q84liBQeW6S3t+EBAdb9sfKlsxOuZyTXn2Y7OpvnHbV5nHPLKKCu3MQRoTHzQQZ9plWUu+oSbVnRXpViUbhs4QZdDS5BqZ/DrmIFtcsX3ncqMg2zLZoBHxb2m8513+PC2LUhH4GvLOY3AHh0IWTzMrVv57bmra5l4k596L/B1s+JQIE71I0Nq68ifU8dBy1SEl/KjCiiZEYVr84=; 20:xbfOZRgMgmcA0Vc84nlfGnqpjHsDsPmecoGYfGk0qud9OAVtmZNVxqfWXTYuIJOjrsKdGBOIOi1BpTITTuiSf9MG8SfiEUgb2owAgRHY73NmXZRUH5wGZDHlatX67tWUJ+Q7u7nU8KLIiBzrMiLGuF98DiXnI2dzQ9VAIOt8LwEC6ATzeRsxwmQu3xY/Q1GJnWCXuJBntXURFvsOUkHWCJUNWPVOOUj40XZSYGjsqCmivlZc2grPEC35SJlPVLbskRDhQVIHsLDyYL09hi5T6ZYqb6FDu+XA1qTa1e/EX2NBfey2I4OCOHIn2u98C68x11DA8gN8hytDWViF+kX/0MY65jMFi2TQ4SYlRD3tru80PDGRjxnRIgVAfazQirqbdePf+K4P/J/EB0VGYnNipsfoUaZPLDxDKSDAG0xM5+0717iDWfTn8Y939G8EAotCcDAM8M/73bF2WjQ9U1weLgab3DQ0gzcxq1AZuhMm4DG7/QUBYpxTHXDPinnh19yy X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001056)(6040501)(2401047)(8121501046)(5005006)(93006095)(93004095)(3231101)(944501161)(10201501046)(3002001)(6055026)(6041288)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:BN6PR02MB3377; BCL:0; PCL:0; RULEID:; SRVR:BN6PR02MB3377; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3377; 4:SgcU7vcqP5SaKstI5kDUn1/8JME79SX0D74EzgFtBa2K3jGAgg/3DSFWTxYt8bxJlcHFoYFgcHgb1ZNQVOVfPD7+zDmB1f5JzhZeGdb/g3eX4rfFjwhcPOHw2dVnF6vrBAL949v/YfbNYrf1X704unm7d3yHePBqOsdMzZzQLO8KIYAIwBhHUrsF7+D9S/EaMmkRLqpouH15sn95iE/rs0hHPOZ+gzppj8C3umdiLRjZ3/HjNZUQYzrQ7HZS8IeWy/34HuAXMzK6OJPkH1n33ZXMMfk/PReWG6+hAaq5TGNsiSoibukcvDv90hTIlCJJ X-Forefront-PRVS: 05891FB07F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR02MB3377; 23:J1sSV3g50FlsJ4stfLjUq5vrdQShd8U8OkqxGvl+o?= =?us-ascii?Q?th7DOAIeaT+gi+wQ2VWwClmTTwHpScArd5Q/cpqsTUevGO75qTQEFx6lVQeu?= =?us-ascii?Q?BezOL5HcwbSCOH0zx4IktpJMKndSuQZqk4j7C+puHE1U6w+zPk0xyDl3I4lh?= =?us-ascii?Q?JLsYVopxwYnnCNNjcBw6YspNe5hkBDq8ZzXGUrNujv8TNvutMALGVJvu7Qa2?= =?us-ascii?Q?pCVNzrQTJpHXxYbpd0O1yXIz3lMQekiJ+vaXpFfaWgXY/TfjEnXx89x5IlOI?= =?us-ascii?Q?/nwh9t0XOl7dbdZvK5SlxuFNck0txQWff441jq+6UxZi9OAGgEZaw8Sqau/W?= =?us-ascii?Q?Kw5egbJqvthz+ZaKE39y0b+VBJSn3VmUrxMacwLqtjwIYHIfrubp5/daybuo?= =?us-ascii?Q?5K2VsVw1pUrCOjzDZwrUMHK2Vj4GsUiPb5A0r+qbSnsBIOOvtgMj0rTJu/eh?= =?us-ascii?Q?gKS55VYaTr8WNQkhOLylvShVWBPF4eMFFgoow+eQ7hA2weqwSckZ6srNQMsG?= =?us-ascii?Q?DyeI71giGrywiu1pq2hK3XBZZYqITWuarAfQB9iMQeflkEa7KOn39k3i19QV?= =?us-ascii?Q?+1pcuMZ7oriTCyPCDqLirY8a+7z6v3klFZN6ENqDgT+cKKJoZoV/B+tOhm6w?= =?us-ascii?Q?ag64k3He2ZZZFx9HxcYhh0qxWoCSyMWbax4D+xz+zzvb+ZzRyo4WyxBLuNHm?= =?us-ascii?Q?trpqR4Fe/01YoPb004sBl3o2G7hzXnjm7+PxZkwsvPaV9gHypBDbz0Ze16Y9?= =?us-ascii?Q?CjeyJtoeztg9cmEPeTv20H5W/+zirc24BJ05mBRJIs81G1oPOhY6mQF9hfPX?= =?us-ascii?Q?J4zhYxhkgRF2ce9kDNrfjuIcger70eDjwAWvMVFZhfVVuD41Sfp/ABWP156t?= =?us-ascii?Q?RLT3PuDvqQMWEAJkCrnX2RqMXgkMt8crRGu3uXSJ9PXSWFuFr0aOCmmf0TOc?= =?us-ascii?Q?leEk/x+PQq62QSTiNr7IPX8qz/XaGcWOr/wwABuIEX3TJw8gioCsjg/YIj2d?= =?us-ascii?Q?uOutLjfPKcrXvjH4pwrdC7PxCVgoeAwuZqJPlXTXAW1vSkO3RPyi2aelw0Ko?= =?us-ascii?Q?ISI+Lbyp3BFW6/moCCw0IzJebnpF7C2Y9QCimqqk/PKjrEfO+yS5cTsXamrl?= =?us-ascii?Q?cfu4HpVvFpSjxNj1Up9Dq8INCDsbo0AeZjOAoV4GYxFBIWoynyLtVyLRGhCV?= =?us-ascii?Q?aFBya0kNbnWn9g=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3377; 6:EFGrjV6TDLeTawe+n8EetZIEZiMhAu32vVg4fBRL/p94YXrdIWDnTExJN0jPNA7d7AFL3fCg3ACLpV1Mq5i1f8urjs9Be9NqYIR+ns8/1xqZ96YBi63pN2BV4I+PH8Hz5iJO6lZJP/KRg8Ppo1/y8zAf+MvvX/88JvAdIJ4PEWfZrTMPOh/Qc2482oU2xcGyz5IFRgXnaenSVKDrfVc0jkg30wPhnpBpZlT1Z7CmXX8zXyQuc5H3VPyH4RhSrGTR5H2mQNpLtBksGuU6C/JoRX4F0sVQuFKzSJh85/cM3NW1oBEzq13nyI7ZJGh0aHme4/Y1E0qAFDo/U+bCyMqX9ZNnM+uMSCdJ4VOG7CDM61A=; 5:kQ5Y4VUI9Evlyzhg5EzDDYuMT4VPEZWYaQj2WLEkiWpfqpfGpCRHUJwG0RLCh+N2BQ3xhWpBtPqjk7nN3ywxQgMSVmak7S6+XHVRTFC141rx5sq2ZSqbv/M6GTL9OaZeuUuNjT+CXUY3Q3BGnNqTMCKelCT1rUf98wuGsVr0RY0=; 24:LFta+ftZWr8oHXHqzRRBDQNV0fzNvABQp4kyAw7N6UXvvFQnLoG7nmV565r45F2b2IY8otPdkl1oOXjzLX12Sks7+B4f+TGo0oNi/G9GEOQ=; 7:OmYWMxOPURduf19WQp9BquaduyvAtnbVs3gkpm4INnZo/fbsSgda8JES9IMi5E4Pf6qTV2Vyb+HKP62qpDx9nHeEKqBVbTeTxEZjyRUJffyBmWfmYLVQov6DOm7jxGXLLb0CsNph2ioTxeb/lAbLWgye4tWaZDvkIf+gdUVq1OtsiH9XObX0jmiWLzqo18KkkPHaqdWrUmFEEMxE5bLJO/a0b51CEAwcMibSUKeVwxiFAQ8r0zGn/TUmAdknzo7e SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2018 08:33:35.9366 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d26d7cc-8b65-4d87-ece7-08d5783ca276 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: BN6PR02MB3377 Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds the reset bridge. After the bitstream load the reset bridge helps in reseting the programable logic. The reset lines depends on the design. Signed-off-by: Shubhrajyoti Datta --- drivers/fpga/Kconfig | 8 ++++ drivers/fpga/Makefile | 1 + drivers/fpga/xilinx-rst-bridge.c | 100 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 drivers/fpga/xilinx-rst-bridge.c -- 2.1.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. -- To unsubscribe from this list: send the line "unsubscribe linux-fpga" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index ad5448f..752a907 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -117,4 +117,12 @@ config XILINX_PR_DECOUPLER region of the FPGA from the busses while that region is being reprogrammed during partial reconfig. +config XILINX_RST_BRIDGE + tristate "Xilinx Reset bridge" + depends on FPGA_BRIDGE + help + Say Y to enable drivers for Xilinx Reset bridge. + After writing the bitstream there has to be a reset. + The reset lines are design specific. + endif # FPGA diff --git a/drivers/fpga/Makefile b/drivers/fpga/Makefile index f98dcf1..c1b0d13 100644 --- a/drivers/fpga/Makefile +++ b/drivers/fpga/Makefile @@ -23,6 +23,7 @@ obj-$(CONFIG_FPGA_BRIDGE) += fpga-bridge.o obj-$(CONFIG_SOCFPGA_FPGA_BRIDGE) += altera-hps2fpga.o altera-fpga2sdram.o obj-$(CONFIG_ALTERA_FREEZE_BRIDGE) += altera-freeze-bridge.o obj-$(CONFIG_XILINX_PR_DECOUPLER) += xilinx-pr-decoupler.o +obj-$(CONFIG_FPGA_MGR_ZYNQMP_FPGA) += xilinx-rst-bridge.o # High Level Interfaces obj-$(CONFIG_FPGA_REGION) += fpga-region.o diff --git a/drivers/fpga/xilinx-rst-bridge.c b/drivers/fpga/xilinx-rst-bridge.c new file mode 100644 index 0000000..8062283 --- /dev/null +++ b/drivers/fpga/xilinx-rst-bridge.c @@ -0,0 +1,100 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Xilinx FPGA reset bridge. + * Copyright (c) 2018 Xilinx Inc. + * + */ + +#include +#include +#include +#include +#include + +struct xlnx_rst_bridge_priv { + struct device *dev; + bool enable; +}; + +static int xlnx_rst_bridge_enable_set(struct fpga_bridge *bridge, bool enable) +{ + struct xlnx_rst_bridge_priv *priv = bridge->priv; + struct device *dev = priv->dev; + struct reset_control *rstc; + int ret = 0; + + if (enable) { + rstc = of_reset_control_array_get(dev->of_node, false, false); + if (IS_ERR(rstc)) + return PTR_ERR(rstc); + + ret = reset_control_reset(rstc); + + reset_control_put(rstc); + + if (ret) + dev_err(dev, "Reset failed\n"); + } else { + dev_dbg(dev, "Bridge disabled\n"); + } + + if (!ret) + priv->enable = enable; + + return ret; +} + +static int xlnx_rst_bridge_enable_show(struct fpga_bridge *bridge) +{ + struct xlnx_rst_bridge_priv *priv = bridge->priv; + + return priv->enable; +} + +static struct fpga_bridge_ops xlnx_rst_bridge_ops = { + .enable_set = xlnx_rst_bridge_enable_set, + .enable_show = xlnx_rst_bridge_enable_show, +}; + +static int xlnx_rst_bridge_probe(struct platform_device *pdev) +{ + struct xlnx_rst_bridge_priv *priv; + struct device *dev = &pdev->dev; + + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); + if (!priv) + return -ENOMEM; + + priv->dev = dev; + + return fpga_bridge_register(dev, "xlnx_rst_bridge", + &xlnx_rst_bridge_ops, priv); +} + +static int xlnx_rst_bridge_remove(struct platform_device *pdev) +{ + fpga_bridge_unregister(&pdev->dev); + + return 0; +} + +static const struct of_device_id xlnx_rst_bridge_of_match[] = { + { .compatible = "xlnx,rst-bridge", }, + {}, +}; +MODULE_DEVICE_TABLE(of, xlnx_rst_bridge_of_match); + +static struct platform_driver xlnx_rst_bridge_driver = { + .probe = xlnx_rst_bridge_probe, + .remove = xlnx_rst_bridge_remove, + .driver = { + .name = "xlnx_rst_bridge", + .of_match_table = of_match_ptr(xlnx_rst_bridge_of_match), + }, +}; + +module_platform_driver(xlnx_rst_bridge_driver); + +MODULE_DESCRIPTION("Xilinx reset Bridge"); +MODULE_AUTHOR("Shubhrajyoti Datta "); +MODULE_LICENSE("GPL v2");