Skip to content
Snippets Groups Projects
Commit c75e6396 authored by Bartlomiej Sieka's avatar Bartlomiej Sieka
Browse files

Motion-PRO: Add displaying of CPLD revision information during boot.

parent c99512d6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -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
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment