Add support for non LDN register/device naming.

Signed-off-by: Anders Juel Jensen <andersjjensen@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5726 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Anders Juel Jensen 2010-08-22 19:40:11 +00:00 committed by Stefan Reinauer
parent 280275dcb5
commit 4fd7df9535
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ static void dump_regs(const struct superio_registers reg_table[],
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;