467a065384
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5493 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
31 lines
563 B
C
31 lines
563 B
C
#include <arch/io.h>
|
|
#include <arch/romcc_io.h>
|
|
#include <reset.h>
|
|
|
|
void soft_reset(void)
|
|
{
|
|
outb(0x04, 0xcf9);
|
|
}
|
|
|
|
void hard_reset(void)
|
|
{
|
|
outb(0x02, 0xcf9);
|
|
outb(0x06, 0xcf9);
|
|
}
|
|
|
|
#ifndef __ROMCC__
|
|
/* Used only board-internally by power_reset_check.c and jarell_fixups.c */
|
|
void full_reset(void);
|
|
#endif
|
|
|
|
void full_reset(void)
|
|
{
|
|
/* Enable power on after power fail... */
|
|
unsigned byte;
|
|
byte = pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xa4);
|
|
byte &= 0xfe;
|
|
pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xa4, byte);
|
|
|
|
outb(0x0e, 0xcf9);
|
|
}
|
|
|