rpi3: Adding detection of raspberrypi3
Signed-off-by: g-vidal <gerard.vidal@ens-lyon.fr> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user