summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2006-03-01 16:11:05 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-03-01 16:11:05 +0000
commit74f36096ae487d947d6d98c185952bfb95605249 (patch)
tree6f3721d673ac4207a8becade070706b227c5d3c2 /util
parentc0fe3190c49aca5339ee37e32c4dfd3e3e824dd0 (diff)
downloadcoreboot-74f36096ae487d947d6d98c185952bfb95605249.tar.xz
a few new items and mods for ollie
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2189 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/flashrom/flashchips.c2
-rw-r--r--util/probe_superio/probe_superio.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/util/flashrom/flashchips.c b/util/flashrom/flashchips.c
index f718e7b140..08eb00cdd1 100644
--- a/util/flashrom/flashchips.c
+++ b/util/flashrom/flashchips.c
@@ -89,7 +89,7 @@ struct flashchip flashchips[] = {
probe_md2802, erase_md2802, write_md2802, read_md2802},
#endif
{"LHF00L04", SHARP_ID, SHARP_LHF00L04, NULL, 1024, 64 * 1024,
- probe_lhf00l04, erase_lhf00l04, write_lhf00l04, NULL},
+ probe_82802ab, erase_82802ab, write_82802ab, NULL},
{NULL,}
};
diff --git a/util/probe_superio/probe_superio.c b/util/probe_superio/probe_superio.c
index 6bb1347e15..47c28d1ab2 100644
--- a/util/probe_superio/probe_superio.c
+++ b/util/probe_superio/probe_superio.c
@@ -20,6 +20,7 @@ dump_ns8374(unsigned short port) {
printf("Enables: 21=%02x, 22=%02x, 23=%02x, 24=%02x, 26=%02x\n",
regval(port,0x21), regval(port,0x22),
regval(port,0x23), regval(port,0x24), regval(port,0x26));
+ printf("SMBUS at %02x\n", regval(port, 0x2a));
/* check COM1. This is all we care about at present. */
printf("COM 1 is Globally %s\n", regval(port,0x26)&8 ? "disabled" : "enabled");
/* select com1 */
@@ -29,6 +30,13 @@ dump_ns8374(unsigned short port) {
printf("COM1 60=%02x, 61=%02x, 70=%02x, 71=%02x, 74=%02x, 75=%02x, f0=%02x\n",
regval(port, 0x60), regval(port, 0x61), regval(port, 0x70), regval(port, 0x71),
regval(port, 0x74), regval(port, 0x75), regval(port, 0xf0));
+ /* select gpio */
+ outb(0x7, port);
+ outb(7, port+1);
+ printf("GPIO is %s\n", regval(port, 0x30) & 1 ? "enabled" : "disabled");
+ printf("GPIO 60=%02x, 61=%02x, 70=%02x, 71=%02x, 74=%02x, 75=%02x, f0=%02x\n",
+ regval(port, 0x60), regval(port, 0x61), regval(port, 0x70), regval(port, 0x71),
+ regval(port, 0x74), regval(port, 0x75), regval(port, 0xf0));
}