[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1288124308-14999-4-git-send-email-cyril@ti.com>
Date: Tue, 26 Oct 2010 16:18:19 -0400
From: Cyril Chemparathy <cyril@...com>
To: davinci-linux-open-source@...ux.davincidsp.com,
spi-devel-general@...ts.sourceforge.net,
broonie@...nsource.wolfsonmicro.com, lrg@...mlogic.co.uk,
dbrownell@...rs.sourceforge.net, grant.likely@...retlab.ca,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
rpurdie@...ys.net
Cc: Cyril Chemparathy <cyril@...com>
Subject: [PATCH v4 03/12] davinci: add ssp config for tnetv107x evm board
This patch adds SSP configuration and pin muxing info for tnetv107x
evm boards.
Signed-off-by: Cyril Chemparathy <cyril@...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 a6db854..c74ea66 100644
--- a/arch/arm/mach-davinci/board-tnetv107x-evm.c
+++ b/arch/arm/mach-davinci/board-tnetv107x-evm.c
@@ -33,6 +33,7 @@
#include <mach/edma.h>
#include <mach/mux.h>
#include <mach/cp_intc.h>
+#include <mach/ti_ssp.h>
#include <mach/tnetv107x.h>
#define EVM_MMC_WP_GPIO 21
@@ -99,6 +100,12 @@ static const short uart1_pins[] __initdata = {
-1
};
+static const short ssp_pins[] __initdata = {
+ TNETV107X_SSP0_0, TNETV107X_SSP0_1, TNETV107X_SSP0_2,
+ TNETV107X_SSP1_0, TNETV107X_SSP1_1, TNETV107X_SSP1_2,
+ TNETV107X_SSP1_3, -1
+};
+
static struct mtd_partition nand_partitions[] = {
/* bootloader (U-Boot, etc) in first 12 sectors */
{
@@ -196,17 +203,25 @@ static struct matrix_keypad_platform_data keypad_config = {
.no_autorepeat = 0,
};
+static struct ti_ssp_data ssp_config = {
+ .out_clock = 250 * 1000,
+ .dev_data = {
+ },
+};
+
static struct tnetv107x_device_info evm_device_info __initconst = {
.serial_config = &serial_config,
.mmc_config[1] = &mmc_config, /* controller 1 */
.nand_config[0] = &nand_config, /* chip select 0 */
.keypad_config = &keypad_config,
+ .ssp_config = &ssp_config,
};
static __init void tnetv107x_evm_board_init(void)
{
davinci_cfg_reg_list(sdio1_pins);
davinci_cfg_reg_list(uart1_pins);
+ davinci_cfg_reg_list(ssp_pins);
tnetv107x_devices_init(&evm_device_info);
}
--
1.7.0.4
--
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