projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use DIMM0 et al in lots more places instead of hardocding values.
[coreboot.git]
/
src
/
mainboard
/
newisys
/
khepri
/
romstage.c
diff --git
a/src/mainboard/newisys/khepri/romstage.c
b/src/mainboard/newisys/khepri/romstage.c
index b1ec136fde2e472f7efeae8b5e721523fa2a9994..984aa9da5430f496bd319369e64394c25627c46b 100644
(file)
--- a/
src/mainboard/newisys/khepri/romstage.c
+++ b/
src/mainboard/newisys/khepri/romstage.c
@@
-4,7
+4,6
@@
* Additional (C) 2007 coresystems GmbH
*/
* Additional (C) 2007 coresystems GmbH
*/
-
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
@@
-15,6
+14,7
@@
#include <pc80/mc146818rtc.h>
#include <console/console.h>
#include <lib.h>
#include <pc80/mc146818rtc.h>
#include <console/console.h>
#include <lib.h>
+#include <spd.h>
#include <cpu/amd/model_fxx_rev.h>
#include <cpu/amd/model_fxx_rev.h>
@@
-72,7
+72,6
@@
static inline int spd_read_byte(unsigned device, unsigned address)
return smbus_read_byte(device, address);
}
return smbus_read_byte(device, address);
}
-#define QRANK_DIMM_SUPPORT 1
#include "northbridge/amd/amdk8/raminit.c"
#include "northbridge/amd/amdk8/coherent_ht.c"
#include "northbridge/amd/amdk8/raminit.c"
#include "northbridge/amd/amdk8/coherent_ht.c"
@@
-81,9
+80,6
@@
static inline int spd_read_byte(unsigned device, unsigned address)
/* newisys khepri does not want the default */
#include "resourcemap.c"
/* newisys khepri does not want the default */
#include "resourcemap.c"
-#if CONFIG_LOGICAL_CPUS==1
-#define SET_NB_CFG_54 1
-#endif
#include "cpu/amd/dualcore/dualcore.c"
#include "cpu/amd/dualcore/dualcore.c"
@@
-98,11
+94,11
@@
static inline int spd_read_byte(unsigned device, unsigned address)
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
{
static const uint16_t spd_addr [] = {
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
{
static const uint16_t spd_addr [] = {
-
(0xa<<3)|0, (0xa<<3)|
2, 0, 0,
-
(0xa<<3)|1, (0xa<<3)|
3, 0, 0,
+
DIMM0, DIMM
2, 0, 0,
+
DIMM1, DIMM
3, 0, 0,
#if CONFIG_MAX_PHYSICAL_CPUS > 1
#if CONFIG_MAX_PHYSICAL_CPUS > 1
-
(0xa<<3)|4, (0xa<<3)|
6, 0, 0,
-
(0xa<<3)|5, (0xa<<3)|
7, 0, 0,
+
DIMM4, DIMM
6, 0, 0,
+
DIMM5, DIMM
7, 0, 0,
#endif
};
#endif
};