Skip to content

Commit 423d189

Browse files
authored
turn off retimer for framework adapter (#865)
To meet lot26. we can turn off retimers, as they do not have low power support if usb3 is unterminated. Signed-off-by: Kieran Levin <[email protected]>
1 parent 575cac2 commit 423d189

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

zephyr/program/lotus/src/cypress_pd_common.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,22 +1646,23 @@ struct framework_dp_ids {
16461646
} const cypd_altmode_ids[] = {
16471647
{0x32AC, 0x0002},
16481648
{0x32AC, 0x0003},
1649+
{0x32AC, 0x000E},
16491650
};
16501651
struct match_vdm_header {
16511652
uint8_t idx;
16521653
uint8_t val;
16531654
} const framework_vdm_hdr_match[] = {
16541655
{0, 0x8f},
1655-
{1, 0x52},
1656+
/*{1, 0x52},*/
16561657
{2, 0},
16571658
{4, 0x41},
1658-
{5, 0xa0},
1659+
/*{5, 0xa0},*/
16591660
{6, 0x00},
16601661
{7, 0xFF},
16611662
/*{8, 0xAC}, Framework VID */
16621663
/*{9, 0x32}, */
1663-
{10, 0x00},
1664-
{11, 0x6C}
1664+
/*{10, 0x00},*/
1665+
/*{11, 0x6C}*/
16651666
};
16661667

16671668
void cypd_handle_vdm(int controller, int port, uint8_t *data, int len)
@@ -1681,6 +1682,8 @@ void cypd_handle_vdm(int controller, int port, uint8_t *data, int len)
16811682
* DP
16821683
* 0x8f52 00 00 41a000ff ac32006c 00000000 00000300 18000000
16831684
* 0 1 2 3 4 8 12 16
1685+
* 180W Power Adapter
1686+
* 0x8f59 00 00 41a800ff ac32c001 00000000 00000e00 01008020
16841687
*/
16851688
int i;
16861689
uint16_t vid, pid;
@@ -1795,7 +1798,7 @@ void cypd_port_int(int controller, int port)
17951798
CCG_READ_DATA_MEMORY_REG(port, 0), data2, MIN(response_len, 32));
17961799
cypd_handle_vdm(controller, port, data2, response_len);
17971800
CPRINTS("CCG_RESPONSE_VDM_RX");
1798-
break;
1801+
__fallthrough;
17991802
default:
18001803
if (response_len && verbose_msg_logging) {
18011804
CPRINTF("Port:%d Data:0x", port_idx);

0 commit comments

Comments
 (0)