96boards: add support to 96boards (https://www.96boards.org/)
This patch adds support to 96boards. 96boards is an open platform specification. This spec strandardizes the pins on the external connectors like Low speed and High speed. Given these pins are standard across multiple boards, I think adding a generic 96boards made sense to me. The idea behind adding this generic board file is to make mraa work on most of the 96boards with minimal changes to board support in libmraa. This patch adds support to the LS expansion connector which has got 12 gpio pins + 2 i2c + 1 spi and 2 uarts. For now I have added Dragaon board DB401c support as part of this patch and is tested. More info about board @ https://www.96boards.org/products/ce/dragonboard410c/ Long term plan is to get all this configuration from the /sys and populate the board specifics dynamically, which is bit easy with 96boards specs in-place. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
47ec54c333
commit
c0dfb71237
47
include/arm/96boards.h
Normal file
47
include/arm/96boards.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
|
||||
* Copyright (c) 2015 Linaro Limited.
|
||||
* Copyright (c) 2014 Intel Corporation.
|
||||
*
|
||||
* Copied from include/arm/banana.h
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "mraa_internal.h"
|
||||
|
||||
#define MRAA_96BOARDS_LS_GPIO_COUNT 12
|
||||
#define MRAA_96BOARDS_LS_I2C_COUNT 2
|
||||
#define MRAA_96BOARDS_LS_SPI_COUNT 1
|
||||
#define MRAA_96BOARDS_LS_UART_COUNT 2
|
||||
|
||||
#define DB410C_PINCOUNT 122
|
||||
|
||||
mraa_board_t* mraa_96boards();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user