Path: blob/master/arch/arm/mach-davinci/include/mach/keyscan.h
17613 views
/*1* Copyright (C) 2009 Texas Instruments, Inc2*3* Author: Miguel Aguilar <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/1920#ifndef DAVINCI_KEYSCAN_H21#define DAVINCI_KEYSCAN_H2223#include <linux/io.h>2425enum davinci_matrix_types {26DAVINCI_KEYSCAN_MATRIX_4X4,27DAVINCI_KEYSCAN_MATRIX_5X3,28};2930struct davinci_ks_platform_data {31int (*device_enable)(struct device *dev);32unsigned short *keymap;33u32 keymapsize;34u8 rep:1;35u8 strobe;36u8 interval;37u8 matrix_type;38};3940#endif41424344