Add support for non LDN register/device naming.
Signed-off-by: Anders Juel Jensen <[email protected]>
Index: util/superiotool/superiotool.c
===================================================================
--- util/superiotool/superiotool.c (revision 5724)
+++ util/superiotool/superiotool.c (working copy)
@@ -105,7 +105,10 @@
printf(" (%s)", reg_table[i].ldn[j].name);
regwrite(port, ldn_sel, reg_table[i].ldn[j].ldn);
} else {
- printf("Register dump:");
+ if (reg_table[i].ldn[j].name == NULL)
+ printf("Register dump:");
+ else
+ printf("(%s)", reg_table[i].ldn[j].name);
}
idx = reg_table[i].ldn[j].idx;
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot