From 8a9d1f2b24a8f0a8973cca83af3ef873142c8cfc Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Sun, 24 Aug 2008 19:55:45 +0000 Subject: [PATCH] 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 Acked-by: Ronald G. Minnich git-svn-id: svn://coreboot.org/repository/coreboot-v3@820 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- mainboard/amd/serengeti/Makefile | 1 + mainboard/amd/serengeti/stage1.c | 4 ++++ southbridge/amd/amd8111/stage1_enable_rom.c | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mainboard/amd/serengeti/Makefile b/mainboard/amd/serengeti/Makefile index 5efc639c0c..c1cf047835 100644 --- a/mainboard/amd/serengeti/Makefile +++ b/mainboard/amd/serengeti/Makefile @@ -25,6 +25,7 @@ STAGE0_MAINBOARD_SRC := $(src)/lib/clog2.c \ $(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 \ diff --git a/mainboard/amd/serengeti/stage1.c b/mainboard/amd/serengeti/stage1.c index 9a85b5e2b2..60565d5caa 100644 --- a/mainboard/amd/serengeti/stage1.c +++ b/mainboard/amd/serengeti/stage1.c @@ -32,9 +32,13 @@ #include #include +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); } diff --git a/southbridge/amd/amd8111/stage1_enable_rom.c b/southbridge/amd/amd8111/stage1_enable_rom.c index 73a24525ac..ddf3425172 100644 --- a/southbridge/amd/amd8111/stage1_enable_rom.c +++ b/southbridge/amd/amd8111/stage1_enable_rom.c @@ -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;