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	select BITREVERSE
34	help
35	   Say Y here to enable support for the NEC, extended NEC, and 32-bit
36	   NEC protocols in the ImgTec infrared decoder block.
37
38config IR_IMG_JVC
39	bool "JVC protocol support"
40	depends on IR_IMG_HW
41	help
42	   Say Y here to enable support for the JVC protocol in the ImgTec
43	   infrared decoder block.
44
45config IR_IMG_SONY
46	bool "Sony protocol support"
47	depends on IR_IMG_HW
48	help
49	   Say Y here to enable support for the Sony protocol in the ImgTec
50	   infrared decoder block.
51
52config IR_IMG_SHARP
53	bool "Sharp protocol support"
54	depends on IR_IMG_HW
55	help
56	   Say Y here to enable support for the Sharp protocol in the ImgTec
57	   infrared decoder block.
58
59config IR_IMG_SANYO
60	bool "Sanyo protocol support"
61	depends on IR_IMG_HW
62	help
63	   Say Y here to enable support for the Sanyo protocol (used by Sanyo,
64	   Aiwa, Chinon remotes) in the ImgTec infrared decoder block.
65
66config IR_IMG_RC5
67	bool "Philips RC5 protocol support"
68	depends on IR_IMG_HW
69	help
70	   Say Y here to enable support for the RC5 protocol in the ImgTec
71	   infrared decoder block.
72
73config IR_IMG_RC6
74	bool "Philips RC6 protocol support"
75	depends on IR_IMG_HW
76	help
77	   Say Y here to enable support for the RC6 protocol in the ImgTec
78	   infrared decoder block.
79	   Note: This version only supports mode 0.
80