blob: 5d253cd93691d2bec2a12b34fe2791f61e57a09f [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001#ifndef __SH_KEYSC_H__
2#define __SH_KEYSC_H__
3
4#define SH_KEYSC_MAXKEYS 64
5
6struct sh_keysc_info {
7 enum { SH_KEYSC_MODE_1, SH_KEYSC_MODE_2, SH_KEYSC_MODE_3,
8 SH_KEYSC_MODE_4, SH_KEYSC_MODE_5, SH_KEYSC_MODE_6 } mode;
9 int scan_timing; /* 0 -> 7, see KYCR1, SCN[2:0] */
10 int delay;
11 int kycr2_delay;
12 int keycodes[SH_KEYSC_MAXKEYS]; /* KEYIN * KEYOUT */
13};
14
15#endif /* __SH_KEYSC_H__ */