]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/drv/_tms570_rpp/spi_def.h
Make configuration of SPI devices target dependent
[pes-rpp/rpp-lib.git] / rpp / include / drv / _tms570_rpp / spi_def.h
1 /*
2  * Copyright (C) 2015 Czech Technical University in Prague
3  *
4  * Authors:
5  *     - Michal Sojka <sojkam1@fel.cvut.cz>
6  *
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.
11  *
12  */
13
14 #ifndef _TMS570_RPP_SPI_DEF_H
15 #define _TMS570_RPP_SPI_DEF_H
16
17 #include "drv/spi_tms570.h"
18
19 /* Identifiers of SPI devices (=chips) bound to particular
20  * interfaces */
21
22 enum spi_ifc1_devices {
23         SPIDEV_MC33972 = 0,
24         SPIDEV_NCV7608_2x,
25 };
26 enum spi_ifc2_devices {
27         SPIDEV_SDCARD = 0
28 };
29 enum spi_ifc3_devices {
30         SPIDEV_MCP4922_1 = 0,
31         SPIDEV_MCP4922_2,
32         SPIDEV_MCP4922_3
33 };
34 enum spi_ifc4_devices {
35         SPIDEV_L99H01 = 0,
36         SPIDEV_TJA1082_1,
37         SPIDEV_TJA1082_2
38 };
39
40 extern spi_tms570_drv_t spi_ifcs[4];
41
42 #endif