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