xref: /linux/drivers/media/rc/img-ir/Kconfig (revision 23004ec330925e6834c8ddac00e3dd12eb5fb345)
1# SPDX-License-Identifier: GPL-2.0-only
2config IR_IMG
3	tristate "ImgTec IR Decoder"
4	depends on RC_CORE
5	depends on MIPS || COMPILE_TEST
6	select IR_IMG_HW if !IR_IMG_RAW
7	help
8	   Say Y or M here if you want to use the ImgTec infrared decoder
9	   functionality found in SoCs such as TZ1090.
10
11config IR_IMG_RAW
12	bool "Raw decoder"
13	depends on IR_IMG
14	help
15	   Say Y here to enable the raw mode driver which passes raw IR signal
16	   changes to the IR raw decoders for software decoding. This is much
17	   less reliable (due to lack of timestamps) and consumes more
18	   processing power than using hardware decode, but can be useful for
19	   testing, debug, and to make more protocols available.
20
21config IR_IMG_HW
22	bool "Hardware decoder"
23	depends on IR_IMG
24	help
25	   Say Y here to enable the hardware decode driver which decodes the IR
26	   signals in hardware. This is more reliable, consumes less processing
27	   power since only a single interrupt is received for each scancode,
28	   and allows an IR scancode to be used as a wake event.
29
30config IR_IMG_NEC
31	bool "NEC protocol support"
32	depends on IR_IMG_HW
33	help
34	   Say Y here to enable support for the NEC, extended NEC, and 32-bit
35	   NEC protocols in the ImgTec infrared decoder block.
36
37config IR_IMG_JVC
38	bool "JVC protocol support"
39	depends on IR_IMG_HW
40	help
41	   Say Y here to enable support for the JVC protocol in the ImgTec
42	   infrared decoder block.
43
44config IR_IMG_SONY
45	bool "Sony protocol support"
46	depends on IR_IMG_HW
47	help
48	   Say Y here to enable support for the Sony protocol in the ImgTec
49	   infrared decoder block.
50
51config IR_IMG_SHARP
52	bool "Sharp protocol support"
53	depends on IR_IMG_HW
54	help
55	   Say Y here to enable support for the Sharp protocol in the ImgTec
56	   infrared decoder block.
57
58config IR_IMG_SANYO
59	bool "Sanyo protocol support"
60	depends on IR_IMG_HW
61	help
62	   Say Y here to enable support for the Sanyo protocol (used by Sanyo,
63	   Aiwa, Chinon remotes) in the ImgTec infrared decoder block.
64
65config IR_IMG_RC5
66	bool "Philips RC5 protocol support"
67	depends on IR_IMG_HW
68	help
69	   Say Y here to enable support for the RC5 protocol in the ImgTec
70	   infrared decoder block.
71
72config IR_IMG_RC6
73	bool "Philips RC6 protocol support"
74	depends on IR_IMG_HW
75	help
76	   Say Y here to enable support for the RC6 protocol in the ImgTec
77	   infrared decoder block.
78	   Note: This version only supports mode 0.
79