From: Bartlomiej Sieka Date: Sun, 27 May 2007 14:55:23 +0000 (+0200) Subject: Motion-PRO: Add displaying of CPLD revision information during boot. X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c75e639630cc132dc19cd1ecda5922c0db0bfbba;p=u-boot.git Motion-PRO: Add displaying of CPLD revision information during boot. Signed-off-by: Jan Wrobel Acked-by: Bartlomiej Sieka --- diff --git a/board/motionpro/motionpro.c b/board/motionpro/motionpro.c index 98357c7f42..1729ae7416 100644 --- a/board/motionpro/motionpro.c +++ b/board/motionpro/motionpro.c @@ -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; } diff --git a/include/configs/motionpro.h b/include/configs/motionpro.h index 358c380d44..8ffcc4c9c1 100644 --- a/include/configs/motionpro.h +++ b/include/configs/motionpro.h @@ -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 */