summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPortisch <hugo.portisch@yahoo.de>2019-05-07 13:49:11 +0300
committerDongjin Kim <tobetter@gmail.com>2020-02-13 11:13:40 +0300
commit4b90716edee8c7604699a40f8c94b9858e393efa (patch)
tree8617ecf51d35bf56773ff4cd5b76bca72ca1bcc0
parentb2e999c591896443d34dd5ce141e3f63128ad4cf (diff)
downloadu-boot-4b90716edee8c7604699a40f8c94b9858e393efa.tar.xz
g12a/g12b: scp_remote: add register setup for software decode
Change-Id: I225dffd860af8c6cb92f9179d5fb6cf6f7d045cc
-rw-r--r--arch/arm/cpu/armv8/g12a/firmware/scp_task/scp_remote.c9
-rw-r--r--arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c9
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/g12a/firmware/scp_task/scp_remote.c b/arch/arm/cpu/armv8/g12a/firmware/scp_task/scp_remote.c
index 3139ed620b..c3a1ced609 100644
--- a/arch/arm/cpu/armv8/g12a/firmware/scp_task/scp_remote.c
+++ b/arch/arm/cpu/armv8/g12a/firmware/scp_task/scp_remote.c
@@ -261,6 +261,14 @@ static const reg_remote RDECODEMODE_NEC_RC6_2IN1[] = {
{CONFIG_END, 0}
};
+static const reg_remote RDECODEMODE_SOFTWARE_DECODE[] = {
+ {AO_MF_IR_DEC_BIT_0, 68 << 16 | 44 << 0},
+ {AO_MF_IR_DEC_REG0, 3 << 28 | (0xFA0 << 12) | 0x13},
+ {AO_MF_IR_DEC_REG1, 0xdf44},
+ {AO_MF_IR_DEC_REG2, 0x2},
+ {CONFIG_END, 0}
+};
+
static const reg_remote *remoteregsTab[] = {
RDECODEMODE_NEC,
RDECODEMODE_DUOKAN,
@@ -273,6 +281,7 @@ static const reg_remote *remoteregsTab[] = {
RDECODEMODE_RCMM,
RDECODEMODE_NEC_RC5_2IN1,
RDECODEMODE_NEC_RC6_2IN1,
+ RDECODEMODE_SOFTWARE_DECODE
};
void setremotereg(const reg_remote * r)
diff --git a/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c b/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c
index 3139ed620b..c3a1ced609 100644
--- a/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c
+++ b/arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c
@@ -261,6 +261,14 @@ static const reg_remote RDECODEMODE_NEC_RC6_2IN1[] = {
{CONFIG_END, 0}
};
+static const reg_remote RDECODEMODE_SOFTWARE_DECODE[] = {
+ {AO_MF_IR_DEC_BIT_0, 68 << 16 | 44 << 0},
+ {AO_MF_IR_DEC_REG0, 3 << 28 | (0xFA0 << 12) | 0x13},
+ {AO_MF_IR_DEC_REG1, 0xdf44},
+ {AO_MF_IR_DEC_REG2, 0x2},
+ {CONFIG_END, 0}
+};
+
static const reg_remote *remoteregsTab[] = {
RDECODEMODE_NEC,
RDECODEMODE_DUOKAN,
@@ -273,6 +281,7 @@ static const reg_remote *remoteregsTab[] = {
RDECODEMODE_RCMM,
RDECODEMODE_NEC_RC5_2IN1,
RDECODEMODE_NEC_RC6_2IN1,
+ RDECODEMODE_SOFTWARE_DECODE
};
void setremotereg(const reg_remote * r)