i.MX53: support mask revision 4
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 10 Nov 2014 13:03:02 +0000 (14:03 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 10 Nov 2014 13:03:02 +0000 (14:03 +0100)
packages/hal/arm/mx53/var/v2_0/src/soc_misc.c

index 75ef8bf..2846158 100644 (file)
@@ -155,6 +155,11 @@ void hal_hardware_init(void)
                        HAL_PLATFORM_EXTRA[7] = '1';
                        system_rev |= 2 << MAJOR_NUMBER_OFFSET;
                        system_rev |= 1 << MINOR_NUMBER_OFFSET;
+               } else if (ver == 0x4) {
+                       HAL_PLATFORM_EXTRA[5] = '3';
+                       HAL_PLATFORM_EXTRA[7] = '0';
+                       system_rev |= 3 << MAJOR_NUMBER_OFFSET;
+                       system_rev |= 0 << MINOR_NUMBER_OFFSET;
                } else {
                        HAL_PLATFORM_EXTRA[5] = 'x';
                        HAL_PLATFORM_EXTRA[7] = 'x';