linux/drivers/input/keyboard/spear-keyboard.c

/*
 * SPEAr Keyboard Driver
 * Based on omap-keypad driver
 *
 * Copyright (C) 2010 ST Microelectronics
 * Rajeev Kumar <[email protected]>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2. This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */

#include <linux/clk.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/input.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_wakeup.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/platform_data/keyboard-spear.h>

/* Keyboard Registers */
#define MODE_CTL_REG
#define STATUS_REG
#define DATA_REG
#define INTR_MASK

/* Register Values */
#define NUM_ROWS
#define NUM_COLS
#define MODE_CTL_PCLK_FREQ_SHIFT
#define MODE_CTL_PCLK_FREQ_MSK

#define MODE_CTL_KEYBOARD
#define MODE_CTL_SCAN_RATE_10
#define MODE_CTL_SCAN_RATE_20
#define MODE_CTL_SCAN_RATE_40
#define MODE_CTL_SCAN_RATE_80
#define MODE_CTL_KEYNUM_SHIFT
#define MODE_CTL_START_SCAN

#define STATUS_DATA_AVAIL

#define DATA_ROW_MASK
#define DATA_COLUMN_MASK

#define ROW_SHIFT

struct spear_kbd {};

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

static int spear_kbd_open(struct input_dev *dev)
{}

static void spear_kbd_close(struct input_dev *dev)
{}

#ifdef CONFIG_OF
static int spear_kbd_parse_dt(struct platform_device *pdev,
                                        struct spear_kbd *kbd)
{}
#else
static inline int spear_kbd_parse_dt(struct platform_device *pdev,
				     struct spear_kbd *kbd)
{
	return -ENOSYS;
}
#endif

static int spear_kbd_probe(struct platform_device *pdev)
{}

static int spear_kbd_suspend(struct device *dev)
{}

static int spear_kbd_resume(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(spear_kbd_pm_ops,
				spear_kbd_suspend, spear_kbd_resume);

#ifdef CONFIG_OF
static const struct of_device_id spear_kbd_id_table[] =;
MODULE_DEVICE_TABLE(of, spear_kbd_id_table);
#endif

static struct platform_driver spear_kbd_driver =;
module_platform_driver();

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