From f5f10d10979688e0d2ac7a01a262c50bf3e08b76 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 28 Aug 2003 13:43:03 +0000 Subject: cleaning out motherboard specific changes from the generic directories. Moving tyan resource map to tyan directory. Making IOMMU for hammer choosable via ENABLE_IOMMU git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1088 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/amd/amdk8/raminit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/northbridge/amd/amdk8/raminit.c') diff --git a/src/northbridge/amd/amdk8/raminit.c b/src/northbridge/amd/amdk8/raminit.c index 63a471c870..99318aa3f7 100644 --- a/src/northbridge/amd/amdk8/raminit.c +++ b/src/northbridge/amd/amdk8/raminit.c @@ -919,12 +919,13 @@ static void sdram_set_registers(const struct mem_controller *ctrl) * [31: 8] Reserved */ PCI_ADDR(0, 0x18, 3, 0x60), 0xffffff00, 0x00000000, -//BY LYH add IOMMU 64M APERTURE + +#if ENABLE_IOMMU != 0 + /* BY LYH add IOMMU 64M APERTURE */ PCI_ADDR(0, 0x18, 3, 0x94), 0xffff8000, 0x00000f70, PCI_ADDR(0, 0x18, 3, 0x90), 0xffffff80, 0x00000002, PCI_ADDR(0, 0x18, 3, 0x98), 0x0000000f, 0x00068300, - -//BY LYH END +#endif }; int i; int max; -- cgit v1.2.3