2 * Keytable for remote controller of HiSilicon poplar 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_poplar_keymap
[] = {
26 { 0x0000b282, KEY_HOMEPAGE
},
27 { 0x0000b2ca, KEY_UP
},
28 { 0x0000b299, KEY_LEFT
},
29 { 0x0000b2c1, KEY_RIGHT
},
30 { 0x0000b2d2, KEY_DOWN
},
31 { 0x0000b2c5, KEY_DELETE
},
32 { 0x0000b29c, KEY_MUTE
},
33 { 0x0000b281, KEY_VOLUMEDOWN
},
34 { 0x0000b280, KEY_VOLUMEUP
},
35 { 0x0000b2dc, KEY_POWER
},
36 { 0x0000b29a, KEY_MENU
},
37 { 0x0000b28d, KEY_SETUP
},
38 { 0x0000b2c5, KEY_BACK
},
39 { 0x0000b295, KEY_PLAYPAUSE
},
40 { 0x0000b2ce, KEY_ENTER
},
41 { 0x0000b285, KEY_CHANNELUP
},
42 { 0x0000b286, KEY_CHANNELDOWN
},
43 { 0x0000b2da, KEY_NUMERIC_STAR
},
44 { 0x0000b2d0, KEY_NUMERIC_POUND
},
47 static struct rc_map_list hisi_poplar_map
= {
49 .scan
= hisi_poplar_keymap
,
50 .size
= ARRAY_SIZE(hisi_poplar_keymap
),
51 .rc_proto
= RC_PROTO_NEC
,
52 .name
= RC_MAP_HISI_POPLAR
,
56 static int __init
init_rc_map_hisi_poplar(void)
58 return rc_map_register(&hisi_poplar_map
);
61 static void __exit
exit_rc_map_hisi_poplar(void)
63 rc_map_unregister(&hisi_poplar_map
);
66 module_init(init_rc_map_hisi_poplar
)
67 module_exit(exit_rc_map_hisi_poplar
)
69 MODULE_LICENSE("GPL v2");