* This file is part of the superiotool project.
*
* Copyright (C) 2007 Carl-Daniel Hailfinger
- * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
+ * Copyright (C) 2007-2008 Uwe Hermann <uwe@hermann-uwe.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#define ISA_PNP_ADDR 0x279
static const struct superio_registers reg_table[] = {
+ {0x8228, "IT8228E", {
+ {EOT}}},
{0x8661, "IT8661F/IT8770F", {
{NOLDN, NULL,
{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x20,0x21,0x22,
{EOT}}},
{0x8710, "IT8710F", { /* TODO: Not yet in sensors-detect */
{EOT}}},
+ {0x8711, "IT8711F", { /* 0x8711 is a guess, not found in datasheet. */
+ {EOT}}},
{0x8712, "IT8712F", {
{NOLDN, NULL,
{0x20,0x21,0x22,0x23,0x24,0x2b,EOT},
{EOT}}},
{0x8720, "IT8720F", { /* From sensors-detect */
{EOT}}},
+ {0x8722, "IT8722F", {
+ {EOT}}},
{0x8726, "IT8726F", {
/* Datasheet wrongly says that the ID is 0x8716. */
{NOLDN, NULL,
{0x30,0x60,0x61,0x70,0xf0,EOT},
{0x00,0x03,0x10,0x0b,0x00,EOT}},
{EOT}}},
+ {0x8761, "IT8761E", {
+ {EOT}}},
+ {0x8780, "IT8780F", {
+ {EOT}}},
{EOT}
};
OUTB(initkey_mbpnp[i], port);
}
-/**
- * IT871[01]F and IT8708F use 0x87, 0x87
- * IT8761F uses 0x87, 0x61, 0x55, 0x55/0xaa
- * IT86xxF series uses different ports
- */
static void enter_conf_mode_ite(uint16_t port)
{
OUTB(0x87, port);
OUTB((port == 0x2e) ? 0x55 : 0xaa, port);
}
+static void enter_conf_mode_ite_it8761e(uint16_t port)
+{
+ OUTB(0x87, port);
+ OUTB(0x61, port);
+ OUTB(0x55, port);
+ OUTB((port == 0x2e) ? 0x55 : 0xaa, port);
+}
+
+static void enter_conf_mode_ite_it8228e(uint16_t port)
+{
+ OUTB(0x82, port);
+ OUTB(0x28, port);
+ OUTB(0x55, port);
+ OUTB((port == 0x2e) ? 0x55 : 0xaa, port);
+}
+
static void exit_conf_mode_ite(uint16_t port)
{
regwrite(port, 0x02, 0x02);
get_superio_name(reg_table, id), id, chipver, port);
chip_found = 1;
- dump_superio("ITE", reg_table, port, id);
+ dump_superio("ITE", reg_table, port, id, LDN_SEL);
if (extra_dump) {
- regwrite(port, 0x07, 0x04); /* Select LDN 4 (EC). */
+ regwrite(port, LDN_SEL, 0x04); /* Select LDN 4 (EC). */
/* Get EC base address (stored in LDN 4, index 0x60/0x61). */
ecport = regval(port, 0x60) << 8;
ecport += 5;
printf("Environment controller (0x%04x)\n", ecport);
- dump_superio("ITE-EC", ec_table, ecport, id);
+ dump_superio("ITE-EC", ec_table, ecport, id, LDN_SEL);
}
}
exit_conf_mode_ite(port);
} else {
enter_conf_mode_ite(port);
- probe_idregs_ite_helper("(init=0x87,0x01,0x55,0x55/0xaa) ", port);
+ probe_idregs_ite_helper("(init=standard) ", port);
+ exit_conf_mode_ite(port);
+
+ enter_conf_mode_ite_it8761e(port);
+ probe_idregs_ite_helper("(init=it8761e) ", port);
+ exit_conf_mode_ite(port);
+
+ enter_conf_mode_ite_it8228e(port);
+ probe_idregs_ite_helper("(init=it8228e) ", port);
exit_conf_mode_ite(port);
enter_conf_mode_winbond_fintek_ite_8787(port);
void print_ite_chips(void)
{
print_vendor_chips("ITE", reg_table);
- print_vendor_chips("ITE EC", ec_table);
+ print_vendor_chips("ITE-EC", ec_table);
}