Private
Public Access
2
0

phyboard-wega: Added platform support for phyBOARD-Wega

Like the beaglebone, the phyBOARD-Wega also got an am335x.
So I merged the four mmap-functions for gpio_context and some
identical defines in a separate header and c-file.
The new platform support-files are based on beaglebone-files.

The documentation of phyBOARD-Wega is still in process,
but for now there are enough informations.
At this time it is possible to use GPIO-Pins and Uart0
(tested via python with mraa). The code for using SPI, I2C and
PWM is also still in process and not tested yet.

Signed-off-by: Norbert Wesp <nwesp@phytec.de>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Norbert Wesp
2017-01-19 14:09:28 +01:00
committed by Brendan Le Foll
parent 72261d61bd
commit 4472ff1629
14 changed files with 1230 additions and 137 deletions

View File

@@ -29,6 +29,7 @@
#include "arm/96boards.h"
#include "arm/banana.h"
#include "arm/beaglebone.h"
#include "arm/phyboard.h"
#include "arm/raspberry_pi.h"
#include "mraa_internal.h"
@@ -49,7 +50,11 @@ mraa_arm_platform()
} else if (strstr(line, "BCM2709")) {
platform_type = MRAA_RASPBERRY_PI;
} else if (strstr(line, "Generic AM33XX")) {
platform_type = MRAA_BEAGLEBONE;
if(mraa_file_contains("/sys/firmware/devicetree/base/model", "phyBOARD-WEGA")) {
platform_type = MRAA_PHYBOARD_WEGA;
} else {
platform_type = MRAA_BEAGLEBONE;
}
} else if (strstr(line, "HiKey Development Board")) {
platform_type = MRAA_96BOARDS;
} else if (strstr(line, "s900")) {
@@ -91,6 +96,9 @@ mraa_arm_platform()
case MRAA_BEAGLEBONE:
plat = mraa_beaglebone();
break;
case MRAA_PHYBOARD_WEGA:
plat = mraa_phyboard();
break;
case MRAA_BANANA:
plat = mraa_banana();
break;