diff options
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/eeprom.h | 10 | ||||
-rw-r--r-- | include/linux/spi/rspi.h | 31 |
2 files changed, 41 insertions, 0 deletions
diff --git a/include/linux/spi/eeprom.h b/include/linux/spi/eeprom.h index 306e7b1c69ed..403e007aef68 100644 --- a/include/linux/spi/eeprom.h +++ b/include/linux/spi/eeprom.h | |||
@@ -20,6 +20,16 @@ struct spi_eeprom { | |||
20 | #define EE_ADDR3 0x0004 /* 24 bit addrs */ | 20 | #define EE_ADDR3 0x0004 /* 24 bit addrs */ |
21 | #define EE_READONLY 0x0008 /* disallow writes */ | 21 | #define EE_READONLY 0x0008 /* disallow writes */ |
22 | 22 | ||
23 | /* | ||
24 | * Certain EEPROMS have a size that is larger than the number of address | ||
25 | * bytes would allow (e.g. like M95040 from ST that has 512 Byte size | ||
26 | * but uses only one address byte (A0 to A7) for addressing.) For | ||
27 | * the extra address bit (A8, A16 or A24) bit 3 of the instruction byte | ||
28 | * is used. This instruction bit is normally defined as don't care for | ||
29 | * other AT25 like chips. | ||
30 | */ | ||
31 | #define EE_INSTR_BIT3_IS_ADDR 0x0010 | ||
32 | |||
23 | /* for exporting this chip's data to other kernel code */ | 33 | /* for exporting this chip's data to other kernel code */ |
24 | void (*setup)(struct memory_accessor *mem, void *context); | 34 | void (*setup)(struct memory_accessor *mem, void *context); |
25 | void *context; | 35 | void *context; |
diff --git a/include/linux/spi/rspi.h b/include/linux/spi/rspi.h new file mode 100644 index 000000000000..900f0e328235 --- /dev/null +++ b/include/linux/spi/rspi.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * Renesas SPI driver | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Solutions Corp. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | * | ||
19 | */ | ||
20 | |||
21 | #ifndef __LINUX_SPI_RENESAS_SPI_H__ | ||
22 | #define __LINUX_SPI_RENESAS_SPI_H__ | ||
23 | |||
24 | struct rspi_plat_data { | ||
25 | unsigned int dma_tx_id; | ||
26 | unsigned int dma_rx_id; | ||
27 | |||
28 | unsigned dma_width_16bit:1; /* DMAC read/write width = 16-bit */ | ||
29 | }; | ||
30 | |||
31 | #endif | ||