Add support for the Libretech-CC board (Amlogic S905X SoC)
Add support and PIN mapping for the LibreTech AML-S905X-CC (Le Potato) board. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
140a468ef7
commit
6522042b07
5 changed files with 53 additions and 14 deletions
|
|
@ -49,6 +49,8 @@
|
|||
#define SYSFS_GPIO_Debug(__info,...)
|
||||
#endif
|
||||
|
||||
#if defined(JETSON)
|
||||
|
||||
// BCM GPIO for Jetson nano
|
||||
#define GPIO4 216 // 7, 4
|
||||
#define GPIO17 50 // 11, 17
|
||||
|
|
@ -75,10 +77,18 @@
|
|||
// 22PIN + 2PIN UART0 + 2PIN I2C0 + 2PIN I2C
|
||||
// + 2PIN 3V3 + 2PIN 5V + 8PIN GND = 40PIN
|
||||
|
||||
#elif defined(LIBRETECH_CC)
|
||||
|
||||
#define SPI0_MOSI 610 // 523 + 87 GPIOX_8
|
||||
#define SPI0_MISO 611 // 523 + 88 GPIOX_9
|
||||
#define SPI0_SCK 613 // 523 + 90 GPIOX_11
|
||||
|
||||
#endif
|
||||
|
||||
int SYSFS_GPIO_Export(int Pin);
|
||||
int SYSFS_GPIO_Unexport(int Pin);
|
||||
int SYSFS_GPIO_Direction(int Pin, int Dir);
|
||||
int SYSFS_GPIO_Read(int Pin);
|
||||
int SYSFS_GPIO_Write(int Pin, int value);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue