1*53a370f6SAlexander Voronov // SPDX-License-Identifier: GPL-2.0-or-later
2*53a370f6SAlexander Voronov /*
3*53a370f6SAlexander Voronov  * Toshiba CT-90405 remote controller keytable
4*53a370f6SAlexander Voronov  *
5*53a370f6SAlexander Voronov  * Copyright (C) 2021 Alexander Voronov <avv.0@ya.ru>
6*53a370f6SAlexander Voronov  */
7*53a370f6SAlexander Voronov 
8*53a370f6SAlexander Voronov #include <media/rc-map.h>
9*53a370f6SAlexander Voronov #include <linux/module.h>
10*53a370f6SAlexander Voronov 
11*53a370f6SAlexander Voronov static struct rc_map_table ct_90405[] = {
12*53a370f6SAlexander Voronov 	{ 0x4014, KEY_SWITCHVIDEOMODE },
13*53a370f6SAlexander Voronov 	{ 0x4012, KEY_POWER },
14*53a370f6SAlexander Voronov 	{ 0x4044, KEY_TV },
15*53a370f6SAlexander Voronov 	{ 0x40be43, KEY_3D_MODE },
16*53a370f6SAlexander Voronov 	{ 0x400c, KEY_SUBTITLE },
17*53a370f6SAlexander Voronov 	{ 0x4001, KEY_NUMERIC_1 },
18*53a370f6SAlexander Voronov 	{ 0x4002, KEY_NUMERIC_2 },
19*53a370f6SAlexander Voronov 	{ 0x4003, KEY_NUMERIC_3 },
20*53a370f6SAlexander Voronov 	{ 0x4004, KEY_NUMERIC_4 },
21*53a370f6SAlexander Voronov 	{ 0x4005, KEY_NUMERIC_5 },
22*53a370f6SAlexander Voronov 	{ 0x4006, KEY_NUMERIC_6 },
23*53a370f6SAlexander Voronov 	{ 0x4007, KEY_NUMERIC_7 },
24*53a370f6SAlexander Voronov 	{ 0x4008, KEY_NUMERIC_8 },
25*53a370f6SAlexander Voronov 	{ 0x4009, KEY_NUMERIC_9 },
26*53a370f6SAlexander Voronov 	{ 0x4062, KEY_AUDIO_DESC },
27*53a370f6SAlexander Voronov 	{ 0x4000, KEY_NUMERIC_0 },
28*53a370f6SAlexander Voronov 	{ 0x401a, KEY_VOLUMEUP },
29*53a370f6SAlexander Voronov 	{ 0x401e, KEY_VOLUMEDOWN },
30*53a370f6SAlexander Voronov 	{ 0x4016, KEY_INFO },
31*53a370f6SAlexander Voronov 	{ 0x4010, KEY_MUTE },
32*53a370f6SAlexander Voronov 	{ 0x401b, KEY_CHANNELUP },
33*53a370f6SAlexander Voronov 	{ 0x401f, KEY_CHANNELDOWN },
34*53a370f6SAlexander Voronov 	{ 0x40da, KEY_VENDOR },
35*53a370f6SAlexander Voronov 	{ 0x4066, KEY_PLAYER },
36*53a370f6SAlexander Voronov 	{ 0x4017, KEY_TEXT },
37*53a370f6SAlexander Voronov 	{ 0x4047, KEY_LIST },
38*53a370f6SAlexander Voronov 	{ 0x4073, KEY_PAGEUP },
39*53a370f6SAlexander Voronov 	{ 0x4045, KEY_PROGRAM },
40*53a370f6SAlexander Voronov 	{ 0x4043, KEY_EXIT },
41*53a370f6SAlexander Voronov 	{ 0x4074, KEY_PAGEDOWN },
42*53a370f6SAlexander Voronov 	{ 0x4064, KEY_BACK },
43*53a370f6SAlexander Voronov 	{ 0x405b, KEY_MENU },
44*53a370f6SAlexander Voronov 	{ 0x4019, KEY_UP },
45*53a370f6SAlexander Voronov 	{ 0x4040, KEY_RIGHT },
46*53a370f6SAlexander Voronov 	{ 0x401d, KEY_DOWN },
47*53a370f6SAlexander Voronov 	{ 0x4042, KEY_LEFT },
48*53a370f6SAlexander Voronov 	{ 0x4021, KEY_OK },
49*53a370f6SAlexander Voronov 	{ 0x4053, KEY_REWIND },
50*53a370f6SAlexander Voronov 	{ 0x4067, KEY_PLAY },
51*53a370f6SAlexander Voronov 	{ 0x400d, KEY_FASTFORWARD },
52*53a370f6SAlexander Voronov 	{ 0x4054, KEY_PREVIOUS },
53*53a370f6SAlexander Voronov 	{ 0x4068, KEY_STOP },
54*53a370f6SAlexander Voronov 	{ 0x406a, KEY_PAUSE },
55*53a370f6SAlexander Voronov 	{ 0x4015, KEY_NEXT },
56*53a370f6SAlexander Voronov 	{ 0x4048, KEY_RED },
57*53a370f6SAlexander Voronov 	{ 0x4049, KEY_GREEN },
58*53a370f6SAlexander Voronov 	{ 0x404a, KEY_YELLOW },
59*53a370f6SAlexander Voronov 	{ 0x404b, KEY_BLUE },
60*53a370f6SAlexander Voronov 	{ 0x406f, KEY_RECORD }
61*53a370f6SAlexander Voronov };
62*53a370f6SAlexander Voronov 
63*53a370f6SAlexander Voronov static struct rc_map_list ct_90405_map = {
64*53a370f6SAlexander Voronov 	.map = {
65*53a370f6SAlexander Voronov 		.scan     = ct_90405,
66*53a370f6SAlexander Voronov 		.size     = ARRAY_SIZE(ct_90405),
67*53a370f6SAlexander Voronov 		.rc_proto = RC_PROTO_NEC,
68*53a370f6SAlexander Voronov 		.name     = RC_MAP_CT_90405,
69*53a370f6SAlexander Voronov 	}
70*53a370f6SAlexander Voronov };
71*53a370f6SAlexander Voronov 
init_rc_map_ct_90405(void)72*53a370f6SAlexander Voronov static int __init init_rc_map_ct_90405(void)
73*53a370f6SAlexander Voronov {
74*53a370f6SAlexander Voronov 	return rc_map_register(&ct_90405_map);
75*53a370f6SAlexander Voronov }
76*53a370f6SAlexander Voronov 
exit_rc_map_ct_90405(void)77*53a370f6SAlexander Voronov static void __exit exit_rc_map_ct_90405(void)
78*53a370f6SAlexander Voronov {
79*53a370f6SAlexander Voronov 	rc_map_unregister(&ct_90405_map);
80*53a370f6SAlexander Voronov }
81*53a370f6SAlexander Voronov 
82*53a370f6SAlexander Voronov module_init(init_rc_map_ct_90405)
83*53a370f6SAlexander Voronov module_exit(exit_rc_map_ct_90405)
84*53a370f6SAlexander Voronov 
85*53a370f6SAlexander Voronov MODULE_LICENSE("GPL");
86*53a370f6SAlexander Voronov MODULE_AUTHOR("Alexander Voronov <avv.0@ya.ru>");
87