mods for the PCM 9574. Support for the 39sf020

This commit is contained in:
Ronald G. Minnich 2002-04-10 16:01:38 +00:00
commit c6501e2b5d
5 changed files with 47 additions and 18 deletions

View file

@ -29,7 +29,7 @@ void cache_on(unsigned long totalram)
* so absolute minimum needed to get it going.
*/
/* OK, linux it turns out does nothing. We have to do it ... */
#if defined(i686)
#if defined(i686)
// totalram here is in linux sizing, i.e. units of KB.
// set_mtrr is responsible for getting it into the right units!
setup_mtrrs(totalram);

View file

@ -341,6 +341,7 @@ void setup_mtrrs(unsigned long ramsizeK)
ramsizeK -= range_wb;
}
}
printk_debug("DONE variable MTRRs\n");
#if defined(XIP_ROM_SIZE) && defined(XIP_ROM_BASE)
#if XIP_ROM_SIZE < 4096
#error XIP_ROM_SIZE must be at least 4K
@ -361,13 +362,18 @@ void setup_mtrrs(unsigned long ramsizeK)
MTRR_TYPE_WRPROT);
}
#endif /* XIP_ROM_SIZE && XIP_ROM_BASE */
printk_debug("Clear out the extra MTRR's\n");
/* Clear out the extra MTRR's */
while(reg < MTRRS) {
intel_set_var_mtrr(reg++, 0, 0, 0);
}
printk_debug("call intel_set_fixed_mtrr()\n");
intel_set_fixed_mtrr();
/* enable fixed MTRR */
printk_debug("call intel_enable_fixed_mtrr()\n");
intel_enable_fixed_mtrr();
printk_debug("call intel_enable_var_mtrr()\n");
intel_enable_var_mtrr();
printk_debug("Leave " __FUNCTION__ "\n");
}

View file

@ -18,10 +18,10 @@ mainboardinit cpu/p6/earlymtrr.inc
nsuperio winbond/w83977ef keyboard=1 com1={1} com2={1} floppy=1
nsuperio winbond/w83877tf
option ENABLE_FIXED_AND_VARIABLE_MTRRS
option MTRR_ONLY_TOP_64K_FLASH
option ENABLE_FIXED_AND_VARIABLE_MTRRS=0
option MTRR_ONLY_TOP_64K_FLASH=1
option PIIX4_DEVFN=0x38
option NO_KEYBOARD
option NO_KEYBOARD=1
option HAVE_PIRQ_TABLE=1
option ZKERNEL_START=0xfffc0000
option ZKERNEL_MASK=0x7f
@ -32,7 +32,7 @@ option L440BX
object mainboard.o
object irq_tables.o
option UPDATE_MICROCODE
option UPDATE_MICROCODE=1
option PAYLOAD_SIZE=196608