@@ -214,20 +214,54 @@ pub fn print_thermal(ec: &CrosEc) {
214214 println ! ( " F75303_DDR: {:>4}" , TempSensor :: from( temps[ 2 ] ) ) ;
215215 println ! ( " Battery: {:>4}" , TempSensor :: from( temps[ 3 ] ) ) ;
216216 println ! ( " PECI: {:>4}" , TempSensor :: from( temps[ 4 ] ) ) ;
217- println ! ( " F57397_VCCGT: {:>4}" , TempSensor :: from( temps[ 5 ] ) ) ;
217+ if matches ! (
218+ platform,
219+ Some ( Platform :: IntelGen12 ) | Some ( Platform :: IntelGen13 )
220+ ) {
221+ println ! ( " F57397_VCCGT: {:>4}" , TempSensor :: from( temps[ 5 ] ) ) ;
222+ }
218223 }
219- Some ( Platform :: Framework13Amd | Platform :: Framework16 ) => {
224+
225+ Some ( Platform :: IntelCoreUltra1 ) => {
226+ println ! ( " F75303_Local: {:>4}" , TempSensor :: from( temps[ 0 ] ) ) ;
227+ println ! ( " F75303_CPU: {:>4}" , TempSensor :: from( temps[ 1 ] ) ) ;
228+ println ! ( " Battery: {:>4}" , TempSensor :: from( temps[ 2 ] ) ) ;
229+ println ! ( " F75303_DDR: {:>4}" , TempSensor :: from( temps[ 3 ] ) ) ;
230+ println ! ( " PECI: {:>4}" , TempSensor :: from( temps[ 4 ] ) ) ;
231+ }
232+
233+ Some ( Platform :: Framework12IntelGen13 ) => {
234+ println ! ( " F75303_CPU: {:>4}" , TempSensor :: from( temps[ 0 ] ) ) ;
235+ println ! ( " F75303_Skin: {:>4}" , TempSensor :: from( temps[ 1 ] ) ) ;
236+ println ! ( " F75303_Local: {:>4}" , TempSensor :: from( temps[ 2 ] ) ) ;
237+ println ! ( " Battery: {:>4}" , TempSensor :: from( temps[ 3 ] ) ) ;
238+ println ! ( " PECI: {:>4}" , TempSensor :: from( temps[ 4 ] ) ) ;
239+ }
240+
241+ Some (
242+ Platform :: Framework13Amd7080
243+ | Platform :: Framework13AmdAi300
244+ | Platform :: Framework16Amd7080 ,
245+ ) => {
220246 println ! ( " F75303_Local: {:>4}" , TempSensor :: from( temps[ 0 ] ) ) ;
221247 println ! ( " F75303_CPU: {:>4}" , TempSensor :: from( temps[ 1 ] ) ) ;
222248 println ! ( " F75303_DDR: {:>4}" , TempSensor :: from( temps[ 2 ] ) ) ;
223249 println ! ( " APU: {:>4}" , TempSensor :: from( temps[ 3 ] ) ) ;
224- if matches ! ( platform, Some ( Platform :: Framework16 ) ) {
250+ if matches ! ( platform, Some ( Platform :: Framework16Amd7080 ) ) {
225251 println ! ( " dGPU VR: {:>4}" , TempSensor :: from( temps[ 4 ] ) ) ;
226252 println ! ( " dGPU VRAM: {:>4}" , TempSensor :: from( temps[ 5 ] ) ) ;
227253 println ! ( " dGPU AMB: {:>4}" , TempSensor :: from( temps[ 6 ] ) ) ;
228254 println ! ( " dGPU temp: {:>4}" , TempSensor :: from( temps[ 7 ] ) ) ;
229255 }
230256 }
257+
258+ Some ( Platform :: FrameworkDesktopAmdAiMax300 ) => {
259+ println ! ( " F75303_APU: {:>4}" , TempSensor :: from( temps[ 0 ] ) ) ;
260+ println ! ( " F75303_DDR: {:>4}" , TempSensor :: from( temps[ 1 ] ) ) ;
261+ println ! ( " F75303_AMB: {:>4}" , TempSensor :: from( temps[ 2 ] ) ) ;
262+ println ! ( " APU: {:>4}" , TempSensor :: from( temps[ 3 ] ) ) ;
263+ }
264+
231265 _ => {
232266 println ! ( " Temp 0: {:>4}" , TempSensor :: from( temps[ 0 ] ) ) ;
233267 println ! ( " Temp 1: {:>4}" , TempSensor :: from( temps[ 1 ] ) ) ;
@@ -495,7 +529,7 @@ pub fn get_pd_info(ec: &CrosEc, ports: u8) -> Vec<EcResult<UsbPdPowerInfo>> {
495529}
496530
497531pub fn get_and_print_pd_info ( ec : & CrosEc ) {
498- let fl16 = Some ( crate :: util:: Platform :: Framework16 ) == get_platform ( ) ;
532+ let fl16 = Some ( crate :: util:: Platform :: Framework16Amd7080 ) == get_platform ( ) ;
499533 let ports = 4 ; // All our platforms have 4 PD ports so far
500534 let infos = get_pd_info ( ec, ports) ;
501535 for ( port, info) in infos. iter ( ) . enumerate ( ) . take ( ports. into ( ) ) {
0 commit comments