From ecc64da4184fe736b1f33e87925137d40a2462e0 Mon Sep 17 00:00:00 2001 From: g-vidal Date: Fri, 3 Mar 2017 10:49:08 +0100 Subject: [PATCH] rpi3: Adding detection of raspberrypi3 Signed-off-by: g-vidal Signed-off-by: Brendan Le Foll --- src/arm/arm.c | 2 ++ src/arm/raspberry_pi.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/arm/arm.c b/src/arm/arm.c index 499b48b..f92a732 100644 --- a/src/arm/arm.c +++ b/src/arm/arm.c @@ -50,6 +50,8 @@ mraa_arm_platform() platform_type = MRAA_RASPBERRY_PI; } else if (strstr(line, "BCM2709")) { platform_type = MRAA_RASPBERRY_PI; + } else if (strstr(line, "BCM2835")) { + platform_type = MRAA_RASPBERRY_PI; } else if (strstr(line, "Generic AM33XX")) { if(mraa_file_contains("/proc/device-tree/model", "phyBOARD-WEGA")) { platform_type = MRAA_PHYBOARD_WEGA; diff --git a/src/arm/raspberry_pi.c b/src/arm/raspberry_pi.c index e55295b..b230d93 100644 --- a/src/arm/raspberry_pi.c +++ b/src/arm/raspberry_pi.c @@ -585,6 +585,7 @@ mraa_raspberry_pi() if ((platform_detected == PLATFORM_RASPBERRY_PI_A_PLUS_REV_1) || (platform_detected == PLATFORM_RASPBERRY_PI_B_PLUS_REV_1) || (platform_detected == PLATFORM_RASPBERRY_PI2_B_REV_1) || + (platform_detected == PLATFORM_RASPBERRY_PI3_B) || (platform_detected == PLATFORM_RASPBERRY_PI_ZERO)) { strncpy(b->pins[27].name, "ID_SD", MRAA_PIN_NAME_SIZE);