]> git.sur5r.net Git - u-boot/commitdiff
Motion-PRO: Add displaying of CPLD revision information during boot.
authorBartlomiej Sieka <tur@semihalf.com>
Sun, 27 May 2007 14:55:23 +0000 (16:55 +0200)
committerBartlomiej Sieka <tur@semihalf.com>
Sun, 27 May 2007 14:55:23 +0000 (16:55 +0200)
Signed-off-by: Jan Wrobel <wrr@semihalf.com>
Acked-by: Bartlomiej Sieka <tur@semihalf.com>
board/motionpro/motionpro.c
include/configs/motionpro.h

index 98357c7f4228dad3785b762e9aec97acf0b69c51..1729ae74166f0478e796d36cf4cfa7cd58b1928f 100644 (file)
@@ -173,7 +173,8 @@ long int initdram (int board_type)
 
 int checkboard (void)
 {
-       puts("Board: Promess Motion-PRO board\n");
+       uchar rev = *(vu_char *)CPLD_REV_REGISTER;
+       printf("Board: Promess Motion-PRO board (CPLD rev. 0x%02x)\n", rev);
        return 0;
 }
 
index 358c380d449aba7773f951de709409e5d2874d85..8ffcc4c9c11752c4e0ffc4073995d867015dde9c 100644 (file)
@@ -356,6 +356,12 @@ extern void __led_set(led_id_t id, int state);
 #define CFG_GPS_PORT_CONFIG    0x1105a004
 
 
+/*
+ * Motion-PRO's CPLD revision control register
+ */
+#define CPLD_REV_REGISTER      (CFG_CS2_START + 0x06)
+
+
 /*
  * Miscellaneous configurable options
  */