aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-12-28 21:18:39 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-01-07 19:34:04 -0500
commitbf196c302870325cc4562d9ae571231138f85f28 (patch)
tree025a707b4bfeb6607cb835d4e0ceffbd1eba4c1f /src
parent212813906a7ae3b81b47ac12648f3080ba26dbde (diff)
downloadkutter-bf196c302870325cc4562d9ae571231138f85f28.tar.gz
kutter-bf196c302870325cc4562d9ae571231138f85f28.tar.xz
kutter-bf196c302870325cc4562d9ae571231138f85f28.zip
sam3: Add additional SPI and USART buses to spi.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/sam3/spi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sam3/spi.c b/src/sam3/spi.c
index 0c96baca..61b773e6 100644
--- a/src/sam3/spi.c
+++ b/src/sam3/spi.c
@@ -25,9 +25,13 @@ struct spi_info {
static const struct spi_info spi_bus[] = {
#if CONFIG_MACH_SAM3X8E
{ SPI0, ID_SPI0, GPIO('A', 25), GPIO('A', 26), GPIO('A', 27), 'A', 'A' },
+ { USART0, ID_USART0, GPIO('A', 10), GPIO('A', 11), GPIO('A', 17), 'A', 'B'},
+ { USART1, ID_USART1, GPIO('A', 12), GPIO('A', 13), GPIO('A', 16), 'A', 'A'},
+ { USART2, ID_USART2, GPIO('B', 21), GPIO('B', 20), GPIO('B', 24), 'A', 'A'},
#elif CONFIG_MACH_SAM4E8E
{ USART0, ID_USART0, GPIO('B', 0), GPIO('B', 1), GPIO('B', 13), 'C', 'C' },
{ USART1, ID_USART1, GPIO('A', 21), GPIO('A', 22), GPIO('A', 23), 'A', 'A'},
+ { SPI, ID_SPI, GPIO('A', 12), GPIO('A', 13), GPIO('A', 14), 'A', 'A' },
#endif
};