]> git.sur5r.net Git - u-boot/blobdiff - board/trab/trab_fkt.c
fsl_pci: create a SET_STD_PCI_INFO() helper wrapper
[u-boot] / board / trab / trab_fkt.c
index 7273ef97b659a7bf55f20fb74d6f6abd2d0ed754..74cdbfcbf466e7cd34ea93bcab83bd1d141a36cc 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <common.h>
 #include <exports.h>
+#include <timestamp.h>
 #include <s3c2400.h>
 #include "tsc2000.h"
 #include "rs485.h"
@@ -293,10 +294,16 @@ int trab_fkt (int argc, char *argv[])
        return 1;
 }
 
+void hang (void)
+{
+       puts ("### ERROR ### Please RESET the board ###\n");
+       for (;;);
+}
+
 int do_info (void)
 {
        printf ("Stand-alone application for TRAB board function test\n");
-       printf ("Built: %s at %s\n", __DATE__ , __TIME__ );
+       printf ("Built: %s at %s\n", U_BOOT_DATE, U_BOOT_TIME);
 
        return 0;
 }
@@ -722,7 +729,7 @@ int do_dac (char **argv)
        int brightness;
 
        /* initialize SPI */
-       spi_init ();
+       tsc2000_spi_init ();
 
        if  (((brightness = simple_strtoul (argv[2], NULL, 10)) < 0) ||
             (brightness > 255)) {