summaryrefslogtreecommitdiffstats
path: root/include/asm-sh
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2008-01-23 16:21:18 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-01-28 16:24:46 +0900
commit6582d7b7376aa587d74b08c74457dc28abc1a9fa (patch)
tree2f069e6ec29cdcfedb400b437dd8f02079410522 /include/asm-sh
parentda2d7f4bc578651455a7353995beb87db3cd8815 (diff)
downloadop-kernel-dev-6582d7b7376aa587d74b08c74457dc28abc1a9fa.zip
op-kernel-dev-6582d7b7376aa587d74b08c74457dc28abc1a9fa.tar.gz
sh: add spi header and r2d platform data V3
This patch adds the header file asm/spi.h and board specific code for the r2d board. The header file contains a structure that should be used to point out a single spi bus. The board specific code for r2d is updated with such a structure for the new spi_sh_sci driver. The structure contains a chip select callback plus information about the R9701 rtc chip which is attached to the spi bus. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/spi.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-sh/spi.h b/include/asm-sh/spi.h
new file mode 100644
index 0000000..e96f5b0
--- /dev/null
+++ b/include/asm-sh/spi.h
@@ -0,0 +1,13 @@
+#ifndef __ASM_SPI_H__
+#define __ASM_SPI_H__
+
+struct sh_spi_info;
+
+struct sh_spi_info {
+ int bus_num;
+ int num_chipselect;
+
+ void (*chip_select)(struct sh_spi_info *spi, int cs, int state);
+};
+
+#endif /* __ASM_SPI_H__ */
OpenPOWER on IntegriCloud