nb/intel/gm45: Use LAPIC udelay instead of custom version

This change may slow down the raminit by maximum 200usec,
but reuses the lapic udelay definition.

Change-Id: I60a68f8a7911b257c0eecda96f7c5bf302bb51ed
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/17152
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Arthur Heymans
2016-10-27 00:31:41 +02:00
committed by Martin Roth
parent 3cf2d9caf5
commit 10141c3006
5 changed files with 5 additions and 40 deletions

View File

@@ -24,7 +24,7 @@
#include <spd.h>
#include <console/console.h>
#include <lib.h>
#include "delay.h"
#include <delay.h>
#include "gm45.h"
#include "chip.h"
@@ -916,15 +916,15 @@ static void rcomp_initialization(const stepping_t stepping, const int sff)
static void dram_powerup(const int resume)
{
udelay_from_reset(200);
udelay(200);
MCHBAR32(CLKCFG_MCHBAR) = (MCHBAR32(CLKCFG_MCHBAR) & ~(1 << 3)) | (3 << 21);
if (!resume) {
MCHBAR32(0x1434) |= (1 << 10);
ns100delay(2);
udelay(1);
}
MCHBAR32(0x1434) |= (1 << 6);
if (!resume) {
ns100delay(1);
udelay(1);
MCHBAR32(0x1434) |= (1 << 9);
MCHBAR32(0x1434) &= ~(1 << 10);
udelay(500);