This patch adds definitions to hook up one of the ti-ssp ports to the SSP GPIO
driver.

Signed-off-by: Cyril Chemparathy <cy...@ti.com>
---
 arch/arm/mach-davinci/board-tnetv107x-evm.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-davinci/board-tnetv107x-evm.c 
b/arch/arm/mach-davinci/board-tnetv107x-evm.c
index 42ae20f..e0acc13 100644
--- a/arch/arm/mach-davinci/board-tnetv107x-evm.c
+++ b/arch/arm/mach-davinci/board-tnetv107x-evm.c
@@ -40,6 +40,8 @@
 #include <mach/ti_ssp.h>
 #include <mach/tnetv107x.h>
 
+#define SSP_GPIO_START         128
+
 #define EVM_MMC_WP_GPIO                21
 #define EVM_MMC_CD_GPIO                24
 #define EVM_SPI_CS_GPIO                54
@@ -236,9 +238,22 @@ static const struct ti_ssp_spi_data spi_master_data = {
        .select         = spi_select_device,
 };
 
+static const struct ti_ssp_gpio_data ssp_gpio_data = {
+       .start          = SSP_GPIO_START,
+};
+
 static struct ti_ssp_data ssp_config = {
        .out_clock      = 250 * 1000,
        .dev_data       = {
+               [0] = {
+                       .dev_name = "ti-ssp-gpio",
+                       .iosel = SSP_PIN_SEL(0, SSP_IN) |
+                                SSP_PIN_SEL(1, SSP_IN) |
+                                SSP_PIN_SEL(2, SSP_IN) |
+                                SSP_PIN_SEL(3, SSP_IN),
+                       .pdata = &ssp_gpio_data,
+                       .pdata_size = sizeof(ssp_gpio_data),
+               },
                [1] = {
                        .dev_name = "ti-ssp-spi",
                        .iosel = SSP_PIN_SEL(0, SSP_CLOCK)      |
-- 
1.7.0.4


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to