| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2009 Texas Instruments. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * You should have received a copy of the GNU General Public License |
|---|
| 15 | | - * along with this program; if not, write to the Free Software |
|---|
| 16 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 17 | 4 | */ |
|---|
| 18 | 5 | |
|---|
| 19 | 6 | #ifndef __ARCH_ARM_DAVINCI_SPI_H |
|---|
| .. | .. |
|---|
| 36 | 23 | * @num_chipselect: number of chipselects supported by this SPI master |
|---|
| 37 | 24 | * @intr_line: interrupt line used to connect the SPI IP to the ARM interrupt |
|---|
| 38 | 25 | * controller withn the SoC. Possible values are 0 and 1. |
|---|
| 39 | | - * @chip_sel: list of GPIOs which can act as chip-selects for the SPI. |
|---|
| 40 | | - * SPI_INTERN_CS denotes internal SPI chip-select. Not necessary |
|---|
| 41 | | - * to populate if all chip-selects are internal. |
|---|
| 42 | 26 | * @cshold_bug: set this to true if the SPI controller on your chip requires |
|---|
| 43 | 27 | * a write to CSHOLD bit in between transfers (like in DM355). |
|---|
| 44 | 28 | * @dma_event_q: DMA event queue to use if SPI_IO_TYPE_DMA is used for any |
|---|
| .. | .. |
|---|
| 48 | 32 | u8 version; |
|---|
| 49 | 33 | u8 num_chipselect; |
|---|
| 50 | 34 | u8 intr_line; |
|---|
| 51 | | - u8 *chip_sel; |
|---|
| 52 | 35 | u8 prescaler_limit; |
|---|
| 53 | 36 | bool cshold_bug; |
|---|
| 54 | 37 | enum dma_event_q dma_event_q; |
|---|