| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs |
|---|
| 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 | 4 | */ |
|---|
| 14 | 5 | #ifndef __linux_pxa2xx_spi_h |
|---|
| 15 | 6 | #define __linux_pxa2xx_spi_h |
|---|
| .. | .. |
|---|
| 22 | 13 | struct dma_chan; |
|---|
| 23 | 14 | |
|---|
| 24 | 15 | /* device.platform_data for SSP controller devices */ |
|---|
| 25 | | -struct pxa2xx_spi_master { |
|---|
| 16 | +struct pxa2xx_spi_controller { |
|---|
| 26 | 17 | u16 num_chipselect; |
|---|
| 27 | 18 | u8 enable_dma; |
|---|
| 19 | + u8 dma_burst_size; |
|---|
| 20 | + bool is_slave; |
|---|
| 28 | 21 | |
|---|
| 29 | 22 | /* DMA engine specific config */ |
|---|
| 30 | 23 | bool (*dma_filter)(struct dma_chan *chan, void *param); |
|---|
| .. | .. |
|---|
| 53 | 46 | |
|---|
| 54 | 47 | #include <linux/clk.h> |
|---|
| 55 | 48 | |
|---|
| 56 | | -extern void pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_master *info); |
|---|
| 49 | +extern void pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_controller *info); |
|---|
| 57 | 50 | |
|---|
| 58 | 51 | #endif |
|---|
| 59 | 52 | #endif |
|---|