116216333SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later 232cf86f6SMauro Carvalho Chehab /* 332cf86f6SMauro Carvalho Chehab * DigitalNow TinyTwin remote controller keytable 432cf86f6SMauro Carvalho Chehab * 532cf86f6SMauro Carvalho Chehab * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> 632cf86f6SMauro Carvalho Chehab */ 732cf86f6SMauro Carvalho Chehab 832cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 97a707b89SPaul Gortmaker #include <linux/module.h> 1032cf86f6SMauro Carvalho Chehab 112f4f58d6SMauro Carvalho Chehab static struct rc_map_table digitalnow_tinytwin[] = { 1232cf86f6SMauro Carvalho Chehab { 0x0000, KEY_MUTE }, /* [symbol speaker] */ 1332cf86f6SMauro Carvalho Chehab { 0x0001, KEY_VOLUMEUP }, 1432cf86f6SMauro Carvalho Chehab { 0x0002, KEY_POWER2 }, /* TV [power button] */ 15*1910ea42SBastien Nocera { 0x0003, KEY_NUMERIC_2 }, 16*1910ea42SBastien Nocera { 0x0004, KEY_NUMERIC_3 }, 17*1910ea42SBastien Nocera { 0x0005, KEY_NUMERIC_4 }, 18*1910ea42SBastien Nocera { 0x0006, KEY_NUMERIC_6 }, 19*1910ea42SBastien Nocera { 0x0007, KEY_NUMERIC_7 }, 20*1910ea42SBastien Nocera { 0x0008, KEY_NUMERIC_8 }, 2132cf86f6SMauro Carvalho Chehab { 0x0009, KEY_NUMERIC_STAR }, /* [*] */ 22*1910ea42SBastien Nocera { 0x000a, KEY_NUMERIC_0 }, 2332cf86f6SMauro Carvalho Chehab { 0x000b, KEY_NUMERIC_POUND }, /* [#] */ 2432cf86f6SMauro Carvalho Chehab { 0x000c, KEY_RIGHT }, /* [right arrow] */ 2532cf86f6SMauro Carvalho Chehab { 0x000d, KEY_HOMEPAGE }, /* [symbol home] Start */ 2632cf86f6SMauro Carvalho Chehab { 0x000e, KEY_RED }, /* [red] Videos */ 2732cf86f6SMauro Carvalho Chehab { 0x0010, KEY_POWER }, /* PC [power button] */ 2832cf86f6SMauro Carvalho Chehab { 0x0011, KEY_YELLOW }, /* [yellow] Pictures */ 2932cf86f6SMauro Carvalho Chehab { 0x0012, KEY_DOWN }, /* [down arrow] */ 3032cf86f6SMauro Carvalho Chehab { 0x0013, KEY_GREEN }, /* [green] Music */ 3132cf86f6SMauro Carvalho Chehab { 0x0014, KEY_CYCLEWINDOWS }, /* BACK */ 3232cf86f6SMauro Carvalho Chehab { 0x0015, KEY_FAVORITES }, /* MORE */ 3332cf86f6SMauro Carvalho Chehab { 0x0016, KEY_UP }, /* [up arrow] */ 3432cf86f6SMauro Carvalho Chehab { 0x0017, KEY_LEFT }, /* [left arrow] */ 3532cf86f6SMauro Carvalho Chehab { 0x0018, KEY_OK }, /* OK */ 3632cf86f6SMauro Carvalho Chehab { 0x0019, KEY_BLUE }, /* [blue] MyTV */ 3732cf86f6SMauro Carvalho Chehab { 0x001a, KEY_REWIND }, /* REW [<<] */ 3832cf86f6SMauro Carvalho Chehab { 0x001b, KEY_PLAY }, /* PLAY */ 39*1910ea42SBastien Nocera { 0x001c, KEY_NUMERIC_5 }, 40*1910ea42SBastien Nocera { 0x001d, KEY_NUMERIC_9 }, 4132cf86f6SMauro Carvalho Chehab { 0x001e, KEY_VOLUMEDOWN }, 42*1910ea42SBastien Nocera { 0x001f, KEY_NUMERIC_1 }, 4332cf86f6SMauro Carvalho Chehab { 0x0040, KEY_STOP }, /* STOP */ 4432cf86f6SMauro Carvalho Chehab { 0x0042, KEY_PAUSE }, /* PAUSE */ 4532cf86f6SMauro Carvalho Chehab { 0x0043, KEY_SCREEN }, /* Aspect */ 4632cf86f6SMauro Carvalho Chehab { 0x0044, KEY_FORWARD }, /* FWD [>>] */ 4732cf86f6SMauro Carvalho Chehab { 0x0045, KEY_NEXT }, /* SKIP */ 4832cf86f6SMauro Carvalho Chehab { 0x0048, KEY_RECORD }, /* RECORD */ 4932cf86f6SMauro Carvalho Chehab { 0x0049, KEY_VIDEO }, /* RTV */ 5032cf86f6SMauro Carvalho Chehab { 0x004a, KEY_EPG }, /* Guide */ 5132cf86f6SMauro Carvalho Chehab { 0x004b, KEY_CHANNELUP }, 5232cf86f6SMauro Carvalho Chehab { 0x004c, KEY_HELP }, /* Help */ 5332cf86f6SMauro Carvalho Chehab { 0x004d, KEY_RADIO }, /* Radio */ 5432cf86f6SMauro Carvalho Chehab { 0x004f, KEY_CHANNELDOWN }, 5532cf86f6SMauro Carvalho Chehab { 0x0050, KEY_DVD }, /* DVD */ 5632cf86f6SMauro Carvalho Chehab { 0x0051, KEY_AUDIO }, /* Audio */ 5732cf86f6SMauro Carvalho Chehab { 0x0052, KEY_TITLE }, /* Title */ 5832cf86f6SMauro Carvalho Chehab { 0x0053, KEY_NEW }, /* [symbol PIP?] */ 5932cf86f6SMauro Carvalho Chehab { 0x0057, KEY_MENU }, /* Mouse */ 6032cf86f6SMauro Carvalho Chehab { 0x005a, KEY_PREVIOUS }, /* REPLAY */ 6132cf86f6SMauro Carvalho Chehab }; 6232cf86f6SMauro Carvalho Chehab 63d100e659SMauro Carvalho Chehab static struct rc_map_list digitalnow_tinytwin_map = { 6432cf86f6SMauro Carvalho Chehab .map = { 6532cf86f6SMauro Carvalho Chehab .scan = digitalnow_tinytwin, 6632cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(digitalnow_tinytwin), 676d741bfeSSean Young .rc_proto = RC_PROTO_NEC, 6832cf86f6SMauro Carvalho Chehab .name = RC_MAP_DIGITALNOW_TINYTWIN, 6932cf86f6SMauro Carvalho Chehab } 7032cf86f6SMauro Carvalho Chehab }; 7132cf86f6SMauro Carvalho Chehab 7232cf86f6SMauro Carvalho Chehab static int __init init_rc_map_digitalnow_tinytwin(void) 7332cf86f6SMauro Carvalho Chehab { 74d100e659SMauro Carvalho Chehab return rc_map_register(&digitalnow_tinytwin_map); 7532cf86f6SMauro Carvalho Chehab } 7632cf86f6SMauro Carvalho Chehab 7732cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_digitalnow_tinytwin(void) 7832cf86f6SMauro Carvalho Chehab { 79d100e659SMauro Carvalho Chehab rc_map_unregister(&digitalnow_tinytwin_map); 8032cf86f6SMauro Carvalho Chehab } 8132cf86f6SMauro Carvalho Chehab 8232cf86f6SMauro Carvalho Chehab module_init(init_rc_map_digitalnow_tinytwin) 8332cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_digitalnow_tinytwin) 8432cf86f6SMauro Carvalho Chehab 8532cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8632cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 87