X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fsouthbridge%2Famd%2Fcimx%2Fsb800%2Fbootblock.c;h=170276ac6984f924677cba9ca3d588acfc06cfbc;hb=5a91692466d501bde8fab5f9b0dee0a83444ee51;hp=aaec03cbea4507095f54387c78dca5feac36673c;hpb=2a561a18deeed436b27cb99cba4b15a4351435a1;p=coreboot.git diff --git a/src/southbridge/amd/cimx/sb800/bootblock.c b/src/southbridge/amd/cimx/sb800/bootblock.c index aaec03cbe..170276ac6 100644 --- a/src/southbridge/amd/cimx/sb800/bootblock.c +++ b/src/southbridge/amd/cimx/sb800/bootblock.c @@ -49,10 +49,9 @@ static void enable_rom(void) dword |= (1 << 0) | (1 << 1) | (1 << 4) | (1 << 6) | (1 << 21); pci_io_write_config32(dev, 0x48, dword); - /* Enable 4MB rom access at 0xFFE00000 - 0xFFFFFFFF */ - /* Set the 4MB enable bits */ + /* Enable rom access */ word = pci_io_read_config16(dev, 0x6c); - word = 0xFFC0; + word = 0x10000 - (CONFIG_COREBOOT_ROMSIZE_KB >> 6); pci_io_write_config16(dev, 0x6c, word); }