diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-06-06 08:32:42 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-06-18 20:29:24 +0200 |
commit | a1e924ca6b5c8ce84625ac525db117391e5f872f (patch) | |
tree | 608c8de391181442e8ef561ce9b4a275046cbefd | |
parent | f565ab0e2500090f9392d83c7b0e8b8bbab67ce4 (diff) | |
download | coreboot-a1e924ca6b5c8ce84625ac525db117391e5f872f.tar.xz |
mainboard/supermicro/h8dme: Drop unused code
Clang complains about a unused debug function, so remove dead code.
We have copy of dump_smbus_registers() in amdk8/debug.c.
Change-Id: Ibf46deb1de1589d81760841b1d4ba319707915aa
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5942
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
-rw-r--r-- | src/mainboard/supermicro/h8dme/romstage.c | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/src/mainboard/supermicro/h8dme/romstage.c b/src/mainboard/supermicro/h8dme/romstage.c index 7763480194..e3e738674e 100644 --- a/src/mainboard/supermicro/h8dme/romstage.c +++ b/src/mainboard/supermicro/h8dme/romstage.c @@ -45,33 +45,6 @@ static void memreset(int controllers, const struct mem_controller *ctrl) { } -static inline void dump_smbus_registers(void) -{ - u32 device; - - print_debug("\n"); - for (device = 1; device < 0x80; device++) { - int j; - if (smbus_read_byte(device, 0) < 0) - continue; - printk(BIOS_DEBUG, "smbus: %02x", device); - for (j = 0; j < 256; j++) { - int status; - unsigned char byte; - status = smbus_read_byte(device, j); - if (status < 0) { - break; - } - if ((j & 0xf) == 0) { - printk(BIOS_DEBUG, "\n%02x: ", j); - } - byte = status & 0xff; - printk(BIOS_DEBUG, "%02x ", byte); - } - print_debug("\n"); - } -} - static inline void activate_spd_rom(const struct mem_controller *ctrl) { #if 0 @@ -178,7 +151,9 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) print_debug("\n"); set_sysinfo_in_ram(0); // in BSP so could hold all ap until sysinfo is in ram -/* dump_smbus_registers(); */ +#if CONFIG_DEBUG_SMBUS + dump_smbus_registers(); +#endif setup_coherent_ht_domain(); // routing table and start other core0 wait_all_core0_started(); |