hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/spi/pxa2xx_spi.h
....@@ -1,15 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * 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.
134 */
145 #ifndef __linux_pxa2xx_spi_h
156 #define __linux_pxa2xx_spi_h
....@@ -22,9 +13,11 @@
2213 struct dma_chan;
2314
2415 /* device.platform_data for SSP controller devices */
25
-struct pxa2xx_spi_master {
16
+struct pxa2xx_spi_controller {
2617 u16 num_chipselect;
2718 u8 enable_dma;
19
+ u8 dma_burst_size;
20
+ bool is_slave;
2821
2922 /* DMA engine specific config */
3023 bool (*dma_filter)(struct dma_chan *chan, void *param);
....@@ -53,7 +46,7 @@
5346
5447 #include <linux/clk.h>
5548
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);
5750
5851 #endif
5952 #endif