[U-Boot] [PATCH] rpi: fix up Model B entries
popcorn mix
popcornmix at gmail.com
Wed Jan 27 15:47:14 CET 2016
I believe this is accurate for identifying boards from revision numbers:
https://github.com/AndrewFromMelbourne/raspberry_pi_revision
>From the firmware, old style revision numbers:
case 0x02: case 0x03:
boardrev = MAKE_BOARDREV(MODELB, 1_1); break;
case 0x04: case 0x05: case 0x06:
boardrev = MAKE_BOARDREV(MODELB, 1_2); break;
case 0x07: case 0x08: case 0x09:
boardrev = MAKE_BOARDREV(MODELA, 1_2); break;
case 0x0d: case 0x0e: case 0x0f:
boardrev = MAKE_BOARDREV(MODELB, 1_2); break;
case 0x10: case 0x13: case 0x16: case 0x19:
boardrev = MAKE_BOARDREV(MODELBPLUS, 1_2);
break;
case 0x11: case 0x14: case 0x17: case 0x1a:
boardrev = MAKE_BOARDREV(CM, 1_0); break;
case 0x12: case 0x15: case 0x18: case 0x1b:
boardrev = MAKE_BOARDREV(MODELAPLUS, 1_1); break;
default:
boardrev = MAKE_BOARDREV(MODELB, 1_2); break;
}
and new style (bits 4-11):
typedef enum
{
BOARD_TYPE_MODELA = 0,
BOARD_TYPE_MODELB = 1,
BOARD_TYPE_MODELAPLUS = 2,
BOARD_TYPE_MODELBPLUS = 3,
BOARD_TYPE_PI2MODELB = 4,
BOARD_TYPE_ALPHA = 5,
BOARD_TYPE_CM = 6,
BOARD_TYPE_PI0 = 9,
} BOARD_TYPE_T;
More information about the U-Boot
mailing list