[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1295378505-15221-10-git-send-email-cyril@ti.com>
Date: Tue, 18 Jan 2011 14:21:43 -0500
From: Cyril Chemparathy <cyril@...com>
To: davinci-linux-open-source@...ux.davincidsp.com,
spi-devel-general@...ts.sourceforge.net, sameo@...ux.intel.com,
rpurdie@...ys.net, dbrownell@...rs.sourceforge.net
Cc: c-park@...com, linux-arm-kernel@...ts.arm.linux.org.uk,
linux-kernel@...r.kernel.org, Cyril Chemparathy <cyril@...com>
Subject: [PATCH v8 09/11] davinci: add tnetv107x evm ti-ssp gpio device
This patch adds definitions to hook up one of the ti-ssp ports to the SSP GPIO
driver.
Signed-off-by: Cyril Chemparathy <cyril@...com>
---
arch/arm/mach-davinci/board-tnetv107x-evm.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-davinci/board-tnetv107x-evm.c b/arch/arm/mach-davinci/board-tnetv107x-evm.c
index ca23516..e3863dd 100644
--- a/arch/arm/mach-davinci/board-tnetv107x-evm.c
+++ b/arch/arm/mach-davinci/board-tnetv107x-evm.c
@@ -39,6 +39,8 @@
#include <mach/cp_intc.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
@@ -238,9 +240,18 @@ static struct ti_ssp_spi_data spi_master_data = {
SSP_INPUT_SEL(3),
};
+static 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",
+ .pdata = &ssp_gpio_data,
+ .pdata_size = sizeof(ssp_gpio_data),
+ },
[1] = {
.dev_name = "ti-ssp-spi",
.pdata = &spi_master_data,
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists