aboutsummaryrefslogtreecommitdiff
path: root/util/msrtool
diff options
context:
space:
mode:
authorNils Jacobs <njacobs8@hetnet.nl>2010-01-15 10:06:39 +0000
committerStefan Reinauer <stepan@openbios.org>2010-01-15 10:06:39 +0000
commit58a901f6f93c1988066f39cf6ef21c8458e4547c (patch)
tree8446e2748269b0395d87fb47ee6a28fcfa3f21d0 /util/msrtool
parent90b96b68e0fedbc1d76e8547cad39c57021d5119 (diff)
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 <njacobs8@hetnet.nl> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5008 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/msrtool')
-rw-r--r--util/msrtool/Makefile.in2
-rw-r--r--util/msrtool/msrtool.c1
-rw-r--r--util/msrtool/msrtool.h4
3 files changed, 6 insertions, 1 deletions
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[];