per a good suggestion, use the common struct.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>

Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@625 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Ronald G. Minnich 2008-02-28 23:59:09 +00:00
parent f39881a3d8
commit f9c1ddb22e

View file

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