Skip to content

Commit a99d334

Browse files
authored
Merge pull request #495 from FrameworkComputer/hx30.disable_control_extended_msg
Disable CYPD extended message control
2 parents b564a18 + 071f0db commit a99d334

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

board/hx30/cypress5525.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ int cyp5525_setup(int controller)
480480
*/
481481

482482
int rv, data, i;
483-
#define CYPD_SETUP_CMDS_LEN 7
483+
#define CYPD_SETUP_CMDS_LEN 5
484484
struct {
485485
int reg;
486486
int value;
@@ -491,8 +491,6 @@ int cyp5525_setup(int controller)
491491
{ CYP5525_PD_CONTROL_REG(1), CYPD_PD_CMD_SET_TYPEC_1_5A, CYP5525_PORT1_INTR}, /* Set the port 1 PDO 1.5A */
492492
{ CYP5525_EVENT_MASK_REG(0), 0x7ffff, 4, CYP5525_PORT0_INTR}, /* Set the port 0 event mask */
493493
{ CYP5525_EVENT_MASK_REG(1), 0x7ffff, 4, CYP5525_PORT1_INTR }, /* Set the port 1 event mask */
494-
{ CYP5525_VDM_EC_CONTROL_REG(0), CYP5525_EXTEND_MSG_CTRL_EN, 1, CYP5525_PORT0_INTR}, /* Set the port 0 event mask */
495-
{ CYP5525_VDM_EC_CONTROL_REG(1), CYP5525_EXTEND_MSG_CTRL_EN, 1, CYP5525_PORT1_INTR }, /* Set the port 1 event mask */
496494
{ CYP5525_PD_CONTROL_REG(0), CYPD_PD_CMD_EC_INIT_COMPLETE, CYP5525_PORT0_INTR }, /* EC INIT Complete */
497495
};
498496
BUILD_ASSERT(ARRAY_SIZE(cypd_setup_cmds) == CYPD_SETUP_CMDS_LEN);
@@ -971,7 +969,7 @@ void cyp5525_port_int(int controller, int port)
971969
uint16_t i2c_port = pd_chip_config[controller].i2c_port;
972970
uint16_t addr_flags = pd_chip_config[controller].addr_flags;
973971
int port_idx = (controller << 1) + port;
974-
enum pd_msg_type sop_type;
972+
/* enum pd_msg_type sop_type; */
975973
rv = i2c_read_offset16_block(i2c_port, addr_flags, CYP5525_PORT_PD_RESPONSE_REG(port), data2, 4);
976974
if (rv != EC_SUCCESS)
977975
CPRINTS("PORT_PD_RESPONSE_REG failed");
@@ -1003,6 +1001,7 @@ void cyp5525_port_int(int controller, int port)
10031001
cypd_set_typec_profile(controller, port);
10041002
cypd_update_port_state(controller, port);
10051003
break;
1004+
/*
10061005
case CYPD_RESPONSE_EXT_MSG_SOP_RX:
10071006
case CYPD_RESPONSE_EXT_SOP1_RX:
10081007
case CYPD_RESPONSE_EXT_SOP2_RX:
@@ -1015,6 +1014,7 @@ void cyp5525_port_int(int controller, int port)
10151014
cypd_handle_extend_msg(controller, port, response_len, sop_type);
10161015
CPRINTS("CYP_RESPONSE_RX_EXT_MSG");
10171016
break;
1017+
*/
10181018
default:
10191019
if (response_len && verbose_msg_logging) {
10201020
CPRINTF("Port:%d Data:0x", port_idx);

0 commit comments

Comments
 (0)