162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciconfig IR_IMG
362306a36Sopenharmony_ci	tristate "ImgTec IR Decoder"
462306a36Sopenharmony_ci	depends on RC_CORE
562306a36Sopenharmony_ci	depends on MIPS || COMPILE_TEST
662306a36Sopenharmony_ci	select IR_IMG_HW if !IR_IMG_RAW
762306a36Sopenharmony_ci	help
862306a36Sopenharmony_ci	   Say Y or M here if you want to use the ImgTec infrared decoder
962306a36Sopenharmony_ci	   functionality found in SoCs such as TZ1090.
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciconfig IR_IMG_RAW
1262306a36Sopenharmony_ci	bool "Raw decoder"
1362306a36Sopenharmony_ci	depends on IR_IMG
1462306a36Sopenharmony_ci	help
1562306a36Sopenharmony_ci	   Say Y here to enable the raw mode driver which passes raw IR signal
1662306a36Sopenharmony_ci	   changes to the IR raw decoders for software decoding. This is much
1762306a36Sopenharmony_ci	   less reliable (due to lack of timestamps) and consumes more
1862306a36Sopenharmony_ci	   processing power than using hardware decode, but can be useful for
1962306a36Sopenharmony_ci	   testing, debug, and to make more protocols available.
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciconfig IR_IMG_HW
2262306a36Sopenharmony_ci	bool "Hardware decoder"
2362306a36Sopenharmony_ci	depends on IR_IMG
2462306a36Sopenharmony_ci	help
2562306a36Sopenharmony_ci	   Say Y here to enable the hardware decode driver which decodes the IR
2662306a36Sopenharmony_ci	   signals in hardware. This is more reliable, consumes less processing
2762306a36Sopenharmony_ci	   power since only a single interrupt is received for each scancode,
2862306a36Sopenharmony_ci	   and allows an IR scancode to be used as a wake event.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciconfig IR_IMG_NEC
3162306a36Sopenharmony_ci	bool "NEC protocol support"
3262306a36Sopenharmony_ci	depends on IR_IMG_HW
3362306a36Sopenharmony_ci	select BITREVERSE
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	   Say Y here to enable support for the NEC, extended NEC, and 32-bit
3662306a36Sopenharmony_ci	   NEC protocols in the ImgTec infrared decoder block.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig IR_IMG_JVC
3962306a36Sopenharmony_ci	bool "JVC protocol support"
4062306a36Sopenharmony_ci	depends on IR_IMG_HW
4162306a36Sopenharmony_ci	help
4262306a36Sopenharmony_ci	   Say Y here to enable support for the JVC protocol in the ImgTec
4362306a36Sopenharmony_ci	   infrared decoder block.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciconfig IR_IMG_SONY
4662306a36Sopenharmony_ci	bool "Sony protocol support"
4762306a36Sopenharmony_ci	depends on IR_IMG_HW
4862306a36Sopenharmony_ci	help
4962306a36Sopenharmony_ci	   Say Y here to enable support for the Sony protocol in the ImgTec
5062306a36Sopenharmony_ci	   infrared decoder block.
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciconfig IR_IMG_SHARP
5362306a36Sopenharmony_ci	bool "Sharp protocol support"
5462306a36Sopenharmony_ci	depends on IR_IMG_HW
5562306a36Sopenharmony_ci	help
5662306a36Sopenharmony_ci	   Say Y here to enable support for the Sharp protocol in the ImgTec
5762306a36Sopenharmony_ci	   infrared decoder block.
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ciconfig IR_IMG_SANYO
6062306a36Sopenharmony_ci	bool "Sanyo protocol support"
6162306a36Sopenharmony_ci	depends on IR_IMG_HW
6262306a36Sopenharmony_ci	help
6362306a36Sopenharmony_ci	   Say Y here to enable support for the Sanyo protocol (used by Sanyo,
6462306a36Sopenharmony_ci	   Aiwa, Chinon remotes) in the ImgTec infrared decoder block.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ciconfig IR_IMG_RC5
6762306a36Sopenharmony_ci	bool "Philips RC5 protocol support"
6862306a36Sopenharmony_ci	depends on IR_IMG_HW
6962306a36Sopenharmony_ci	help
7062306a36Sopenharmony_ci	   Say Y here to enable support for the RC5 protocol in the ImgTec
7162306a36Sopenharmony_ci	   infrared decoder block.
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ciconfig IR_IMG_RC6
7462306a36Sopenharmony_ci	bool "Philips RC6 protocol support"
7562306a36Sopenharmony_ci	depends on IR_IMG_HW
7662306a36Sopenharmony_ci	help
7762306a36Sopenharmony_ci	   Say Y here to enable support for the RC6 protocol in the ImgTec
7862306a36Sopenharmony_ci	   infrared decoder block.
7962306a36Sopenharmony_ci	   Note: This version only supports mode 0.
80