diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2010-11-18 11:36:16 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-11-18 11:36:16 +0000 |
commit | 8c107bc9e4ac0378e6a6e6ee200e59b8c0c84960 (patch) | |
tree | 582653533b074590395c2787524d29a53719a752 /src/northbridge/intel | |
parent | 9e180387bdaf4ad6e29cd2b7044bccfb1b1e6f67 (diff) | |
download | coreboot-8c107bc9e4ac0378e6a6e6ee200e59b8c0c84960.tar.xz |
Move DIMM_MAP_LOGICAL to Kconfig.
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Patrick Georgi <patrick@georgi-clan.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6089 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r-- | src/northbridge/intel/e7520/Kconfig | 6 | ||||
-rw-r--r-- | src/northbridge/intel/e7520/raminit.c | 6 | ||||
-rw-r--r-- | src/northbridge/intel/e7525/Kconfig | 6 | ||||
-rw-r--r-- | src/northbridge/intel/e7525/raminit.c | 6 | ||||
-rw-r--r-- | src/northbridge/intel/i3100/Kconfig | 6 | ||||
-rw-r--r-- | src/northbridge/intel/i3100/raminit.c | 6 |
6 files changed, 21 insertions, 15 deletions
diff --git a/src/northbridge/intel/e7520/Kconfig b/src/northbridge/intel/e7520/Kconfig index 426db8b12f..ef2b7f65fe 100644 --- a/src/northbridge/intel/e7520/Kconfig +++ b/src/northbridge/intel/e7520/Kconfig @@ -1,3 +1,9 @@ config NORTHBRIDGE_INTEL_E7520 bool +if NORTHBRIDGE_INTEL_E7520 +config DIMM_MAP_LOGICAL + hex + default 0x1248 + +endif diff --git a/src/northbridge/intel/e7520/raminit.c b/src/northbridge/intel/e7520/raminit.c index 235ce44f2b..6eed1964e9 100644 --- a/src/northbridge/intel/e7520/raminit.c +++ b/src/northbridge/intel/e7520/raminit.c @@ -1078,12 +1078,8 @@ static void sdram_enable(int controllers, const struct mem_controller *ctrl) 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) { diff --git a/src/northbridge/intel/e7525/Kconfig b/src/northbridge/intel/e7525/Kconfig index d8bff2225b..04e3d8b619 100644 --- a/src/northbridge/intel/e7525/Kconfig +++ b/src/northbridge/intel/e7525/Kconfig @@ -1,3 +1,9 @@ config NORTHBRIDGE_INTEL_E7525 bool +if NORTHBRIDGE_INTEL_E7525 +config DIMM_MAP_LOGICAL + hex + default 0x1248 + +endif diff --git a/src/northbridge/intel/e7525/raminit.c b/src/northbridge/intel/e7525/raminit.c index b482bb9fec..aabe8cfba5 100644 --- a/src/northbridge/intel/e7525/raminit.c +++ b/src/northbridge/intel/e7525/raminit.c @@ -1055,12 +1055,8 @@ static void sdram_enable(int controllers, const struct mem_controller *ctrl) 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) { diff --git a/src/northbridge/intel/i3100/Kconfig b/src/northbridge/intel/i3100/Kconfig index a85162310e..079004bda9 100644 --- a/src/northbridge/intel/i3100/Kconfig +++ b/src/northbridge/intel/i3100/Kconfig @@ -1,3 +1,9 @@ config NORTHBRIDGE_INTEL_I3100 bool +if NORTHBRIDGE_INTEL_I3100 +config DIMM_MAP_LOGICAL + hex + default 0x1248 + +endif diff --git a/src/northbridge/intel/i3100/raminit.c b/src/northbridge/intel/i3100/raminit.c index 5afddb7d9e..86e610feb3 100644 --- a/src/northbridge/intel/i3100/raminit.c +++ b/src/northbridge/intel/i3100/raminit.c @@ -973,12 +973,8 @@ static void sdram_enable(int controllers, const struct mem_controller *ctrl) 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) { |