summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2012-11-07 21:30:29 +0400
committerGrant Likely <grant.likely@secretlab.ca>2012-12-05 23:14:38 +0000
commit161b96c383c442f4d7dabbb8500a5fbd551b344d (patch)
treef81c032cf39fe3985a8a10b4895c19c72d6ff8dd /include/linux/platform_data
parentce3293058637ada3b1837a77c8f9c672a51b2434 (diff)
downloadop-kernel-dev-161b96c383c442f4d7dabbb8500a5fbd551b344d.zip
op-kernel-dev-161b96c383c442f4d7dabbb8500a5fbd551b344d.tar.gz
spi/clps711x: New SPI master driver
This patch add new driver for CLPS711X SPI master controller. Due to platform limitations driver supports only 8 bit transfer mode. Chip select control is handled via GPIO. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/spi-clps711x.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/spi-clps711x.h b/include/linux/platform_data/spi-clps711x.h
new file mode 100644
index 0000000..301956e
--- /dev/null
+++ b/include/linux/platform_data/spi-clps711x.h
@@ -0,0 +1,21 @@
+/*
+ * CLPS711X SPI bus driver definitions
+ *
+ * Copyright (C) 2012 Alexander Shiyan <shc_work@mail.ru>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef ____LINUX_PLATFORM_DATA_SPI_CLPS711X_H
+#define ____LINUX_PLATFORM_DATA_SPI_CLPS711X_H
+
+/* Board specific platform_data */
+struct spi_clps711x_pdata {
+ int *chipselect; /* Array of GPIO-numbers */
+ int num_chipselect; /* Total count of GPIOs */
+};
+
+#endif
OpenPOWER on IntegriCloud