blob: 5d253cd93691d2bec2a12b34fe2791f61e57a09f [file] [log] [blame]
Magnus Dammfc1d0032009-11-27 07:32:24 +00001#ifndef __SH_KEYSC_H__
2#define __SH_KEYSC_H__
Magnus Damm795e6bf2008-03-04 15:23:45 -08003
Magnus Dammcca23d02011-06-18 02:51:52 -07004#define SH_KEYSC_MAXKEYS 64
Magnus Damm795e6bf2008-03-04 15:23:45 -08005
6struct sh_keysc_info {
Magnus Damm3bf12762010-01-21 00:02:36 -08007 enum { SH_KEYSC_MODE_1, SH_KEYSC_MODE_2, SH_KEYSC_MODE_3,
Magnus Damm8f8be242010-02-10 23:03:22 -08008 SH_KEYSC_MODE_4, SH_KEYSC_MODE_5, SH_KEYSC_MODE_6 } mode;
Magnus Damm795e6bf2008-03-04 15:23:45 -08009 int scan_timing; /* 0 -> 7, see KYCR1, SCN[2:0] */
10 int delay;
Kuninori Morimoto1f85d382009-09-15 00:21:34 +000011 int kycr2_delay;
Magnus Damm8f8be242010-02-10 23:03:22 -080012 int keycodes[SH_KEYSC_MAXKEYS]; /* KEYIN * KEYOUT */
Magnus Damm795e6bf2008-03-04 15:23:45 -080013};
14
Magnus Dammfc1d0032009-11-27 07:32:24 +000015#endif /* __SH_KEYSC_H__ */