linux/drivers/input/keyboard/snvs_pwrkey.c

// SPDX-License-Identifier: GPL-2.0+
//
// Driver for the IMX SNVS ON/OFF Power Key
// Copyright (C) 2015 Freescale Semiconductor, Inc. All Rights Reserved.

#include <linux/clk.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/pm_wakeirq.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>

#define SNVS_HPVIDR1_REG
#define SNVS_LPSR_REG
#define SNVS_LPCR_REG
#define SNVS_HPSR_REG
#define SNVS_HPSR_BTN
#define SNVS_LPSR_SPO
#define SNVS_LPCR_DEP_EN

#define DEBOUNCE_TIME
#define REPEAT_INTERVAL

struct pwrkey_drv_data {};

static void imx_imx_snvs_check_for_events(struct timer_list *t)
{}

static irqreturn_t imx_snvs_pwrkey_interrupt(int irq, void *dev_id)
{}

static void imx_snvs_pwrkey_act(void *pdata)
{}

static int imx_snvs_pwrkey_probe(struct platform_device *pdev)
{}

static const struct of_device_id imx_snvs_pwrkey_ids[] =;
MODULE_DEVICE_TABLE(of, imx_snvs_pwrkey_ids);

static struct platform_driver imx_snvs_pwrkey_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();