ir: ir support both NEC and RC5 [1/1]
authorQianggui Song <qianggui.song@amlogic.com>
Wed, 6 Mar 2019 08:41:03 +0000 (16:41 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 7 Mar 2019 12:23:57 +0000 (04:23 -0800)
PD#SWPL-5555

Problem:
Current driver does not support both NEC and RC5

Solution:
Add a macro to depecit both NEC and RC5 state

Verify:
X301

Change-Id: I06894d033eabdb22db6e34fc2ad76e0390ef565f
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
include/dt-bindings/input/meson_rc.h

index 9aec87f..82646d5 100644 (file)
@@ -56,6 +56,7 @@
  *2. multi-format IR controller decode other protocol
  */
 #define REMOTE_TYPE_NEC_RC6  ((REMOTE_TYPE_LEGACY_NEC << 8) | REMOTE_TYPE_RC6)
+#define REMOTE_TYPE_NEC_RC5  ((REMOTE_TYPE_LEGACY_NEC << 8) | REMOTE_TYPE_RC5)
 #define REMOTE_TYPE_NEC_TOSHIBA  ((REMOTE_TYPE_LEGACY_NEC << 8) |           \
                        REMOTE_TYPE_TOSHIBA)