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 <[email protected]>
Acked-by: Stefan Reinauer <[email protected]>

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;

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to