summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/ck804/ck804_enable_rom.c
blob: fa1c2e19fb8c76ff17259112b5817005d293a977 (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
/*
 * Copyright 2004 Tyan Computer
 *  by yhlu@tyan.com
 */
#if HT_CHAIN_END_UNITID_BASE < HT_CHAIN_UNITID_BASE
        #define CK804_DEVN_BASE HT_CHAIN_END_UNITID_BASE
#else
        #define CK804_DEVN_BASE HT_CHAIN_UNITID_BASE
#endif

static void ck804_enable_rom(void)
{
	unsigned char byte;
	device_t addr;

	/* Enable 4MB rom access at 0xFFC00000 - 0xFFFFFFFF */
	/* Locate the ck804 LPC */
	addr = PCI_DEV(0, (CK804_DEVN_BASE+1), 0);

	/* Set the 4MB enable bit bit */
	byte = pci_read_config8(addr, 0x88);
	byte |= 0x80;
	pci_write_config8(addr, 0x88, byte);
}