Skip to content

Commit

Permalink
mb/msi: Add verbs foudn in vendor BIOS images
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Sep 5, 2023
1 parent f93fcf2 commit d8085be
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 16 deletions.
77 changes: 74 additions & 3 deletions src/mainboard/msi/ms7d25/hda_verb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const u32 cim_verb_data[] = {
/* Realtek ALC897 */
0x10ec0897, /* Vendor ID */
0x14629d25, /* Subsystem ID */
16, /* Number of entries */
28, /* Number of entries */
AZALIA_RESET(0x1),
AZALIA_SUBVENDOR(0, 0x14629d25),
AZALIA_PIN_CFG(0, 0x11, 0x4037d540),
Expand All @@ -24,12 +24,83 @@ const u32 cim_verb_data[] = {
AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1f, 0x411111f0),

0x0205003B,
0x02040080,
0x02050039,
0x02044031,

0x02050013,
0x02040053,
0x02050030,
0x020492D1,

0x02050021,
0x02040000,
0x02050023,
0x02040000,

0x02050025,
0x02040000,
0x02050027,
0x02040000,

0x02050029,
0x02040000,
0x0205002A,
0x02041640,

0x0205002B,
0x02041640,
0x02050021,
0x02040C00,

0x02050023,
0x02040C00,
0x02050025,
0x02040C00,

0x02050027,
0x02040C00,
0x02050029,
0x02040C00,

0x0205002A,
0x02041641,
0x0205002B,
0x02041641,

0x02050030,
0x02049251,
0x0205002A,
0x02041649,

0x0205002B,
0x02041649,
0x0205000C,
0x02043F06,

0x02050007,
0x0204F808,
0x02050007,
0x0204F808,

/* Alderlake HDMI */
0x80862815, /* Vendor ID */
0x80860101, /* Subsystem ID */
2, /* Number of entries */
7, /* Number of entries */
AZALIA_SUBVENDOR(2, 0x80860101),
AZALIA_PIN_CFG(2, 0x04, 0x18560010),
0x00278111,
0x00278111,
0x00278111,
0x00278111,
AZALIA_PIN_CFG(2, 0x05, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560020),
AZALIA_PIN_CFG(2, 0x07, 0x18560030),
AZALIA_PIN_CFG(2, 0x08, 0x18560040),
0x00278100,
0x00278100,
0x00278100,
0x00278100
};


Expand Down
89 changes: 76 additions & 13 deletions src/mainboard/msi/ms7e06/hda_verb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const u32 cim_verb_data[] = {
/* Realtek ALC897 */
0x10ec0897, /* Vendor ID */
0x14629e06, /* Subsystem ID */
16, /* Number of entries */
28, /* Number of entries */
AZALIA_RESET(0x1),
AZALIA_SUBVENDOR(0, 0x14629e06),
AZALIA_PIN_CFG(0, 0x11, 0x4037d540),
Expand All @@ -24,20 +24,83 @@ const u32 cim_verb_data[] = {
AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1f, 0x411111f0),

/* Alderlake HDMI */
0x80862818, /* Vendor ID */
0x0205003B,
0x02040080,
0x02050039,
0x02044031,

0x02050013,
0x02040053,
0x02050030,
0x020492D1,

0x02050021,
0x02040000,
0x02050023,
0x02040000,

0x02050025,
0x02040000,
0x02050027,
0x02040000,

0x02050029,
0x02040000,
0x0205002A,
0x02041640,

0x0205002B,
0x02041640,
0x02050021,
0x02040C00,

0x02050023,
0x02040C00,
0x02050025,
0x02040C00,

0x02050027,
0x02040C00,
0x02050029,
0x02040C00,

0x0205002A,
0x02041641,
0x0205002B,
0x02041641,

0x02050030,
0x02049251,
0x0205002A,
0x02041649,

0x0205002B,
0x02041649,
0x0205000C,
0x02043F06,

0x02050007,
0x0204F808,
0x02050007,
0x0204F808,

/* RaptorLake HDMI */
0x8086280f, /* Vendor ID */
0x80860101, /* Subsystem ID */
2, /* Number of entries */
7, /* Number of entries */
AZALIA_SUBVENDOR(2, 0x80860101),
AZALIA_PIN_CFG(2, 0x04, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560010),
AZALIA_PIN_CFG(2, 0x08, 0x18560010),
AZALIA_PIN_CFG(2, 0x0a, 0x18560010),
AZALIA_PIN_CFG(2, 0x0b, 0x18560010),
AZALIA_PIN_CFG(2, 0x0c, 0x18560010),
AZALIA_PIN_CFG(2, 0x0d, 0x18560010),
AZALIA_PIN_CFG(2, 0x0e, 0x18560010),
AZALIA_PIN_CFG(2, 0x0f, 0x18560010),
0x00278111,
0x00278111,
0x00278111,
0x00278111,
AZALIA_PIN_CFG(2, 0x05, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560020),
AZALIA_PIN_CFG(2, 0x07, 0x18560030),
AZALIA_PIN_CFG(2, 0x08, 0x18560040),
0x00278100,
0x00278100,
0x00278100,
0x00278100
};


Expand Down

0 comments on commit d8085be

Please sign in to comment.