/*********************************************************************** * * sdram_panic -- Panic if we cannot configure the sdram correctly * ************************************************************************/ void sdram_panic(const char *reason) { printf("\n%s: reason %s", __FUNCTION__, reason); hcu_led_set(0xff); while (1) { } /* Never return */ }
void nm_show_print(int generation, int index, int hw_capabilities) { int j; char *generationName=0; /* reset ANSI terminal color mode */ printf("\x1B""[0m""Netstal Maschinen AG: "); for (j=0; j < (sizeof(generations)/sizeof(generations[0])); j++) { if (generations[j].id == generation) { generationName = generations[j].name; break; } } printf("%s: index %d HW 0x%x\n", generationName, index, hw_capabilities); for (j = 0; j < 6; j++) { hcu_led_set(1 << j); udelay(200 * 1000); } }