From 58a901f6f93c1988066f39cf6ef21c8458e4547c Mon Sep 17 00:00:00 2001 From: Nils Jacobs Date: Fri, 15 Jan 2010 10:06:39 +0000 Subject: Support for the AMD Geode GX2 Processors to Msrtool. It seems to work as it was tested on a Wyse Winterm S50. Signed-off-by: Nils Jacobs Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5008 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/msrtool/Makefile.in | 2 +- util/msrtool/msrtool.c | 1 + util/msrtool/msrtool.h | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/msrtool/Makefile.in b/util/msrtool/Makefile.in index 4e0e3814fb..94ab5fa960 100644 --- a/util/msrtool/Makefile.in +++ b/util/msrtool/Makefile.in @@ -26,7 +26,7 @@ PREFIX = @PREFIX@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ -TARGETS = geodelx.o cs5536.o k8.o +TARGETS = geodegx2.o geodelx.o cs5536.o k8.o SYSTEMS = linux.o darwin.o freebsd.o OBJS = $(PROGRAM).o msrutils.o sys.o $(SYSTEMS) $(TARGETS) diff --git a/util/msrtool/msrtool.c b/util/msrtool/msrtool.c index 4ed86baf58..56d2591db4 100644 --- a/util/msrtool/msrtool.c +++ b/util/msrtool/msrtool.c @@ -40,6 +40,7 @@ uint8_t reserved = 0, verbose = 0, quiet = 0; struct pci_access *pacc = NULL; static struct targetdef alltargets[] = { + { "geodegx2", "AMD Geode(tm) GX2", geodegx2_probe, geodegx2_msrs }, { "geodelx", "AMD Geode(tm) LX", geodelx_probe, geodelx_msrs }, { "cs5536", "AMD Geode(tm) CS5536", cs5536_probe, cs5536_msrs }, { "K8", "AMD K8 Family", k8_probe, k8_msrs }, diff --git a/util/msrtool/msrtool.h b/util/msrtool/msrtool.h index c2cd6cb3a8..d8fc00f3fb 100644 --- a/util/msrtool/msrtool.h +++ b/util/msrtool/msrtool.h @@ -198,6 +198,10 @@ extern int freebsd_rdmsr(uint8_t cpu, uint32_t addr, struct msr *val); /** target externs **/ +/* geodegx2.c */ +extern int geodegx2_probe(const struct targetdef *t); +extern const struct msrdef geodegx2_msrs[]; + /* geodelx.c */ extern int geodelx_probe(const struct targetdef *t); extern const struct msrdef geodelx_msrs[]; -- cgit v1.2.3