summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPortisch <hugo.portisch@yahoo.de>2019-05-13 12:45:07 +0300
committerDongjin Kim <tobetter@gmail.com>2020-02-13 11:13:40 +0300
commitaa89a4b303a2e1eff569354f3cabf461f134d61f (patch)
treeb5c562324ce233cf394ac3c8316fc3eeea2362cd
parent4b90716edee8c7604699a40f8c94b9858e393efa (diff)
downloadu-boot-aa89a4b303a2e1eff569354f3cabf461f134d61f.tar.xz
g12a/g12b: scp_remote: add support for Samsung IR remotes Standard NEC use 9000µs/4500µs sync pulse. Samsung use NEC protocol but with 4500µs/4500µs sync pulse.
Change-Id: I84896234c4b8e786aedea98891f42879548ea0f3
-rw-r--r--arch/arm/cpu/armv8/g12a/firmware/scp_task/scp_remote.c10
-rw-r--r--arch/arm/cpu/armv8/g12b/firmware/scp_task/scp_remote.c10
2 files changed, 10 insertions, 10 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 c3a1ced609..f37d792748 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
@@ -46,7 +46,7 @@ unsigned int usr_ir_proto = 0;
//24M
static const reg_remote RDECODEMODE_NEC[] = {
- {AO_MF_IR_DEC_LDR_ACTIVE, 500 << 16 | 400 << 0},
+ {AO_MF_IR_DEC_LDR_ACTIVE, 500 << 16 | 202 << 0},
{AO_MF_IR_DEC_LDR_IDLE, 300 << 16 | 202 << 0},
{AO_MF_IR_DEC_LDR_REPEAT, 150 << 16 | 80 << 0},
{AO_MF_IR_DEC_BIT_0, 72 << 16 | 40 << 0},
@@ -107,7 +107,7 @@ static const reg_remote RDECODEMODE_RCA[] = {
static const reg_remote RDECODEMODE_NEC_TOSHIBA_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/
@@ -130,7 +130,7 @@ static const reg_remote RDECODEMODE_NEC_TOSHIBA_2IN1[] = {
static const reg_remote RDECODEMODE_NEC_RCA_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/
@@ -212,7 +212,7 @@ static const reg_remote RDECODEMODE_RC6[] = {
static const reg_remote RDECODEMODE_NEC_RC5_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/
@@ -239,7 +239,7 @@ static const reg_remote RDECODEMODE_NEC_RC5_2IN1[] = {
static const reg_remote RDECODEMODE_NEC_RC6_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/
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 c3a1ced609..f37d792748 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
@@ -46,7 +46,7 @@ unsigned int usr_ir_proto = 0;
//24M
static const reg_remote RDECODEMODE_NEC[] = {
- {AO_MF_IR_DEC_LDR_ACTIVE, 500 << 16 | 400 << 0},
+ {AO_MF_IR_DEC_LDR_ACTIVE, 500 << 16 | 202 << 0},
{AO_MF_IR_DEC_LDR_IDLE, 300 << 16 | 202 << 0},
{AO_MF_IR_DEC_LDR_REPEAT, 150 << 16 | 80 << 0},
{AO_MF_IR_DEC_BIT_0, 72 << 16 | 40 << 0},
@@ -107,7 +107,7 @@ static const reg_remote RDECODEMODE_RCA[] = {
static const reg_remote RDECODEMODE_NEC_TOSHIBA_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/
@@ -130,7 +130,7 @@ static const reg_remote RDECODEMODE_NEC_TOSHIBA_2IN1[] = {
static const reg_remote RDECODEMODE_NEC_RCA_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/
@@ -212,7 +212,7 @@ static const reg_remote RDECODEMODE_RC6[] = {
static const reg_remote RDECODEMODE_NEC_RC5_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/
@@ -239,7 +239,7 @@ static const reg_remote RDECODEMODE_NEC_RC5_2IN1[] = {
static const reg_remote RDECODEMODE_NEC_RC6_2IN1[] = {
/*used old decode for NEC*/
- {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)400<<0)},
+ {AO_IR_DEC_LDR_ACTIVE, ((unsigned)500<<16) | ((unsigned)200<<0)},
{AO_IR_DEC_LDR_IDLE, 300<<16 | 200<<0},/*leader idle*/
{AO_IR_DEC_LDR_REPEAT, 150<<16|80<<0}, /*leader repeat*/
{AO_IR_DEC_BIT_0, 72<<16|40<<0 },/*logic '0' or '00'*/