mods for the PCM 9574. Support for the 39sf020
This commit is contained in:
parent
59877ccceb
commit
c6501e2b5d
5 changed files with 47 additions and 18 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue