M7350/kernel/arch/blackfin/mach-bf548/include/mach/bf54x_keys.h

24 lines
465 B
C
Raw Permalink Normal View History

2024-09-09 08:52:07 +00:00
/*
* Copyright 2007-2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef _BFIN_KPAD_H
#define _BFIN_KPAD_H
struct bfin_kpad_platform_data {
int rows;
int cols;
const unsigned int *keymap;
unsigned short keymapsize;
unsigned short repeat;
u32 debounce_time; /* in ns */
u32 coldrive_time; /* in ns */
u32 keyup_test_interval; /* in ms */
};
#define KEYVAL(col, row, val) (((1 << col) << 24) | ((1 << row) << 16) | (val))
#endif