Fuse HYGON and AMD because the SMB controllor is strictly identical on both

This commit is contained in:
Sam Demeulemeester 2022-06-06 17:21:16 +02:00 committed by Sam Demeulemeester
parent e86b04a14a
commit 106eabef98

View File

@ -1264,6 +1264,7 @@ static bool find_smb_controller(uint16_t vid, uint16_t did)
return false;
}
case VID_HYGON:
case VID_AMD:
switch(did)
{
@ -1285,18 +1286,6 @@ static bool find_smb_controller(uint16_t vid, uint16_t did)
}
break;
case VID_HYGON:
switch(did)
{
case 0x780B: // AMD FCH (Pre-Zen)
return amd_sb_get_smb();
case 0x790B: // AMD FCH (Zen 2/3)
return fch_zen_get_smb();
default:
return false;
}
break;
case VID_ATI:
switch(did)
{