summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2011-02-28 16:03:55 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2011-02-28 16:03:55 +1100
commit82ead31122ec3ff76aadcaf2ac031c4120a55ffb (patch)
tree10c957ea8895c7b38adf1d8c949f04627611648d /include
parentd20483ab6f932c6729527ce5c24594eb8f061630 (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 */