linux/drivers/input/keyboard/imx_keypad.c

// SPDX-License-Identifier: GPL-2.0
//
// Driver for the IMX keypad port.
// Copyright (C) 2009 Alberto Panizzo <[email protected]>

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/input.h>
#include <linux/input/matrix_keypad.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/platform_device.h>
#include <linux/slab.h>
#include <linux/timer.h>

/*
 * Keypad Controller registers (halfword)
 */
#define KPCR

#define KPSR
#define KBD_STAT_KPKD
#define KBD_STAT_KPKR
#define KBD_STAT_KDSC
#define KBD_STAT_KRSS
#define KBD_STAT_KDIE
#define KBD_STAT_KRIE
#define KBD_STAT_KPPEN

#define KDDR
#define KPDR

#define MAX_MATRIX_KEY_ROWS
#define MAX_MATRIX_KEY_COLS
#define MATRIX_ROW_SHIFT

#define MAX_MATRIX_KEY_NUM

struct imx_keypad {};

/* Scan the matrix and return the new state in *matrix_volatile_state. */
static void imx_keypad_scan_matrix(struct imx_keypad *keypad,
				  unsigned short *matrix_volatile_state)
{}

/*
 * Compare the new matrix state (volatile) with the stable one stored in
 * keypad->matrix_stable_state and fire events if changes are detected.
 */
static void imx_keypad_fire_events(struct imx_keypad *keypad,
				   unsigned short *matrix_volatile_state)
{}

/*
 * imx_keypad_check_for_events is the timer handler.
 */
static void imx_keypad_check_for_events(struct timer_list *t)
{}

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

static void imx_keypad_config(struct imx_keypad *keypad)
{}

static void imx_keypad_inhibit(struct imx_keypad *keypad)
{}

static void imx_keypad_close(struct input_dev *dev)
{}

static int imx_keypad_open(struct input_dev *dev)
{}

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

static int imx_keypad_probe(struct platform_device *pdev)
{}

static int __maybe_unused imx_kbd_noirq_suspend(struct device *dev)
{}

static int __maybe_unused imx_kbd_noirq_resume(struct device *dev)
{}

static const struct dev_pm_ops imx_kbd_pm_ops =;

static struct platform_driver imx_keypad_driver =;
module_platform_driver();

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