mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 20:25:31 +07:00
a3b2924547
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 ep93xx 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: Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Ryan Mallon <rmallon@gmail.com> Acked-by: Vinod Koul <vinod.koul@linux.intel.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Jeff Garzik <jgarzik@pobox.com> Cc: Dan Williams <djbw@fb.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Liam Girdwood <lrg@ti.com> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.de> Cc: Mika Westerberg <mika.westerberg@iki.fi> Cc: Axel Lin <axel.lin@gmail.com>
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* arch/arm/mach-ep93xx/include/mach/ep93xx_keypad.h
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_EP93XX_KEYPAD_H
|
|
#define __ASM_ARCH_EP93XX_KEYPAD_H
|
|
|
|
struct matrix_keymap_data;
|
|
|
|
/* flags for the ep93xx_keypad driver */
|
|
#define EP93XX_KEYPAD_DISABLE_3_KEY (1<<0) /* disable 3-key reset */
|
|
#define EP93XX_KEYPAD_DIAG_MODE (1<<1) /* diagnostic mode */
|
|
#define EP93XX_KEYPAD_BACK_DRIVE (1<<2) /* back driving mode */
|
|
#define EP93XX_KEYPAD_TEST_MODE (1<<3) /* scan only column 0 */
|
|
#define EP93XX_KEYPAD_KDIV (1<<4) /* 1/4 clock or 1/16 clock */
|
|
#define EP93XX_KEYPAD_AUTOREPEAT (1<<5) /* enable key autorepeat */
|
|
|
|
/**
|
|
* struct ep93xx_keypad_platform_data - platform specific device structure
|
|
* @keymap_data: pointer to &matrix_keymap_data
|
|
* @debounce: debounce start count; terminal count is 0xff
|
|
* @prescale: row/column counter pre-scaler load value
|
|
* @flags: see above
|
|
*/
|
|
struct ep93xx_keypad_platform_data {
|
|
struct matrix_keymap_data *keymap_data;
|
|
unsigned int debounce;
|
|
unsigned int prescale;
|
|
unsigned int flags;
|
|
};
|
|
|
|
#define EP93XX_MATRIX_ROWS (8)
|
|
#define EP93XX_MATRIX_COLS (8)
|
|
|
|
#endif /* __ASM_ARCH_EP93XX_KEYPAD_H */
|