Add logical device 0x09 setup from msi-rgb

This commit is contained in:
Adam Honse
2020-02-19 12:49:05 -06:00
parent 7ab2f3edf7
commit f6e7ea4d09

View File

@@ -16,6 +16,19 @@ MSIRGBController::MSIRGBController(int sioaddr)
{
msi_sioaddr = sioaddr;
/*-----------------------------------------------------*\
| This setup step isn't well documented |
| Without this, pulsing does not work |
\*-----------------------------------------------------*/
superio_outb(msi_sioaddr, SIO_REG_LOGDEV, 0x09);
int val = superio_inb(msi_sioaddr, 0x2C);
if((val & 0x10) != 0x10)
{
superio_outb(msi_sioaddr, 0x2C, (val | 0x10));
}
/*-----------------------------------------------------*\
| Set logical device register to RGB controller |
\*-----------------------------------------------------*/