The Winbond Super I/O chips have another indirection of registers. The
hwmon has generic registers and banked registers, mostly temperature handling, and SMI/GPIO stuff. Not all LDNs are switched via register offset 0x07, make it a parameter. Add support for dumping the hardware monitor of Winbond W83627THF/THG parts with the -e option. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3784 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Uwe Hermann
parent
b4eb4fb6b0
commit
7a51e50582
@@ -534,10 +534,10 @@ static void probe_idregs_ite_helper(const char *init, uint16_t port)
|
||||
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;
|
||||
@@ -547,7 +547,7 @@ static void probe_idregs_ite_helper(const char *init, uint16_t port)
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -583,5 +583,5 @@ void probe_idregs_ite(uint16_t 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user