Skip to content

Commit 0f3ad0a

Browse files
Josh-TsaiJohnAZoidberg
authored andcommitted
fwk: perform the typec error recovery after AMD Crossbar is ready
The description in AMD USB Power Delivery I2C Target Programming Guide for APU Gen2.3 capture 2. It is necessary for the SoC to perform further iniitialization steps before the Crossbar is ready to accept commands. PD chip vendor add the specific response code 0x38 for Crossbar is ready. When EC receives this response code, EC needs to perform the typec error recovery to solve the device loss issue. BRANCH=lilac BUG=https://app.clickup.com/t/86eqgujm1 TEST=resume from shutdown, the device does not loss TEST=resume from hibernate, the device does not loss Signed-off-by: Josh Tsai <Josh_Tsai@compal.com> (cherry picked from commit 5166ac9) pr lilac: PD - enable platform events This is to allow us to get APU setup events from the PD. Signed-off-by: Kieran Levin <ktl@frame.work>
1 parent bbdf80a commit 0f3ad0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zephyr/program/framework/src/cypd_ccg8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ int cypd_setup(int controller)
144144
int status_reg;
145145
} const cypd_setup_cmds[] = {
146146
/* Set the port event mask */
147-
{ CCG_EVENT_MASK_REG(0), 0x27ffff, 4, CCG_PORT0_INTR},
148-
{ CCG_EVENT_MASK_REG(1), 0x27ffff, 4, CCG_PORT1_INTR },
147+
{ CCG_EVENT_MASK_REG(0), 0x2fffff, 4, CCG_PORT0_INTR},
148+
{ CCG_EVENT_MASK_REG(1), 0x2fffff, 4, CCG_PORT1_INTR },
149149
};
150150
BUILD_ASSERT(ARRAY_SIZE(cypd_setup_cmds) == CYPD_SETUP_CMDS_LEN);
151151

0 commit comments

Comments
 (0)