Private
Public Access
2
0

intel_gt: add support for gt + Tuchuck board

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-05-13 14:20:25 +01:00
parent 5f515f7648
commit 0577321f4c
11 changed files with 811 additions and 1 deletions

View File

@@ -37,6 +37,7 @@
#include "x86/intel_sofia_3gr.h"
#include "x86/intel_cherryhills.h"
#include "x86/up.h"
#include "x86/intel_gt_tuchuck.h"
mraa_platform_t
mraa_x86_platform()
@@ -86,6 +87,12 @@ mraa_x86_platform()
} else if (strncasecmp(line, "UP-CHT01", 8) == 0) {
platform_type = MRAA_UP;
plat = mraa_up_board();
} else if (strncasecmp(line, "RVP", 3) == 0) {
platform_type = MRAA_INTEL_GT_TUCHUCK;
plat = mraa_gt_tuchuck_board();
} else if (strncasecmp(line, "SDS", 3) == 0) {
platform_type = MRAA_INTEL_GT_TUCHUCK;
plat = mraa_gt_tuchuck_board();
} else {
syslog(LOG_ERR, "Platform not supported, not initialising");
platform_type = MRAA_UNKNOWN_PLATFORM;
@@ -126,6 +133,8 @@ mraa_x86_platform()
plat = mraa_intel_cherryhills();
#elif defined(xMRAA_UP)
plat = mraa_up_board();
#elif defined(MRAA_INTEL_GT_TUCHUCK)
plat = mraa_gt_tuchuck_board();
#else
#error "Not using a valid platform value from mraa_platform_t - cannot compile"
#endif