Add support for Orange Pi Prime
This commit is contained in:
committed by
Tom Ingleby
parent
db1f5207b9
commit
f727c01d2e
@@ -21,6 +21,7 @@
|
||||
#include "arm/raspberry_pi.h"
|
||||
#include "arm/adlink_ipi.h"
|
||||
#include "arm/siemens/iot2050.h"
|
||||
#include "arm/orange_pi_prime.h"
|
||||
#include "mraa_internal.h"
|
||||
|
||||
|
||||
@@ -111,6 +112,8 @@ mraa_arm_platform()
|
||||
platform_type = MRAA_ADLINK_IPI;
|
||||
else if (mraa_file_contains("/proc/device-tree/model", "SIMATIC IOT2050"))
|
||||
platform_type = MRAA_SIEMENS_IOT2050;
|
||||
else if (mraa_file_contains("/proc/device-tree/model", "Xunlong Orange Pi Prime"))
|
||||
platform_type = MRAA_ORANGE_PI_PRIME;
|
||||
}
|
||||
|
||||
switch (platform_type) {
|
||||
@@ -149,6 +152,9 @@ mraa_arm_platform()
|
||||
case MRAA_SIEMENS_IOT2050:
|
||||
plat = mraa_siemens_iot2050();
|
||||
break;
|
||||
case MRAA_ORANGE_PI_PRIME:
|
||||
plat = mraa_orange_pi_prime();
|
||||
break;
|
||||
default:
|
||||
plat = NULL;
|
||||
syslog(LOG_ERR, "Unknown Platform, currently not supported by MRAA");
|
||||
|
||||
Reference in New Issue
Block a user