18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig IR_IMG
38c2ecf20Sopenharmony_ci	tristate "ImgTec IR Decoder"
48c2ecf20Sopenharmony_ci	depends on RC_CORE
58c2ecf20Sopenharmony_ci	depends on MIPS || COMPILE_TEST
68c2ecf20Sopenharmony_ci	select IR_IMG_HW if !IR_IMG_RAW
78c2ecf20Sopenharmony_ci	help
88c2ecf20Sopenharmony_ci	   Say Y or M here if you want to use the ImgTec infrared decoder
98c2ecf20Sopenharmony_ci	   functionality found in SoCs such as TZ1090.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciconfig IR_IMG_RAW
128c2ecf20Sopenharmony_ci	bool "Raw decoder"
138c2ecf20Sopenharmony_ci	depends on IR_IMG
148c2ecf20Sopenharmony_ci	help
158c2ecf20Sopenharmony_ci	   Say Y here to enable the raw mode driver which passes raw IR signal
168c2ecf20Sopenharmony_ci	   changes to the IR raw decoders for software decoding. This is much
178c2ecf20Sopenharmony_ci	   less reliable (due to lack of timestamps) and consumes more
188c2ecf20Sopenharmony_ci	   processing power than using hardware decode, but can be useful for
198c2ecf20Sopenharmony_ci	   testing, debug, and to make more protocols available.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciconfig IR_IMG_HW
228c2ecf20Sopenharmony_ci	bool "Hardware decoder"
238c2ecf20Sopenharmony_ci	depends on IR_IMG
248c2ecf20Sopenharmony_ci	help
258c2ecf20Sopenharmony_ci	   Say Y here to enable the hardware decode driver which decodes the IR
268c2ecf20Sopenharmony_ci	   signals in hardware. This is more reliable, consumes less processing
278c2ecf20Sopenharmony_ci	   power since only a single interrupt is received for each scancode,
288c2ecf20Sopenharmony_ci	   and allows an IR scancode to be used as a wake event.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciconfig IR_IMG_NEC
318c2ecf20Sopenharmony_ci	bool "NEC protocol support"
328c2ecf20Sopenharmony_ci	depends on IR_IMG_HW
338c2ecf20Sopenharmony_ci	help
348c2ecf20Sopenharmony_ci	   Say Y here to enable support for the NEC, extended NEC, and 32-bit
358c2ecf20Sopenharmony_ci	   NEC protocols in the ImgTec infrared decoder block.
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciconfig IR_IMG_JVC
388c2ecf20Sopenharmony_ci	bool "JVC protocol support"
398c2ecf20Sopenharmony_ci	depends on IR_IMG_HW
408c2ecf20Sopenharmony_ci	help
418c2ecf20Sopenharmony_ci	   Say Y here to enable support for the JVC protocol in the ImgTec
428c2ecf20Sopenharmony_ci	   infrared decoder block.
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciconfig IR_IMG_SONY
458c2ecf20Sopenharmony_ci	bool "Sony protocol support"
468c2ecf20Sopenharmony_ci	depends on IR_IMG_HW
478c2ecf20Sopenharmony_ci	help
488c2ecf20Sopenharmony_ci	   Say Y here to enable support for the Sony protocol in the ImgTec
498c2ecf20Sopenharmony_ci	   infrared decoder block.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciconfig IR_IMG_SHARP
528c2ecf20Sopenharmony_ci	bool "Sharp protocol support"
538c2ecf20Sopenharmony_ci	depends on IR_IMG_HW
548c2ecf20Sopenharmony_ci	help
558c2ecf20Sopenharmony_ci	   Say Y here to enable support for the Sharp protocol in the ImgTec
568c2ecf20Sopenharmony_ci	   infrared decoder block.
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ciconfig IR_IMG_SANYO
598c2ecf20Sopenharmony_ci	bool "Sanyo protocol support"
608c2ecf20Sopenharmony_ci	depends on IR_IMG_HW
618c2ecf20Sopenharmony_ci	help
628c2ecf20Sopenharmony_ci	   Say Y here to enable support for the Sanyo protocol (used by Sanyo,
638c2ecf20Sopenharmony_ci	   Aiwa, Chinon remotes) in the ImgTec infrared decoder block.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ciconfig IR_IMG_RC5
668c2ecf20Sopenharmony_ci	bool "Philips RC5 protocol support"
678c2ecf20Sopenharmony_ci	depends on IR_IMG_HW
688c2ecf20Sopenharmony_ci	help
698c2ecf20Sopenharmony_ci	   Say Y here to enable support for the RC5 protocol in the ImgTec
708c2ecf20Sopenharmony_ci	   infrared decoder block.
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ciconfig IR_IMG_RC6
738c2ecf20Sopenharmony_ci	bool "Philips RC6 protocol support"
748c2ecf20Sopenharmony_ci	depends on IR_IMG_HW
758c2ecf20Sopenharmony_ci	help
768c2ecf20Sopenharmony_ci	   Say Y here to enable support for the RC6 protocol in the ImgTec
778c2ecf20Sopenharmony_ci	   infrared decoder block.
788c2ecf20Sopenharmony_ci	   Note: This version only supports mode 0.
79