davinci: add ssp config for tnetv107x evm board
authorCyril Chemparathy <cyril@ti.com>
Tue, 18 Jan 2011 19:21:40 +0000 (19:21 +0000)
committerKevin Hilman <khilman@ti.com>
Tue, 15 Mar 2011 15:17:22 +0000 (08:17 -0700)
This patch adds SSP configuration and pin muxing info for tnetv107x
evm boards.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-davinci/board-tnetv107x-evm.c

index a6db854602277a3e334c1a50585798847cc1c6ea..ef526b184eaf5a25845b73f1af442e7c64f46179 100644 (file)
@@ -99,6 +99,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 +202,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);
 }