int
default 9
+config DIMM_MAP_LOGICAL
+ hex
+ default 0x2841
+
endif # BOARD_DELL_S1850
return smbus_read_byte(device, address);
}
-/* this is very highly mainboard dependent, related to wiring */
-/* from factory BIOS via lspci */
-#define DIMM_MAP_LOGICAL 0x2841
#include "northbridge/intel/e7520/raminit.c"
#include "lib/generic_sdram.c"
hex
default 0x1079
+config DIMM_MAP_LOGICAL
+ hex
+ default 0x0124
+
endif # BOARD_INTEL_JARRELL
#define DEVPRES_CONFIG (DEVPRES_D1F0 | DEVPRES_D2F0 | DEVPRES_D6F0)
#define DEVPRES1_CONFIG (DEVPRES1_D0F1 | DEVPRES1_D8F0)
-#define DIMM_MAP_LOGICAL 0x0124
-
static inline int spd_read_byte(unsigned device, unsigned address)
{
return smbus_read_byte(device, address);
config NORTHBRIDGE_INTEL_E7520
bool
+if NORTHBRIDGE_INTEL_E7520
+config DIMM_MAP_LOGICAL
+ hex
+ default 0x1248
+
+endif
print_debug("Starting SDRAM Enable\n");
/* 0x80 */
-#ifdef DIMM_MAP_LOGICAL
pci_write_config32(PCI_DEV(0, 0x00, 0), DRM,
- 0x00210000 | DIMM_MAP_LOGICAL);
-#else
- pci_write_config32(PCI_DEV(0, 0x00, 0), DRM, 0x00211248);
-#endif
+ 0x00210000 | CONFIG_DIMM_MAP_LOGICAL);
/* set dram type and Front Side Bus freq. */
drc = spd_set_dram_controller_mode(ctrl, mask);
if( drc == 0) {
config NORTHBRIDGE_INTEL_E7525
bool
+if NORTHBRIDGE_INTEL_E7525
+config DIMM_MAP_LOGICAL
+ hex
+ default 0x1248
+
+endif
print_debug("Starting SDRAM Enable\n");
/* 0x80 */
-#ifdef DIMM_MAP_LOGICAL
pci_write_config32(ctrl->f0, DRM,
- 0x00210000 | DIMM_MAP_LOGICAL);
-#else
- pci_write_config32(ctrl->f0, DRM, 0x00211248);
-#endif
+ 0x00210000 | CONFIG_DIMM_MAP_LOGICAL);
/* set dram type and Front Side Bus freq. */
drc = spd_set_dram_controller_mode(ctrl, mask);
if( drc == 0) {
config NORTHBRIDGE_INTEL_I3100
bool
+if NORTHBRIDGE_INTEL_I3100
+config DIMM_MAP_LOGICAL
+ hex
+ default 0x1248
+
+endif
print_debug("Starting SDRAM Enable\n");
/* 0x80 */
-#ifdef DIMM_MAP_LOGICAL
pci_write_config32(ctrl->f0, DRM,
- 0x00410000 | DIMM_MAP_LOGICAL);
-#else
- pci_write_config32(ctrl->f0, DRM, 0x00411248);
-#endif
+ 0x00410000 | CONFIG_DIMM_MAP_LOGICAL);
/* set dram type and Front Side Bus freq. */
drc = spd_set_dram_controller_mode(ctrl, mask);
if( drc == 0) {