xref: /openbmc/linux/drivers/media/rc/img-ir/Kconfig (revision 4d2e3734)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
254b29120SJames Hoganconfig IR_IMG
354b29120SJames Hogan	tristate "ImgTec IR Decoder"
454b29120SJames Hogan	depends on RC_CORE
543e951e7SJames Hogan	depends on MIPS || COMPILE_TEST
654b29120SJames Hogan	select IR_IMG_HW if !IR_IMG_RAW
754b29120SJames Hogan	help
854b29120SJames Hogan	   Say Y or M here if you want to use the ImgTec infrared decoder
954b29120SJames Hogan	   functionality found in SoCs such as TZ1090.
1054b29120SJames Hogan
1154b29120SJames Hoganconfig IR_IMG_RAW
1254b29120SJames Hogan	bool "Raw decoder"
1354b29120SJames Hogan	depends on IR_IMG
1454b29120SJames Hogan	help
1554b29120SJames Hogan	   Say Y here to enable the raw mode driver which passes raw IR signal
1654b29120SJames Hogan	   changes to the IR raw decoders for software decoding. This is much
1754b29120SJames Hogan	   less reliable (due to lack of timestamps) and consumes more
1854b29120SJames Hogan	   processing power than using hardware decode, but can be useful for
1954b29120SJames Hogan	   testing, debug, and to make more protocols available.
2054b29120SJames Hogan
2154b29120SJames Hoganconfig IR_IMG_HW
2254b29120SJames Hogan	bool "Hardware decoder"
2354b29120SJames Hogan	depends on IR_IMG
2454b29120SJames Hogan	help
2554b29120SJames Hogan	   Say Y here to enable the hardware decode driver which decodes the IR
2654b29120SJames Hogan	   signals in hardware. This is more reliable, consumes less processing
2754b29120SJames Hogan	   power since only a single interrupt is received for each scancode,
2854b29120SJames Hogan	   and allows an IR scancode to be used as a wake event.
29635abb70SJames Hogan
30635abb70SJames Hoganconfig IR_IMG_NEC
31635abb70SJames Hogan	bool "NEC protocol support"
32635abb70SJames Hogan	depends on IR_IMG_HW
33*4d2e3734SArnd Bergmann	select BITREVERSE
34635abb70SJames Hogan	help
35635abb70SJames Hogan	   Say Y here to enable support for the NEC, extended NEC, and 32-bit
36635abb70SJames Hogan	   NEC protocols in the ImgTec infrared decoder block.
3769336533SJames Hogan
3869336533SJames Hoganconfig IR_IMG_JVC
3969336533SJames Hogan	bool "JVC protocol support"
4069336533SJames Hogan	depends on IR_IMG_HW
4169336533SJames Hogan	help
4269336533SJames Hogan	   Say Y here to enable support for the JVC protocol in the ImgTec
4369336533SJames Hogan	   infrared decoder block.
44e72b21abSJames Hogan
45e72b21abSJames Hoganconfig IR_IMG_SONY
46e72b21abSJames Hogan	bool "Sony protocol support"
47e72b21abSJames Hogan	depends on IR_IMG_HW
48e72b21abSJames Hogan	help
49e72b21abSJames Hogan	   Say Y here to enable support for the Sony protocol in the ImgTec
50e72b21abSJames Hogan	   infrared decoder block.
513c11305eSJames Hogan
523c11305eSJames Hoganconfig IR_IMG_SHARP
533c11305eSJames Hogan	bool "Sharp protocol support"
543c11305eSJames Hogan	depends on IR_IMG_HW
553c11305eSJames Hogan	help
563c11305eSJames Hogan	   Say Y here to enable support for the Sharp protocol in the ImgTec
573c11305eSJames Hogan	   infrared decoder block.
5846b35083SJames Hogan
5946b35083SJames Hoganconfig IR_IMG_SANYO
6046b35083SJames Hogan	bool "Sanyo protocol support"
6146b35083SJames Hogan	depends on IR_IMG_HW
6246b35083SJames Hogan	help
6346b35083SJames Hogan	   Say Y here to enable support for the Sanyo protocol (used by Sanyo,
6446b35083SJames Hogan	   Aiwa, Chinon remotes) in the ImgTec infrared decoder block.
65aa7383dbSSifan Naeem
66aa7383dbSSifan Naeemconfig IR_IMG_RC5
67aa7383dbSSifan Naeem	bool "Philips RC5 protocol support"
68aa7383dbSSifan Naeem	depends on IR_IMG_HW
69aa7383dbSSifan Naeem	help
70aa7383dbSSifan Naeem	   Say Y here to enable support for the RC5 protocol in the ImgTec
71aa7383dbSSifan Naeem	   infrared decoder block.
72cb9564e1SSifan Naeem
73cb9564e1SSifan Naeemconfig IR_IMG_RC6
74cb9564e1SSifan Naeem	bool "Philips RC6 protocol support"
75cb9564e1SSifan Naeem	depends on IR_IMG_HW
76cb9564e1SSifan Naeem	help
77cb9564e1SSifan Naeem	   Say Y here to enable support for the RC6 protocol in the ImgTec
78cb9564e1SSifan Naeem	   infrared decoder block.
79cb9564e1SSifan Naeem	   Note: This version only supports mode 0.
80