2 * Copyright (C) 2015 Czech Technical University in Prague
5 * - Michal Sojka <sojkam1@fel.cvut.cz>
7 * This document contains proprietary information belonging to Czech
8 * Technical University in Prague. Passing on and copying of this
9 * document, and communication of its contents is not permitted
10 * without prior written authorization.
14 #include "drv/spi_def.h"
15 #include "drv/spi_tms570.h"
17 static spi_dev_t spi_ifc1_devs[] = {
25 [SPIDEV_NCV7608_2x] = {
34 static spi_dev_t spi_ifc2_devs[] = {
44 static spi_dev_t spi_ifc3_devs[] = {
45 [SPIDEV_MCP4922_1] = {
52 [SPIDEV_MCP4922_2] = {
59 [SPIDEV_MCP4922_3] = {
68 static spi_dev_t spi_ifc4_devs[] = {
70 .cs = SPI_CS_0 | SPI_CS_DMM0,
76 [SPIDEV_TJA1082_1] = {
77 .cs = SPI_CS_0 | SPI_CS_DMM1,
83 [SPIDEV_TJA1082_2] = {
84 .cs = SPI_CS_0 | SPI_CS_DMM2,
92 /* Each SPI interface has its own static spi_tms570_drv_t struct
93 Index to this array is "SPI Interface ID -1" */
94 spi_tms570_iface_t spi_ifcs[4] = {
96 .reg = mibspi_compat_REG1,
97 .spi_devs = spi_ifc1_devs,
100 .reg = spi_compat_REG2,
101 .spi_devs = spi_ifc2_devs,
104 .reg = mibspi_compat_REG3,
105 .spi_devs = spi_ifc3_devs,
108 .reg = spi_compat_REG4,
109 .spi_devs = spi_ifc4_devs,