fixed a old bug in flash unlock

This commit is contained in:
Li-Ta Lo 2001-11-30 09:51:24 +00:00
parent 69a4cb8cbc
commit dd2204d00d
2 changed files with 4 additions and 4 deletions

View file

@ -49,8 +49,8 @@ main()
b = inb(0x0cfc) | 0x0b;
outb(b, 0xcfc);
/* Flash write enable on SiS 540/630 */
outl(0x80000844, 0x0cf8);
b = inb(0x0cfd) | 0x40;
outl(0x80000845, 0x0cf8);
b = inb(0x0cfd) & 0x40;
outb(b, 0xcfd);
/* The same thing on SiS 950 SuperIO side */

View file

@ -67,8 +67,8 @@ int enable_flash_sis630 (void)
b = inb(0x0cfc) | 0x0b;
outb(b, 0xcfc);
/* Flash write enable on SiS 540/630 */
outl(0x80000844, 0x0cf8);
b = inb(0x0cfd) | 0x40;
outl(0x80000845, 0x0cf8);
b = inb(0x0cfd) & 0x40;
outb(b, 0xcfd);
/* The same thing on SiS 950 SuperIO side */