drop unneeded __ROMCC__ checks when the check for __PRE_RAM__ is more
[coreboot.git] / src / mainboard / intel / jarrell / reset.c
1 #include <arch/io.h>
2 #include <reset.h>
3 #include <arch/romcc_io.h>
4
5 void soft_reset(void)
6 {
7         outb(0x04, 0xcf9);
8 }
9
10 void hard_reset(void)
11 {
12         outb(0x02, 0xcf9);
13         outb(0x06, 0xcf9);
14 }
15
16 void full_reset(void)
17 {
18         /* Enable power on after power fail... */
19         unsigned byte;
20         byte = pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xa4);
21         byte &= 0xfe;
22         pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xa4, byte);
23         outb(0x0e, 0xcf9);
24 }
25
26