add the msm800srv ; put the usb in the right place.
[coreboot.git] / src / mainboard / digitallogic / msm800sev / reset.c
1 #if 0
2 //#include "arch/romcc_io.h"
3 #include <arch/io.h>
4
5 typedef unsigned device_t;
6
7 #define PCI_DEV(BUS, DEV, FN) ( \
8         (((BUS) & 0xFF) << 16) | \
9         (((DEV) & 0x1f) << 11) | \
10         (((FN)  & 0x7) << 8))
11
12 static void pci_write_config8(device_t dev, unsigned where, unsigned char value)
13 {
14         unsigned addr;
15         addr = dev | where;
16         outl(0x80000000 | (addr & ~3), 0xCF8);
17         outb(value, 0xCFC + (addr & 3));
18 }
19
20 static void pci_write_config32(device_t dev, unsigned where, unsigned value)
21 {
22         unsigned addr;
23         addr = dev | where;
24         outl(0x80000000 | (addr & ~3), 0xCF8);
25         outl(value, 0xCFC);
26 }
27
28 static unsigned pci_read_config32(device_t dev, unsigned where)
29 {
30         unsigned addr;
31         addr = dev | where;
32         outl(0x80000000 | (addr & ~3), 0xCF8);
33         return inl(0xCFC);
34 }
35
36 #include "../../../northbridge/amd/amdk8/reset_test.c"
37
38 void hard_reset(void)
39 {
40         set_bios_reset();
41         pci_write_config8(PCI_DEV(1, 0x04, 0), 0x47, 1);
42 }
43 #endif