xref: /openbmc/linux/drivers/media/rc/img-ir/Kconfig (revision ec8f24b7)
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
33635abb70SJames Hogan	help
34635abb70SJames Hogan	   Say Y here to enable support for the NEC, extended NEC, and 32-bit
35635abb70SJames Hogan	   NEC protocols in the ImgTec infrared decoder block.
3669336533SJames Hogan
3769336533SJames Hoganconfig IR_IMG_JVC
3869336533SJames Hogan	bool "JVC protocol support"
3969336533SJames Hogan	depends on IR_IMG_HW
4069336533SJames Hogan	help
4169336533SJames Hogan	   Say Y here to enable support for the JVC protocol in the ImgTec
4269336533SJames Hogan	   infrared decoder block.
43e72b21abSJames Hogan
44e72b21abSJames Hoganconfig IR_IMG_SONY
45e72b21abSJames Hogan	bool "Sony protocol support"
46e72b21abSJames Hogan	depends on IR_IMG_HW
47e72b21abSJames Hogan	help
48e72b21abSJames Hogan	   Say Y here to enable support for the Sony protocol in the ImgTec
49e72b21abSJames Hogan	   infrared decoder block.
503c11305eSJames Hogan
513c11305eSJames Hoganconfig IR_IMG_SHARP
523c11305eSJames Hogan	bool "Sharp protocol support"
533c11305eSJames Hogan	depends on IR_IMG_HW
543c11305eSJames Hogan	help
553c11305eSJames Hogan	   Say Y here to enable support for the Sharp protocol in the ImgTec
563c11305eSJames Hogan	   infrared decoder block.
5746b35083SJames Hogan
5846b35083SJames Hoganconfig IR_IMG_SANYO
5946b35083SJames Hogan	bool "Sanyo protocol support"
6046b35083SJames Hogan	depends on IR_IMG_HW
6146b35083SJames Hogan	help
6246b35083SJames Hogan	   Say Y here to enable support for the Sanyo protocol (used by Sanyo,
6346b35083SJames Hogan	   Aiwa, Chinon remotes) in the ImgTec infrared decoder block.
64aa7383dbSSifan Naeem
65aa7383dbSSifan Naeemconfig IR_IMG_RC5
66aa7383dbSSifan Naeem	bool "Philips RC5 protocol support"
67aa7383dbSSifan Naeem	depends on IR_IMG_HW
68aa7383dbSSifan Naeem	help
69aa7383dbSSifan Naeem	   Say Y here to enable support for the RC5 protocol in the ImgTec
70aa7383dbSSifan Naeem	   infrared decoder block.
71cb9564e1SSifan Naeem
72cb9564e1SSifan Naeemconfig IR_IMG_RC6
73cb9564e1SSifan Naeem	bool "Philips RC6 protocol support"
74cb9564e1SSifan Naeem	depends on IR_IMG_HW
75cb9564e1SSifan Naeem	help
76cb9564e1SSifan Naeem	   Say Y here to enable support for the RC6 protocol in the ImgTec
77cb9564e1SSifan Naeem	   infrared decoder block.
78cb9564e1SSifan Naeem	   Note: This version only supports mode 0.
79