artecgroup/dbe61: Use existing struct definition from arch/x86/msr.h instead of our own

Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>

git-svn-id: svn://coreboot.org/repository/coreboot-v3@1022 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Mart Raudsepp 2008-11-14 15:25:22 +00:00
parent b875333abf
commit 02e9024faf

View file

@ -29,22 +29,20 @@
#include <amd_geodelx.h> #include <amd_geodelx.h>
#include <southbridge/amd/cs5536/cs5536.h> #include <southbridge/amd/cs5536/cs5536.h>
#include <northbridge/amd/geodelx/raminit.h> #include <northbridge/amd/geodelx/raminit.h>
#include <arch/x86/msr.h>
static const struct wmsr { static const struct msrinit dbe61_msr[] = {
u32 reg; {.msrnum = 0x10000020, {.lo = 0x00fff80, .hi = 0x20000000}},
struct msr msr; {.msrnum = 0x10000021, {.lo = 0x80fffe0, .hi = 0x20000000}},
} dbe61_msr[] = { {.msrnum = 0x40000020, {.lo = 0x00fff80, .hi = 0x20000000}},
{.reg = 0x10000020, {.lo = 0x00fff80, .hi = 0x20000000}}, {.msrnum = 0x40000021, {.lo = 0x80fffe0, .hi = 0x20000000}},
{.reg = 0x10000021, {.lo = 0x80fffe0, .hi = 0x20000000}},
{.reg = 0x40000020, {.lo = 0x00fff80, .hi = 0x20000000}},
{.reg = 0x40000021, {.lo = 0x80fffe0, .hi = 0x20000000}},
}; };
static void dbe61_msr_init(void) static void dbe61_msr_init(void)
{ {
int i; int i;
for (i = 0; i < ARRAY_SIZE(dbe61_msr); i++) for (i = 0; i < ARRAY_SIZE(dbe61_msr); i++)
wrmsr(dbe61_msr[i].reg, dbe61_msr[i].msr); wrmsr(dbe61_msr[i].msrnum, dbe61_msr[i].msr);
} }
void hardware_stage1(void) void hardware_stage1(void)