Set SB800 ROM decode size based on kconfig.
[coreboot.git] / src / southbridge / amd / sb800 / bootblock.c
index 82d80f08a8b7ca942be71a69759dac1a3640b4f4..18eae2431283b8d98070badbf9327659ad0db64d 100644 (file)
@@ -57,7 +57,7 @@ static void sb800_enable_rom(void)
         * 0xffe0(0000): 2MB
         * 0xffc0(0000): 4MB
         */
-       pci_write_config16(dev, 0x6c, 0xffc0); /* 4 MB */
+       pci_write_config16(dev, 0x6c, 0x10000 - (CONFIG_COREBOOT_ROMSIZE_KB >> 6));
        /* Enable LPC ROM range end at 0xffff(ffff). */
        pci_write_config16(dev, 0x6e, 0xffff);
 }