up: add support for UP Board
Add support for UP board (www.up-board.org), scoping the following functions available via 40-pin header: * GPIO (via sysfs) * UART * I2C * SPI * PWM Validated on UP board v0.2, running ubilinux 3.0 Signed-off-by: Dan O'Donovan <dan@emutex.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
3b2a5b8429
commit
f9501c5c78
@@ -36,6 +36,7 @@
|
||||
#include "x86/intel_minnow_byt_compatible.h"
|
||||
#include "x86/intel_sofia_3gr.h"
|
||||
#include "x86/intel_cherryhills.h"
|
||||
#include "x86/up.h"
|
||||
|
||||
mraa_platform_t
|
||||
mraa_x86_platform()
|
||||
@@ -82,6 +83,9 @@ mraa_x86_platform()
|
||||
} else if (strncasecmp(line, "Braswell Cherry Hill", 20) == 0) {
|
||||
platform_type = MRAA_INTEL_CHERRYHILLS;
|
||||
plat = mraa_intel_cherryhills();
|
||||
} else if (strncasecmp(line, "UP-CHT01", 8) == 0) {
|
||||
platform_type = MRAA_UP;
|
||||
plat = mraa_up_board();
|
||||
} else {
|
||||
syslog(LOG_ERR, "Platform not supported, not initialising");
|
||||
platform_type = MRAA_UNKNOWN_PLATFORM;
|
||||
|
||||
Reference in New Issue
Block a user