@@ -247,13 +247,13 @@ fn print_pd_details(ec: &CrosEc) {
247
247
println ! ( "Only supported on Framework systems" ) ;
248
248
return ;
249
249
}
250
- let pd_01 = PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) ;
251
- let pd_23 = PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) ;
250
+ let pd_01 = PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) ;
251
+ let pd_23 = PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) ;
252
252
let pd_back = PdController :: new ( PdPort :: Back , ec. clone ( ) ) ;
253
253
254
- println ! ( "Left / Ports 01" ) ;
254
+ println ! ( "Right / Ports 01" ) ;
255
255
print_single_pd_details ( & pd_01) ;
256
- println ! ( "Right / Ports 23" ) ;
256
+ println ! ( "Left / Ports 23" ) ;
257
257
print_single_pd_details ( & pd_23) ;
258
258
println ! ( "Back" ) ;
259
259
print_single_pd_details ( & pd_back) ;
@@ -570,13 +570,13 @@ fn print_versions(ec: &CrosEc) {
570
570
| esrt:: ADL_RETIMER01_GUID
571
571
| esrt:: RPL_RETIMER01_GUID
572
572
| esrt:: MTL_RETIMER01_GUID => {
573
- left_retimer = Some ( entry. fw_version ) ;
573
+ right_retimer = Some ( entry. fw_version ) ;
574
574
}
575
575
esrt:: TGL_RETIMER23_GUID
576
576
| esrt:: ADL_RETIMER23_GUID
577
577
| esrt:: RPL_RETIMER23_GUID
578
578
| esrt:: MTL_RETIMER23_GUID => {
579
- right_retimer = Some ( entry. fw_version ) ;
579
+ left_retimer = Some ( entry. fw_version ) ;
580
580
}
581
581
_ => { }
582
582
}
@@ -1017,8 +1017,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
1017
1017
} else if let Some ( pd) = args. pd_reset {
1018
1018
println ! ( "Resetting PD {}..." , pd) ;
1019
1019
print_err ( match pd {
1020
- 0 => PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) . reset_device ( ) ,
1021
- 1 => PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) . reset_device ( ) ,
1020
+ 0 => PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) . reset_device ( ) ,
1021
+ 1 => PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) . reset_device ( ) ,
1022
1022
2 => PdController :: new ( PdPort :: Back , ec. clone ( ) ) . reset_device ( ) ,
1023
1023
_ => {
1024
1024
error ! ( "PD {} does not exist" , pd) ;
@@ -1028,8 +1028,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
1028
1028
} else if let Some ( pd) = args. pd_disable {
1029
1029
println ! ( "Disabling PD {}..." , pd) ;
1030
1030
print_err ( match pd {
1031
- 0 => PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) . enable_ports ( false ) ,
1032
- 1 => PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) . enable_ports ( false ) ,
1031
+ 0 => PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) . enable_ports ( false ) ,
1032
+ 1 => PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) . enable_ports ( false ) ,
1033
1033
2 => PdController :: new ( PdPort :: Back , ec. clone ( ) ) . enable_ports ( false ) ,
1034
1034
_ => {
1035
1035
error ! ( "PD {} does not exist" , pd) ;
@@ -1039,8 +1039,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
1039
1039
} else if let Some ( pd) = args. pd_enable {
1040
1040
println ! ( "Enabling PD {}..." , pd) ;
1041
1041
print_err ( match pd {
1042
- 0 => PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) . enable_ports ( true ) ,
1043
- 1 => PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) . enable_ports ( true ) ,
1042
+ 0 => PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) . enable_ports ( true ) ,
1043
+ 1 => PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) . enable_ports ( true ) ,
1044
1044
2 => PdController :: new ( PdPort :: Back , ec. clone ( ) ) . enable_ports ( true ) ,
1045
1045
_ => {
1046
1046
error ! ( "PD {} does not exist" , pd) ;
@@ -1376,8 +1376,8 @@ fn selftest(ec: &CrosEc) -> Option<()> {
1376
1376
println ! ( " - OK" ) ;
1377
1377
}
1378
1378
1379
- let pd_01 = PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) ;
1380
- let pd_23 = PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) ;
1379
+ let pd_01 = PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) ;
1380
+ let pd_23 = PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) ;
1381
1381
print ! ( " Getting PD01 info through I2C tunnel" ) ;
1382
1382
print_err ( pd_01. get_silicon_id ( ) ) ?;
1383
1383
print_err ( pd_01. get_device_info ( ) ) ?;
@@ -1554,22 +1554,22 @@ pub fn analyze_capsule(data: &[u8]) -> Option<capsule::EfiCapsuleHeader> {
1554
1554
println ! ( " Type: Framework RPL Insyde BIOS" ) ;
1555
1555
}
1556
1556
esrt:: TGL_RETIMER01_GUID => {
1557
- println ! ( " Type: Framework TGL Retimer01 (Left )" ) ;
1557
+ println ! ( " Type: Framework TGL Retimer01 (Right )" ) ;
1558
1558
}
1559
1559
esrt:: TGL_RETIMER23_GUID => {
1560
- println ! ( " Type: Framework TGL Retimer23 (Right )" ) ;
1560
+ println ! ( " Type: Framework TGL Retimer23 (Left )" ) ;
1561
1561
}
1562
1562
esrt:: ADL_RETIMER01_GUID => {
1563
- println ! ( " Type: Framework ADL Retimer01 (Left )" ) ;
1563
+ println ! ( " Type: Framework ADL Retimer01 (Right )" ) ;
1564
1564
}
1565
1565
esrt:: ADL_RETIMER23_GUID => {
1566
- println ! ( " Type: Framework ADL Retimer23 (Right )" ) ;
1566
+ println ! ( " Type: Framework ADL Retimer23 (Left )" ) ;
1567
1567
}
1568
1568
esrt:: RPL_RETIMER01_GUID => {
1569
- println ! ( " Type: Framework RPL Retimer01 (Left )" ) ;
1569
+ println ! ( " Type: Framework RPL Retimer01 (Right )" ) ;
1570
1570
}
1571
1571
esrt:: RPL_RETIMER23_GUID => {
1572
- println ! ( " Type: Framework RPL Retimer23 (Right )" ) ;
1572
+ println ! ( " Type: Framework RPL Retimer23 (Left )" ) ;
1573
1573
}
1574
1574
esrt:: WINUX_GUID => {
1575
1575
println ! ( " Type: Windows UX capsule" ) ;
0 commit comments