de10-nano: added initial support for Terasic DE10-Nano-SoC kit
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "arm/96boards.h"
|
||||
#include "arm/altera_socfpga.h"
|
||||
#include "arm/banana.h"
|
||||
#include "arm/beaglebone.h"
|
||||
#include "arm/phyboard.h"
|
||||
@@ -70,6 +71,8 @@ mraa_arm_platform()
|
||||
else if (mraa_file_exist("/sys/class/leds/green:ph24:led1")) {
|
||||
platform_type = MRAA_BANANA;
|
||||
}
|
||||
} else if (strstr(line, "Altera SOCFPGA")) {
|
||||
platform_type = MRAA_ALTERA_SOCFPGA;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,6 +110,9 @@ mraa_arm_platform()
|
||||
case MRAA_96BOARDS:
|
||||
plat = mraa_96boards();
|
||||
break;
|
||||
case MRAA_ALTERA_SOCFPGA:
|
||||
plat = mraa_altera_socfpga();
|
||||
break;
|
||||
default:
|
||||
plat = NULL;
|
||||
syslog(LOG_ERR, "Unknown Platform, currently not supported by MRAA");
|
||||
|
||||
Reference in New Issue
Block a user