aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/amd8111/amd8111_early_ctrl.c
blob: 8a648e8d375e9f1144f10b4ff10dd8d0d50bfc42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* by yhlu 2005.10 */
static void hard_reset(struct sys_info *sysinfo)
{
        device_t dev;
	
        /* Find the device */
        dev = PCI_DEV(sysinfo->sbbusn, sysinfo->sbdn+1, 3);

        set_bios_reset();

        /* enable cf9 */
        pci_write_config8(dev, 0x41, 0xf1);
        /* reset */
        outb(0x0e, 0x0cf9);
}

static void enable_fid_change_on_sb(struct sys_info *sysinfo)
{
        device_t dev;
        /* Find the device */
        dev = PCI_DEV(sysinfo->sbbusn, sysinfo->sbdn+1, 3);

        pci_write_config8(dev, 0x74, 4);

        /* set VFSMAF ( VID/FID System Management Action Field) to 2 */
        pci_write_config32(dev, 0x70, 2<<12);

}

static void soft_reset(struct sys_info *sysinfo)
{
        device_t dev;
        
	/* Find the device */
        dev = PCI_DEV(sysinfo->sbbusn, sysinfo->sbdn+1, 0);

        set_bios_reset();
        pci_write_config8(dev, 0x47, 1);
}