diff options
-rw-r--r-- | board/motionpro/motionpro.c | 3 | ||||
-rw-r--r-- | include/configs/motionpro.h | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/board/motionpro/motionpro.c b/board/motionpro/motionpro.c index 98357c7..1729ae7 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 358c380..8ffcc4c 100644 --- a/include/configs/motionpro.h +++ b/include/configs/motionpro.h @@ -357,6 +357,12 @@ extern void __led_set(led_id_t id, int state); /* + * Motion-PRO's CPLD revision control register + */ +#define CPLD_REV_REGISTER (CFG_CS2_START + 0x06) + + +/* * Miscellaneous configurable options */ #define CFG_LONGHELP /* undef to save memory */ |