mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
fixed a old bug in flash unlock
This commit is contained in:
parent
69a4cb8cbc
commit
dd2204d00d
2 changed files with 4 additions and 4 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue