/* Write 16-bit configuration values into 32-bit word aligned registers. Configure peripheral using register address and register value pairs. DDR subsystem configuration. Configure SERDES interfaces.  */
static uint32_t get_silicon_revision(void)
/* Write 16-bit configuration values into 32-bit word aligned registers. Configure peripheral using register address and register value pairs. DDR subsystem configuration. Configure SERDES interfaces.  */
static uint32_t get_silicon_revision(void)
{
    uint32_t silicon_revision;
    uint32_t device_version;
    device_version = SYSREG->DEVICE_VERSION;
    switch(device_version)
    {
        case 0x0000F802:
            silicon_revision = M2S050_REV_A_SILICON;
            break;
        case 0x0001F802:
            silicon_revision = M2S050_REV_B_SILICON;
            break;
        default:
            silicon_revision = UNKNOWN_SILICON_REV;
            break;
    }
    return silicon_revision;
}