2 * Keytable for remote controller of HiSilicon tv demo board.
4 * Copyright (c) 2017 HiSilicon Technologies Co., Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
12 #include <linux/module.h>
13 #include <media/rc-map.h>
15 static struct rc_map_table hisi_tv_demo_keymap
[] = {
26 { 0x000000ce, KEY_ENTER
},
27 { 0x000000ca, KEY_UP
},
28 { 0x00000099, KEY_LEFT
},
29 { 0x00000084, KEY_PAGEUP
},
30 { 0x000000c1, KEY_RIGHT
},
31 { 0x000000d2, KEY_DOWN
},
32 { 0x00000089, KEY_PAGEDOWN
},
33 { 0x000000d1, KEY_MUTE
},
34 { 0x00000098, KEY_VOLUMEDOWN
},
35 { 0x00000090, KEY_VOLUMEUP
},
36 { 0x0000009c, KEY_POWER
},
37 { 0x000000d6, KEY_STOP
},
38 { 0x00000097, KEY_MENU
},
39 { 0x000000cb, KEY_BACK
},
40 { 0x000000da, KEY_PLAYPAUSE
},
41 { 0x00000080, KEY_INFO
},
42 { 0x000000c3, KEY_REWIND
},
43 { 0x00000087, KEY_HOMEPAGE
},
44 { 0x000000d0, KEY_FASTFORWARD
},
45 { 0x000000c4, KEY_SOUND
},
48 { 0x00000086, KEY_PROGRAM
},
49 { 0x000000d9, KEY_SUBTITLE
},
50 { 0x00000085, KEY_ZOOM
},
51 { 0x0000009b, KEY_RED
},
52 { 0x0000009a, KEY_GREEN
},
53 { 0x000000c0, KEY_YELLOW
},
54 { 0x000000c2, KEY_BLUE
},
55 { 0x0000009d, KEY_CHANNELDOWN
},
56 { 0x000000cf, KEY_CHANNELUP
},
59 static struct rc_map_list hisi_tv_demo_map
= {
61 .scan
= hisi_tv_demo_keymap
,
62 .size
= ARRAY_SIZE(hisi_tv_demo_keymap
),
63 .rc_proto
= RC_PROTO_NEC
,
64 .name
= RC_MAP_HISI_TV_DEMO
,
68 static int __init
init_rc_map_hisi_tv_demo(void)
70 return rc_map_register(&hisi_tv_demo_map
);
73 static void __exit
exit_rc_map_hisi_tv_demo(void)
75 rc_map_unregister(&hisi_tv_demo_map
);
78 module_init(init_rc_map_hisi_tv_demo
)
79 module_exit(exit_rc_map_hisi_tv_demo
)
81 MODULE_LICENSE("GPL v2");