mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
This was a missing file that is needed for the build.
This commit is contained in:
parent
ec2d28a287
commit
25f2e09781
2 changed files with 20 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <arch/io.h>
|
||||
#include <southbridge/amd/amd768.h>
|
||||
#include <ide.h>
|
||||
#include <printk.h>
|
||||
|
||||
void amd768_enable_ide(int enable_a, int enable_b)
|
||||
{
|
||||
|
@ -44,6 +45,6 @@ void amd768_enable_ide(int enable_a, int enable_b)
|
|||
pci_write_config_word(dev, 0x4c, word);
|
||||
|
||||
} else
|
||||
printk_alert("Could not locate IDE controller\n");
|
||||
printk_err("Could not locate IDE controller\n");
|
||||
|
||||
}
|
||||
|
|
18
src/southbridge/amd/amd768/lpc_com1.inc
Normal file
18
src/southbridge/amd/amd768/lpc_com1.inc
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* enable LPC superio on the AMD 768 south bridge */
|
||||
#if 0
|
||||
movl $(0x80000000 | AMD768_DEV | 0x54), %eax
|
||||
movw $0xcf8, %dx
|
||||
outl %eax, %dx
|
||||
movw $0xcfc, %dx
|
||||
inb %dx, %al
|
||||
orb $0x30, %al
|
||||
outb %al, %dx
|
||||
|
||||
/* enable LPC serial port 0x3f8 */
|
||||
movl $(0x80000000 | AMD768_DEV | 0x50), %eax
|
||||
movw $0xcf8, %dx
|
||||
outl %eax, %dx
|
||||
movw $0xcfe, %dx
|
||||
movb $0x8, %al
|
||||
outb %al, %dx
|
||||
#endif
|
Loading…
Add table
Reference in a new issue