0001
0002
0003
0004
0005
0006 #include <media/rc-map.h>
0007 #include <linux/module.h>
0008
0009 static struct rc_map_table pine64[] = {
0010 { 0x40404d, KEY_POWER },
0011 { 0x40401f, KEY_WWW },
0012 { 0x40400a, KEY_MUTE },
0013
0014 { 0x404017, KEY_VOLUMEDOWN },
0015 { 0x404018, KEY_VOLUMEUP },
0016
0017 { 0x404010, KEY_LEFT },
0018 { 0x404011, KEY_RIGHT },
0019 { 0x40400b, KEY_UP },
0020 { 0x40400e, KEY_DOWN },
0021 { 0x40400d, KEY_OK },
0022
0023 { 0x40401d, KEY_MENU },
0024 { 0x40401a, KEY_HOME },
0025
0026 { 0x404045, KEY_BACK },
0027
0028 { 0x404001, KEY_NUMERIC_1 },
0029 { 0x404002, KEY_NUMERIC_2 },
0030 { 0x404003, KEY_NUMERIC_3 },
0031 { 0x404004, KEY_NUMERIC_4 },
0032 { 0x404005, KEY_NUMERIC_5 },
0033 { 0x404006, KEY_NUMERIC_6 },
0034 { 0x404007, KEY_NUMERIC_7 },
0035 { 0x404008, KEY_NUMERIC_8 },
0036 { 0x404009, KEY_NUMERIC_9 },
0037 { 0x40400c, KEY_BACKSPACE },
0038 { 0x404000, KEY_NUMERIC_0 },
0039 { 0x404047, KEY_EPG },
0040 };
0041
0042 static struct rc_map_list pine64_map = {
0043 .map = {
0044 .scan = pine64,
0045 .size = ARRAY_SIZE(pine64),
0046 .rc_proto = RC_PROTO_NECX,
0047 .name = RC_MAP_PINE64,
0048 }
0049 };
0050
0051 static int __init init_rc_map_pine64(void)
0052 {
0053 return rc_map_register(&pine64_map);
0054 }
0055
0056 static void __exit exit_rc_map_pine64(void)
0057 {
0058 rc_map_unregister(&pine64_map);
0059 }
0060
0061 module_init(init_rc_map_pine64)
0062 module_exit(exit_rc_map_pine64)
0063
0064 MODULE_LICENSE("GPL");
0065 MODULE_AUTHOR("Jonas Karlman");