mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 05:16:48 +07:00
2203747c97
Platform data for device drivers should be defined in include/linux/platform_data/*.h, not in the architecture and platform specific directories. This moves such data out of the omap include directories Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Tony Lindgren <tony@atomide.com> Cc: Kevin Hilman <khilman@ti.com> Cc: "Benoît Cousson" <b-cousson@ti.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Ohad Ben-Cohen <ohad@wizery.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Omar Ramirez Luna <omar.ramirez@ti.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com> Cc: Jarkko Nikula <jarkko.nikula@bitmer.com> Cc: Liam Girdwood <lrg@ti.com> Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Cc: Jean Pihet <j-pihet@ti.com> Cc: J Keerthy <j-keerthy@ti.com> Cc: linux-omap@vger.kernel.org
53 lines
1.5 KiB
C
53 lines
1.5 KiB
C
/*
|
|
* arch/arm/plat-omap/include/mach/keypad.h
|
|
*
|
|
* Copyright (C) 2006 Komal Shah <komal_shah802003@yahoo.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef ASMARM_ARCH_KEYPAD_H
|
|
#define ASMARM_ARCH_KEYPAD_H
|
|
|
|
#ifndef CONFIG_ARCH_OMAP1
|
|
#warning Please update the board to use matrix-keypad driver
|
|
#define omap_readw(reg) 0
|
|
#define omap_writew(val, reg) do {} while (0)
|
|
#endif
|
|
#include <linux/input/matrix_keypad.h>
|
|
|
|
struct omap_kp_platform_data {
|
|
int rows;
|
|
int cols;
|
|
const struct matrix_keymap_data *keymap_data;
|
|
bool rep;
|
|
unsigned long delay;
|
|
bool dbounce;
|
|
/* specific to OMAP242x*/
|
|
unsigned int *row_gpios;
|
|
unsigned int *col_gpios;
|
|
};
|
|
|
|
/* Group (0..3) -- when multiple keys are pressed, only the
|
|
* keys pressed in the same group are considered as pressed. This is
|
|
* in order to workaround certain crappy HW designs that produce ghost
|
|
* keypresses. Two free bits, not used by neither row/col nor keynum,
|
|
* must be available for use as group bits. The below GROUP_SHIFT
|
|
* macro definition is based on some prior knowledge of the
|
|
* matrix_keypad defined KEY() macro internals.
|
|
*/
|
|
#define GROUP_SHIFT 14
|
|
#define GROUP_0 (0 << GROUP_SHIFT)
|
|
#define GROUP_1 (1 << GROUP_SHIFT)
|
|
#define GROUP_2 (2 << GROUP_SHIFT)
|
|
#define GROUP_3 (3 << GROUP_SHIFT)
|
|
#define GROUP_MASK GROUP_3
|
|
#if KEY_MAX & GROUP_MASK
|
|
#error Group bits in conflict with keynum bits
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|