Author: stepan Date: Sun Aug 22 21:40:11 2010 New Revision: 5726 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5726
Log: Add support for non LDN register/device naming.
Signed-off-by: Anders Juel Jensen andersjjensen@gmail.com Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/util/superiotool/superiotool.c
Modified: trunk/util/superiotool/superiotool.c ============================================================================== --- trunk/util/superiotool/superiotool.c Sun Aug 22 21:39:04 2010 (r5725) +++ trunk/util/superiotool/superiotool.c Sun Aug 22 21:40:11 2010 (r5726) @@ -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;