The latest Raspberry Pi 2 revision string is missing from the discovery
function mraa_raspberry_pi() and results in incorrect pin mapping defaulting to
PI_B Rev 1.
Signed-off-by: Paul Barrette <paul.barrette@windriver.com>
Signed-off-by: Paul Barrette <paulbarrette@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
b->platform_name = PLATFORM_NAME_RASPBERRY_PI_A_PLUS_REV_1;
platform_detected = PLATFORM_RASPBERRY_PI_A_PLUS_REV_1;
b->phy_pin_count = MRAA_RASPBERRY_PI_AB_PLUS_PINCOUNT;
- } else if (strstr(line, "a01041")) {
+ } else if (strstr(line, "a01041") || strstr(line, "a21041")) {
b->platform_name = PLATFORM_NAME_RASPBERRY_PI2_B_REV_1;
platform_detected = PLATFORM_RASPBERRY_PI2_B_REV_1;
b->phy_pin_count = MRAA_RASPBERRY_PI2_B_REV_1_PINCOUNT;