From 38204a2c181b71d5c74a5bd9cfac14f450076ec2 Mon Sep 17 00:00:00 2001 From: Urja Rannikko Date: Thu, 23 Oct 2008 23:33:18 +0000 Subject: Add support for the ITE IT8661F/IT8770F, IT8673F, and IT8671F/IT8687R. They all use a different init sequence than the more modern ITE Super I/Os. For now we only use 0x370 as config port, but 0x3f0 or 0x3bd would also be valid. Contrary to other Super I/Os, the config port for these is _not_ hardcoded via hardware, instead it can be programmed by software, i.e. you get to choose whether you want to use 0x370, 0x3f0, or 0x3bd. Tested on IT8671F by Uwe Hermann and on IT8770F by Urja Rannikko. Signed-off-by: Urja Rannikko Signed-off-by: Uwe Hermann Acked-by: Urja Rannikko Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3692 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/superiotool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/superiotool/superiotool.c') diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c index 5ee383ce34..10f225f6dc 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c @@ -32,7 +32,7 @@ int chip_found = 0; uint8_t regval(uint16_t port, uint8_t reg) { outb(reg, port); - return inb(port + 1); + return inb(port + ((port == 0x3bd) ? 2 : 1)); /* 0x3bd is special. */ } void regwrite(uint16_t port, uint8_t reg, uint8_t val) -- cgit v1.2.3