new cache_as_ram support
[coreboot.git] / src / southbridge / nvidia / ck804 / ck804_enable_rom.c
1 /*
2  * Copyright 2004 Tyan Computer
3  *  by yhlu@tyan.com
4  */
5
6
7 static void ck804_enable_rom(void)
8 {
9         unsigned char byte;
10         device_t addr;
11
12         /* Enable 4MB rom access at 0xFFC00000 - 0xFFFFFFFF */
13         /* Locate the ck804 LPC */
14         addr = PCI_DEV(0, (CK804_DEVN_BASE+1), 0);
15
16         /* Set the 4MB enable bit bit */
17         byte = pci_read_config8(addr, 0x88);
18         byte |= 0x80;
19         pci_write_config8(addr, 0x88, byte);
20 }