[coreboot] r820 - in coreboot-v3: mainboard/amd/serengeti southbridge/amd/amd8111

svn at coreboot.org svn at coreboot.org
Sun Aug 24 21:55:45 CEST 2008


Author: rminnich
Date: 2008-08-24 21:55:45 +0200 (Sun, 24 Aug 2008)
New Revision: 820

Modified:
   coreboot-v3/mainboard/amd/serengeti/Makefile
   coreboot-v3/mainboard/amd/serengeti/stage1.c
   coreboot-v3/southbridge/amd/amd8111/stage1_enable_rom.c
Log:
Grow rom space. This now gets a triple fault but I am hoping some smart 
person can fix it.

Signed-off-by: Ronald G. Minnich <rminnich at gmail.com>
Acked-by: Ronald G. Minnich <rminnich at gmail.com>



Modified: coreboot-v3/mainboard/amd/serengeti/Makefile
===================================================================
--- coreboot-v3/mainboard/amd/serengeti/Makefile	2008-08-24 18:20:31 UTC (rev 819)
+++ coreboot-v3/mainboard/amd/serengeti/Makefile	2008-08-24 19:55:45 UTC (rev 820)
@@ -25,6 +25,7 @@
 			$(src)/mainboard/$(MAINBOARDDIR)/option_table.c \
 			$(src)/southbridge/amd/amd8111/stage1_smbus.c \
 			$(src)/southbridge/amd/amd8111/stage1_ctrl.c \
+			$(src)/southbridge/amd/amd8111/stage1_enable_rom.c \
 			$(src)/northbridge/amd/k8/coherent_ht.c \
 			$(src)/northbridge/amd/k8/incoherent_ht.c \
 			$(src)/northbridge/amd/k8/libstage1.c \

Modified: coreboot-v3/mainboard/amd/serengeti/stage1.c
===================================================================
--- coreboot-v3/mainboard/amd/serengeti/stage1.c	2008-08-24 18:20:31 UTC (rev 819)
+++ coreboot-v3/mainboard/amd/serengeti/stage1.c	2008-08-24 19:55:45 UTC (rev 820)
@@ -32,9 +32,13 @@
 #include <io.h>
 #include <arch/x86/msr.h>
 
+void amd8111_enable_rom(void);
 
 void hardware_stage1(void)
 {
+	printk(BIOS_ERR, "Stage1: enable rom ...\n");
+	amd8111_enable_rom();
+	printk(BIOS_ERR, "Done.\n");
 	post_code(POST_START_OF_MAIN);
 
 }

Modified: coreboot-v3/southbridge/amd/amd8111/stage1_enable_rom.c
===================================================================
--- coreboot-v3/southbridge/amd/amd8111/stage1_enable_rom.c	2008-08-24 18:20:31 UTC (rev 819)
+++ coreboot-v3/southbridge/amd/amd8111/stage1_enable_rom.c	2008-08-24 19:55:45 UTC (rev 820)
@@ -32,15 +32,15 @@
 /**
  * Enable the 5 MB address space for the ROM
  */
-static void amd8111_enable_rom(void)
+void amd8111_enable_rom(void)
 {
 	u8 byte;
 	u32 dev;
 
 	/* Enable 5MB rom access at 0xFFB00000 - 0xFFFFFFFF */
 	/* Locate the amd8111 */
-	pci_locate_device_on_bus(0, PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_ISA, &dev);
-
+	pci_conf1_find_device(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_ISA, 
+				&dev);
 	/* Set the 5MB enable bits */
 	byte = pci_conf1_read_config8(dev, 0x43);
 	byte |= 0xC0;





More information about the coreboot mailing list