From patchwork Tue May 19 17:04:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6439831 Return-Path: X-Original-To: patchwork-linux-arm@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 CC2B4C0432 for ; Tue, 19 May 2015 17:11:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96409203B6 for ; Tue, 19 May 2015 17:11:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 605D620204 for ; Tue, 19 May 2015 17:11:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yukzm-0000r1-VK; Tue, 19 May 2015 17:07:58 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YukzA-0000R0-L6 for linux-arm-kernel@bombadil.infradead.org; Tue, 19 May 2015 17:07:20 +0000 Received: from mail-bl2on0140.outbound.protection.outlook.com ([65.55.169.140] helo=na01-bl2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yukz7-0004ir-MS for linux-arm-kernel@lists.infradead.org; Tue, 19 May 2015 17:07:19 +0000 Received: from BY2PR03CA047.namprd03.prod.outlook.com (10.141.249.20) by BN1PR0301MB0771.namprd03.prod.outlook.com (10.160.78.156) with Microsoft SMTP Server (TLS) id 15.1.166.22; Tue, 19 May 2015 17:05:50 +0000 Received: from BL2FFO11FD026.protection.gbl (2a01:111:f400:7c09::134) by BY2PR03CA047.outlook.office365.com (2a01:111:e400:2c5d::20) with Microsoft SMTP Server (TLS) id 15.1.166.22 via Frontend Transport; Tue, 19 May 2015 17:05:49 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD026.mail.protection.outlook.com (10.173.161.105) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Tue, 19 May 2015 17:05:48 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t4JH5NNY005054; Tue, 19 May 2015 10:05:44 -0700 From: To: , , , , , , Subject: [PATCH v2 5/7] input: keyboard: imx: add snvs power key driver Date: Wed, 20 May 2015 01:04:40 +0800 Message-ID: <1432055082-28983-6-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432055082-28983-1-git-send-email-Frank.Li@freescale.com> References: <1432055082-28983-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD026; 1:+G1TJ7vsw1fn91pEl8KddtbWEIpENb98Yrd6vXCtIwA/4gu4Qvl4eq965agMo9e2iY6Z4a/5WZHKM1TXgyy31bo3/4jgeDvEfbKI5B7cAVrUQuHe601FNCRkOd1RKX1OrUrZ7CFTjwnc+y7U3pmxA3hlfI9UJQdscqVjFQ+lylIQl2rEJSgY780EyBJ8tLVVb9F7MW3xzJo2C7v897VXd2LxFdAzkUrTb+B93uNI4LtI22+yEHvILa2YPQyZIBOPCwtcflw9glYkGaJNb6btZw88gggrfoQFGpJzcQauBi6i063t2/39Lcf26l+6/J5i3XD/MggHzbr95m1ODQufcA== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(87936001)(2201001)(86152002)(50226001)(64706001)(50466002)(47776003)(48376002)(85426001)(6806004)(86362001)(81156007)(105606002)(97736004)(77096005)(4001540100001)(46102003)(68736005)(92566002)(62966003)(77156002)(15975445007)(2950100001)(106466001)(5001960100002)(107886002)(189998001)(5001860100001)(5001830100001)(5001920100001)(5001770100001)(104016003)(50986999)(76176999)(229853001)(36756003)(19580405001)(69596002)(19580395003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR0301MB0771; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0771; 2:KZdhUW6FOpZI5UhHNNjvakAWseh0wvXGNfx5sOlZogkfuMexoIxY9mLSXdRTPpm4; 2:9e7njBEM7lkkDJTjnov8uCZObNk7P8imjYZ8AEViJq39XeqyjfKdS2AFv67MSPyiqkwo8mVV0pnxEXDc7ERQQI2zFe0PWoYUzGmUubV2lddedil8JLM9YksU8Qkpk/P0qlvQ1Wi+PHHFvpzyI+1U0TXkHp2VsC2R+ufHAC5CUBDkDW9CvGH0aH9xj6RU/lJ3CGm/4kq3/KKMancNbIwAkQG9Pc9oE7vKYqDg3wAxZ6Y=; 6:CAaGpOXOP01IgzLAo9dNXVfEstTfxb2jxGjAwiE5pUvNo6TNRZ16qq3kWp1lniqRczotnOCZpJPyrwBZXl50Uw8122ejq6+XYKPo164Cov3fG9B3i7w6IB8pKfvz2xNO7Sx0yjg++3foj6K3bJokNa3103cmK7kfKoehJYog88bNtK+Lox0Q9E4NC5s8uURv5SLZZdgkTJeaiFqnjJnn8TLdKKbaXYu5+kobkYiDpcBZ/yjtYIdaPE2XBqgOWr6NlwrON8oDskcRHbhR0VzTcWnR32qe5mWJJZBAWO57jmpM+tY6VbdJJoK82S2/U3ZcimzGCkNMr//Ci19XBK1KsA==; 3:xssIjlKprLjW4BZPhG9xSaWIRpW8/X78kJR4rdH8KEl3NhmVUSdnqeFab4sTX85hz0ZN6ME6+GiQ/179rVa8RbCDYKqZWTxZVQy5R+TRq7uFvR3Zi3P5mnfVEH9Bfxqm8wDWdtK/4ofC2v0ngKrbz0iDmvF2g8nLCzJTvjo86GR0gRIQGnyfljS9faazhMvjOqaOnyIh+/zMUQPrRrlRmyyoAcQPcNqyu85hx1fyXN2vZoN8ilTqI0X6Tg/mAKks74iD2SRAVAjrilcjfNhpf7UILVSq4TKIfmZtYHMYtjo= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0771; 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:BN1PR0301MB0771; BCL:0; PCL:0; RULEID:; SRVR:BN1PR0301MB0771; X-Forefront-PRVS: 0581B5AB35 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR0301MB0771; 9:PodfqmALrYYq0c7m6NHtXJfhNOZQdWIyGenLeF2m?= =?us-ascii?Q?kjpzw5Sy/nORT5Z1oob3Fe4I3JUxyeCtDMlViRiE37f8s1tMAZgzUcdEF1PP?= =?us-ascii?Q?X/7veMzi+lCLpelOlGN82ffy4FjnD9DNf99lHZhkVNKEKIoXrADJ9lIOkQSt?= =?us-ascii?Q?TG98kUn0I89bRNYLRCpzCXk5JyDgLDOjaNsKKlog2s4PzvexH1Ng6DQU8RPo?= =?us-ascii?Q?KeoKdj7ihayXJBxyFneKWAIIpbhBUbxGYAy1hPyvrjVQnkDycx8xIAPkv2n+?= =?us-ascii?Q?5nPDXC5aylZifeLBSLgl0jIp1ZkoyBWYm341bZEpCBj9jiGAWLCs8G+un+cz?= =?us-ascii?Q?7dEuqTyjeX6Cp86lJtmwlFKqeSQhNTSo8kab19wNdWdZ4J/J9z1507yenM1i?= =?us-ascii?Q?cSPCAYDwUog82fHtYlCvQ/f/ZYVKW8dhBV6weriq5ewvj6YgsTmSQURK5Dxr?= =?us-ascii?Q?PMjf+egp6mSoogv2/kjRq2zvLeOC9i7YMHZdh3EhSYJA+KgIAjsDAQDqRjeW?= =?us-ascii?Q?knDNKwzC5JzKwDVNf9pMFUfdSXmamO5rk803zPHkOVOU55pvVPuKE7cV2QCv?= =?us-ascii?Q?X+uQCAt6cQdE3/uR5gKhDUSoZBXiZe0lA9SvqGjxOAqG4Y/Y+Fz6L0xOLMGK?= =?us-ascii?Q?p2R4b4gTEYu3Gyn+Hb5Iftle1xNk5bXISCntWuqy0IKSOHC7cilNwcmQ3eHb?= =?us-ascii?Q?MY38BcWEDBJuJQ7cUE4SGrNlb4pKDSFNFW5e53wpJrMaSJNiMgSVE9u50/zO?= =?us-ascii?Q?a7nFgQDV08m3YHR/+2trza9XEsNXo6ayTWzVs5Ex1TpZLDFW25Ao8InhIJoS?= =?us-ascii?Q?DTEwoBQxXfSyoeDj5LLYBvnq0Ouxi3b6N4uvcwrlQ6bwbSkRdBddryAVFfiq?= =?us-ascii?Q?ISKp5d/x1JbBcDMJ0ngiL7bkkAYX/m+5mrlqBfkV4UfL2MgqvAQMHr2PvSwM?= =?us-ascii?Q?+MB+xFO/+KpiQJCIAnpaPgIsxYZ7jiP4s+J6E4EaWQiaeEi4pHWVGstfiye9?= =?us-ascii?Q?2x2ll1jcQsx1i0o7TBksGImoCuRlwcXKBFlxFFJ7XfuiiZQnieC9BdKlEbpW?= =?us-ascii?Q?7XzLKwxAupIRkIchlb9Jdwo2XmPZdupxnZLO28lz5aKAEc6cydcZDn4cDJIQ?= =?us-ascii?Q?HdG0GcAzWQxYc/4vKbywy/hCwG2EaETxlQbXHpQXff14phGcbfAuCqL8KwRI?= =?us-ascii?Q?JYRRHwXlkIxwkHY=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0771; 3:QK8MJQYy86zxYNjgU3O8PCQWr4Vg5keojuUeAIBKFHgMXSpC24ENqNyhSWJzygzYpVDxly8fnWThZzUEnQ9Ny4OvuTluY9LCa5EG5YI4cO5FZqCPNX2BDI1bXGlM9FYgA2moYD1hFrCD8tGdxcdTqA==; 10:wetzdXbFyfqU5gUHrzOncxRMs+raKpjwlmAQHt5QmQUeQxoIYTstnW/T5XuClFGb9eBFEV8X9nq70jW+mF8+rV6K6pSGSks733MhQmlLWac=; 6:a3GoAyFpWqhhyr6wKRciLq2ZX5NAxd8bIcYav1Wy8oCgDhlKXsBo2d1KeLbeiHCK X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2015 17:05:48.9897 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0771 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150519_130717_853286_42A1C622 X-CRM114-Status: GOOD ( 19.95 ) X-Spam-Score: -3.0 (---) Cc: devicetree@vger.kernel.org, Frank Li , rtc-linux@googlegroups.com, linux-pm@vger.kernel.org, Robin Gong , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Robin Gong add snvs power key driver. It work in imx chips after i.mx6sx ON/OFF key used power on/off whole system. This driver make it wakeup from suspend state when short press ON/OFF key. Long time press will trig SNVS power off chip without software intervention. Signed-off-by: Robin Gong Signed-off-by: Frank Li --- drivers/input/keyboard/Kconfig | 11 ++ drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/snvs_pwrkey.c | 232 +++++++++++++++++++++++++++++++++++ 3 files changed, 244 insertions(+) create mode 100644 drivers/input/keyboard/snvs_pwrkey.c diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index 106fbac..61b3fab 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig @@ -400,6 +400,17 @@ config KEYBOARD_MPR121 To compile this driver as a module, choose M here: the module will be called mpr121_touchkey. +config KEYBOARD_SNVS_PWRKEY + tristate "IMX SNVS Power Key Driver" + depends on SOC_IMX6SX + depends on OF + help + This is the snvs powerkey driver for the Freescale i.MX application + processors that are newer than i.MX6 SX. + + To compile this driver as a module, choose M here; the + module will be called snvs_pwrkey. + config KEYBOARD_IMX tristate "IMX keypad support" depends on ARCH_MXC diff --git a/drivers/input/keyboard/Makefile b/drivers/input/keyboard/Makefile index df28d55..1d416dd 100644 --- a/drivers/input/keyboard/Makefile +++ b/drivers/input/keyboard/Makefile @@ -51,6 +51,7 @@ obj-$(CONFIG_KEYBOARD_QT1070) += qt1070.o obj-$(CONFIG_KEYBOARD_QT2160) += qt2160.o obj-$(CONFIG_KEYBOARD_SAMSUNG) += samsung-keypad.o obj-$(CONFIG_KEYBOARD_SH_KEYSC) += sh_keysc.o +obj-$(CONFIG_KEYBOARD_SNVS_PWRKEY) += snvs_pwrkey.o obj-$(CONFIG_KEYBOARD_SPEAR) += spear-keyboard.o obj-$(CONFIG_KEYBOARD_STMPE) += stmpe-keypad.o obj-$(CONFIG_KEYBOARD_STOWAWAY) += stowaway.o diff --git a/drivers/input/keyboard/snvs_pwrkey.c b/drivers/input/keyboard/snvs_pwrkey.c new file mode 100644 index 0000000..98c340e --- /dev/null +++ b/drivers/input/keyboard/snvs_pwrkey.c @@ -0,0 +1,232 @@ +/* + * Driver for the IMX SNVS ON/OFF Power Key + * Copyright (C) 2015 Freescale Semiconductor, Inc. All Rights Reserved. + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define SNVS_LPSR_REG 0x4C /* LP Status Register */ +#define SNVS_LPCR_REG 0x38 /* LP Control Register */ +#define SNVS_HPSR_REG 0x14 +#define SNVS_HPSR_BTN BIT(6) +#define SNVS_LPSR_SPO BIT(18) +#define SNVS_LPCR_DEP_EN BIT(5) + +#define DEBOUNCE_TIME 30 +#define REPEAT_INTERVAL 60 + +struct pwrkey_drv_data { + struct regmap *snvs; + int irq; + int keycode; + int keystate; /* 1:pressed */ + int wakeup; + struct timer_list check_timer; + struct input_dev *input; +}; + +static void imx_imx_snvs_check_for_events(unsigned long data) +{ + struct pwrkey_drv_data *pdata = (struct pwrkey_drv_data *) data; + struct input_dev *input = pdata->input; + u32 state; + + regmap_read(pdata->snvs, SNVS_HPSR_REG, &state); + state = state & SNVS_HPSR_BTN ? 1 : 0; + + /* only report new event if status changed */ + if (state ^ pdata->keystate) { + pdata->keystate = state; + input_event(input, EV_KEY, pdata->keycode, state); + input_sync(input); + pm_relax(pdata->input->dev.parent); + } + + /* repeat check if pressed long */ + if (state) { + mod_timer(&pdata->check_timer, + jiffies + msecs_to_jiffies(REPEAT_INTERVAL)); + } +} + +static irqreturn_t imx_snvs_pwrkey_interrupt(int irq, void *dev_id) +{ + struct platform_device *pdev = dev_id; + struct pwrkey_drv_data *pdata = platform_get_drvdata(pdev); + u32 lp_status; + + pm_wakeup_event(pdata->input->dev.parent, 0); + + regmap_read(pdata->snvs, SNVS_LPSR_REG, &lp_status); + if (lp_status & SNVS_LPSR_SPO) + mod_timer(&pdata->check_timer, jiffies + msecs_to_jiffies(DEBOUNCE_TIME)); + + /* clear SPO status */ + regmap_write(pdata->snvs, SNVS_LPSR_REG, SNVS_LPSR_SPO); + + return IRQ_HANDLED; +} + +static void imx_snvs_pwrkey_act(void *pdata) +{ + struct pwrkey_drv_data *pd = pdata; + + del_timer_sync(&pd->check_timer); +} + +static int imx_snvs_pwrkey_probe(struct platform_device *pdev) +{ + struct pwrkey_drv_data *pdata = NULL; + struct input_dev *input = NULL; + struct device_node *np, *snvs_np; + int error; + + /* Get SNVS register Page */ + np = pdev->dev.of_node; + if (!np) + return -ENODEV; + + pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); + if (!pdata) + return -ENOMEM; + + snvs_np = of_get_parent(pdev->dev.of_node); + if (!snvs_np) + return -ENODEV; + + pdata->snvs = syscon_node_to_regmap(snvs_np); + of_node_put(snvs_np); + + if (!pdata->snvs) { + pr_err("Can't get snvs syscon\n"); + return -ENODEV; + } + + if (of_property_read_u32(np, "linux,keycode", &pdata->keycode)) { + pdata->keycode = KEY_POWER; + dev_warn(&pdev->dev, "KEY_POWER without setting in dts\n"); + } + + pdata->wakeup = of_property_read_bool(np, "wakeup"); + + pdata->irq = platform_get_irq(pdev, 0); + if (pdata->irq < 0) { + dev_err(&pdev->dev, "no irq defined in platform data\n"); + return -EINVAL; + } + + regmap_update_bits(pdata->snvs, SNVS_LPCR_REG, SNVS_LPCR_DEP_EN, SNVS_LPCR_DEP_EN); + + /* clear the unexpected interrupt before driver ready */ + regmap_write(pdata->snvs, SNVS_LPSR_REG, SNVS_LPSR_SPO); + + setup_timer(&pdata->check_timer, + imx_imx_snvs_check_for_events, (unsigned long) pdata); + + input = devm_input_allocate_device(&pdev->dev); + if (!input) { + dev_err(&pdev->dev, "failed to allocate the input device\n"); + return -ENOMEM; + } + + input->name = pdev->name; + input->phys = "snvs-pwrkey/input0"; + input->id.bustype = BUS_HOST; + + input_set_capability(input, EV_KEY, pdata->keycode); + + /* input customer action to cancel release timer */ + error = devm_add_action(&pdev->dev, imx_snvs_pwrkey_act, pdata); + if (error) { + dev_err(&pdev->dev, "failed to register remove action\n"); + return error; + } + + error = devm_request_irq(&pdev->dev, pdata->irq, + imx_snvs_pwrkey_interrupt, + 0, pdev->name, pdev); + + if (error) { + dev_err(&pdev->dev, "interrupt not available.\n"); + return error; + } + + error = input_register_device(input); + if (error < 0) { + dev_err(&pdev->dev, "failed to register input device\n"); + input_free_device(input); + return error; + } + + pdata->input = input; + platform_set_drvdata(pdev, pdata); + + device_init_wakeup(&pdev->dev, pdata->wakeup); + + return 0; +} + +static int imx_snvs_pwrkey_suspend(struct device *dev) +{ + struct platform_device *pdev = to_platform_device(dev); + struct pwrkey_drv_data *pdata = platform_get_drvdata(pdev); + + if (device_may_wakeup(&pdev->dev)) + enable_irq_wake(pdata->irq); + + return 0; +} + +static int imx_snvs_pwrkey_resume(struct device *dev) +{ + struct platform_device *pdev = to_platform_device(dev); + struct pwrkey_drv_data *pdata = platform_get_drvdata(pdev); + + if (device_may_wakeup(&pdev->dev)) + disable_irq_wake(pdata->irq); + + return 0; +} + +static const struct of_device_id imx_snvs_pwrkey_ids[] = { + { .compatible = "fsl,sec-v4.0-pwrkey" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, imx_snvs_pwrkey_ids); + +static SIMPLE_DEV_PM_OPS(imx_snvs_pwrkey_pm_ops, imx_snvs_pwrkey_suspend, + imx_snvs_pwrkey_resume); + +static struct platform_driver imx_snvs_pwrkey_driver = { + .driver = { + .name = "snvs_pwrkey", + .pm = &imx_snvs_pwrkey_pm_ops, + .of_match_table = imx_snvs_pwrkey_ids, + }, + .probe = imx_snvs_pwrkey_probe, +}; +module_platform_driver(imx_snvs_pwrkey_driver); + +MODULE_AUTHOR("Freescale Semiconductor"); +MODULE_DESCRIPTION("i.MX snvs power key Driver"); +MODULE_LICENSE("GPL");