summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2011-03-01 15:59:39 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2011-03-01 15:59:39 +1100
commit1bf277bdb1cd998bd02c9a5b457c3b211086d961 (patch)
treec439176ec605315d9707a646768956076299f340 /include
parent34f429ee4ded2d26fec2a9c9ec8e47f07008930b (diff)
parent57d9c10dd91f942f836592f407d6351e2969548a (diff)
Merge remote-tracking branch 'spi/spi/next'
Diffstat (limited to 'include')
-rw-r--r--include/linux/spi/spi_oc_tiny.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/spi/spi_oc_tiny.h b/include/linux/spi/spi_oc_tiny.h
new file mode 100644
index 000000000000..1ac529cf4f06
--- /dev/null
+++ b/include/linux/spi/spi_oc_tiny.h
@@ -0,0 +1,20 @@
+#ifndef _LINUX_SPI_SPI_OC_TINY_H
+#define _LINUX_SPI_SPI_OC_TINY_H
+
+/**
+ * struct tiny_spi_platform_data - platform data of the OpenCores tiny SPI
+ * @freq: input clock freq to the core.
+ * @baudwidth: baud rate divider width of the core.
+ * @gpio_cs_count: number of gpio pins used for chipselect.
+ * @gpio_cs: array of gpio pins used for chipselect.
+ *
+ * freq and baudwidth are used only if the divider is programmable.
+ */
+struct tiny_spi_platform_data {
+ unsigned int freq;
+ unsigned int baudwidth;
+ unsigned int gpio_cs_count;
+ int *gpio_cs;
+};
+
+#endif /* _LINUX_SPI_SPI_OC_TINY_H */