From patchwork Fri May 22 14:36:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6465241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6D0119F46A for ; Fri, 22 May 2015 14:44:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E26B20495 for ; Fri, 22 May 2015 14:44:39 +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 D7BE620494 for ; Fri, 22 May 2015 14:44:37 +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 1Yvo8C-0003oW-E2; Fri, 22 May 2015 14:41:00 +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 1Yvo5P-000195-VD for linux-arm-kernel@bombadil.infradead.org; Fri, 22 May 2015 14:38:08 +0000 Received: from mail-bn1bn0102.outbound.protection.outlook.com ([157.56.110.102] helo=na01-bn1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yvo5M-0000Cm-Oo for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2015 14:38:06 +0000 Received: from BN3PR0301CA0084.namprd03.prod.outlook.com (10.160.152.180) by DM2PR0301MB0782.namprd03.prod.outlook.com (10.160.97.153) with Microsoft SMTP Server (TLS) id 15.1.172.22; Fri, 22 May 2015 14:37:39 +0000 Received: from BN1BFFO11FD032.protection.gbl (2a01:111:f400:7c10::1:109) by BN3PR0301CA0084.outlook.office365.com (2a01:111:e400:401e::52) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Fri, 22 May 2015 14:37:39 +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 BN1BFFO11FD032.mail.protection.outlook.com (10.58.144.95) with Microsoft SMTP Server (TLS) id 15.1.172.14 via Frontend Transport; Fri, 22 May 2015 14:37:38 +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 t4MEbKvE021930; Fri, 22 May 2015 07:37:35 -0700 From: To: , , , , , Subject: [PATCH v4 4/6] input: keyboard: imx: add snvs power key driver Date: Fri, 22 May 2015 22:36:37 +0800 Message-ID: <1432305399-30571-5-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432305399-30571-1-git-send-email-Frank.Li@freescale.com> References: <1432305399-30571-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD032; 1:q7H5wtzvvij8ga6rbcWfhGifqfZ/0J9ZutnkY0xdAG0S9K7NA683xNjJEzmnLub4xgE1Bgqzt3GnN3B695k8BeHIRWP7eHanPQuugeYzh/D9tqbuLuenWf5OWCP0mZOnkjvi5PTcdbLBmcTbdaENeL1nPolXsWVRe3L6attM88MYRRi76vT5DcSOsxUN8AosxGQefWKba7p0EKgOYgk1mBUTCLXNvzYikl2xzgF45DnwqeaM5wy8uAyx9wGzeZnvQFWLDOCUvfGKgjB43fjOpFfC8I5aAumuJlMw4eFNf1scCuABrlZT3+M+GR5k1snBaRf8MzN01lHx5iWlYt9LZg== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(77096005)(68736005)(15975445007)(5001830100001)(19580395003)(19580405001)(5001860100001)(50466002)(105606002)(69596002)(48376002)(97736004)(4001540100001)(62966003)(189998001)(107886002)(81156007)(5001960100002)(46102003)(36756003)(77156002)(5001770100001)(2950100001)(229853001)(104016003)(106466001)(6806004)(47776003)(64706001)(50226001)(50986999)(76176999)(85426001)(86152002)(2201001)(86362001)(87936001)(92566002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0782; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0782; 2:wdtv3oZwfLW90Eahp0OshxaV/xenerVE0BBTC75KU9MOVgO6ixlgX5ZnG/YlqnZu; 2:fRVEgVLdARr275QSuNC1HEqadk4CAA8o4FnNSilil6G7JZzdTZNWnCNnbzTaCzfXa6OD833v6G2ZvM6GzWKQMny8ed7K5JXnjdgR1wUuWKqvtN7yHfdiiFzOkubS8yYR4Py+TzWpPuI++y5I/VKL6Hpr0pctrmyi3TZq0mY+khu7vam+BW3RNQRhxtdWhu/7ENzIhKnTkhMsBB9LZbzzGeF1YjCgAFGo1Ix1XWVRdyA=; 6:lOR3ze8+8uxOWj4YQurX9BW77aWhL0mPXCHzfRkv4xxzxn4lAhJdu/lRR6m5dqCwMg1Hq0FW+65iJ91gX51dQug6c2XNxviAMSS75D8zeZBdqyptrgpSdc/7feJuza/NitEwlzwZV+9W6/c/hs0htvrer0ROiVQFTZVs7LLBoLd5ufJ3zRPYFISm1aiG9LL3h13OVWHBzMJ2aaRred0DkcmXYxLdirySFPLk13A5uOgsY7mpAbc1M1dqIINmM5/QeloppAzFQWLVnKedEXUDwXm5h/upUVSsTnS4qAemjvlDn27AF7csvr/3n+N4xNDy63njNLrfPc+emltdL6eYhQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0782; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520002)(3002001); SRVR:DM2PR0301MB0782; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0782; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0782; 3:f33bMu1661p5qUETQPS4QXC2zk1FhIy3/zchKokJOQ/BxV42I2zOHgozz5tCrYsvkHtgwW7utMNh8D0NRBmsgXEiZPNKmFy4o1d16nSkVFWQ4sdc3i6Fzy3uwRg1mK2Y6AjHv1X+VTimlLY9TV7a2Cb0oOkkZ7sA1iYW+MKyDIHiDGBPwvG7bkDktlEUFr4EkS3jaq+/beUVRb4nVCrEt5uLkQ2rgc3SGn1PU6hKbOVJKwfjYQT/7aXhwSL1v3tsHew0p1r4hZsi8OWowAeyL5g8PS/9ruBe2N/uyPjL/xnfqvcMEF8KOpe6SsFrv8jm X-Forefront-PRVS: 058441C12A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0782; 9:OodL0RIrB+QaTdqSmnF98CyjPq+TBo+jWVNIzR+T?= =?us-ascii?Q?lukEp8SA3qEaKJ2tDQ0q+ukWIFPI6N/EeqNIKbe6WhZPx3iNl63PXw6dwJ51?= =?us-ascii?Q?IDlSJAwd4J+3Pm+gP/SitDKH86E38dIMOM88j+yw1jfOM93yXN8w5dkQldFO?= =?us-ascii?Q?1vN8wHEkKWPaCySjbRkSYG5LsfhBFcZVNj7CuphA+9NTM5t8A6gpFLUrg4Db?= =?us-ascii?Q?cp+knvEbmQ8sAXXhhuG26Q4Yewp8JJ3aLgzkOuUmXF37YEu5InzVKW/1AdLq?= =?us-ascii?Q?8F/3jNTsFg+P2Xo8ImtyDtAwuA+XMwK/VGpeUpzthNcSvniK/GapbzWjIXih?= =?us-ascii?Q?5aKi6/HeNhGRh+pjwHvDPSzsBLKhArsqlPptyU9zjspS9WCGVHC/iIUlogem?= =?us-ascii?Q?kSVyXlC33+h13I3H1ZkZQeO3Y301I7ilgL9peGdAP90qll3ZJNWD/HV677mO?= =?us-ascii?Q?jGWLvHJ2U+KomQ/Wr2zBMm8BT5XdSBoiukRBjfuF0S/jBzbc/TMhjezqUZpi?= =?us-ascii?Q?N57MDm+I76VkFbwKYYAyZjgosXirNmMDBAdRtOsTjUcFRm0JNAsPafVV3F6t?= =?us-ascii?Q?zImcl0teSACvAO7QQc+jJrlBuvRXDukT19znPyxqBIUu8IYS41yuVPJGe7/E?= =?us-ascii?Q?yDTYpWbHy+ym4MJ5dOviqWwfTNemp0qw/Wz1RdvvWhVcDN6RVP/L6pBAD/un?= =?us-ascii?Q?L5fgL14oEz6oJAmf6MDpNbRebkKVZXGDhprRHcQ2mpAT+LuG76KK432FWT63?= =?us-ascii?Q?xIJbBf1RDEtCDJCxTRO8oy8ZB3joZXgxoeZRBqtuZ3CJfhbtYMM7VUxTf5IA?= =?us-ascii?Q?k8zEPvZh7Vphkz1txn3OlbG65uOgIU0agUSlfXm2aGXvJz5uhUm4ynOYjoHb?= =?us-ascii?Q?gFsKria5vaVFp079zWe43Vas05dURw4ZtSk6FB304tpbiN9IDWnselNicVnL?= =?us-ascii?Q?q5z1eJ5VxnEdOKWVpKNZnuizz7ZWP5No5CuYt7uEx9tncUA05m5AHOWFCTgM?= =?us-ascii?Q?/uICE+z+27NIdSHTeGTmvsct/hMF2QWipRQrhcIgAmmqg87kFIy/hw1S0v0R?= =?us-ascii?Q?lXEm/p2KdhgQeN2qtbo9KrDBpH4exp18blj43K8YVwe+OuWBVQZ/+3TwwvVH?= =?us-ascii?Q?Z9mbAsp1UilflW9wmY/58Nz9AfG1uZWP?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0782; 3:4y2+AFmMJV1xrNVW2iKfWGj+JGtcFSDLKOdaJpJfLTfffah4bSEQv+gmIJUXlvR8drJW2Yx8pNUhQ7T+7MBIm8foLZ/ZV2jm/8QvP2RruTXkpcwsJsoXHCxcsLO1AVLjIx2QWG2rWmHnTT2lfu8NUg==; 10:aQdy+MiQ4H/4DOIe+I8MjENvuaFcGHa7uHatl3A57NnsOYhLUee2u9veycppWWQmwLejolh6eIzcqYVa83Gax7p5kQhdl+8UKRijf/umtLA=; 6:bExnZISm7eDsPiRAY6CxphPMgqkSo4No57MaUYuF4KjMFWfO+FhhJzEDJWH1u0b/ X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2015 14:37:38.5919 (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: DM2PR0301MB0782 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150522_103804_964050_5B2B3746 X-CRM114-Status: GOOD ( 19.50 ) X-Spam-Score: -3.0 (---) Cc: devicetree@vger.kernel.org, Frank Li , rtc-linux@googlegroups.com, 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");