Private
Public Access
2
0

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:
root
2017-02-20 15:49:48 -08:00
committed by Brendan Le Foll
parent 0470aebee6
commit 0004dfeefb
7 changed files with 609 additions and 0 deletions

View File

@@ -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");