diff options
author | Cyril Chemparathy <cyril@ti.com> | 2011-01-18 14:21:40 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-03-15 11:17:22 -0400 |
commit | 08e0e1d5aec4d02153654eb7e54ba621b71d9c5a (patch) | |
tree | 5be3fd371ec07da5cd89d3c7d18ae153fd1e3415 /arch/arm/mach-davinci | |
parent | 24981753dd7427f14324e45b659aeba8c1c66b11 (diff) |
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@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/board-tnetv107x-evm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-tnetv107x-evm.c b/arch/arm/mach-davinci/board-tnetv107x-evm.c index a6db85460227..ef526b184eaf 100644 --- a/arch/arm/mach-davinci/board-tnetv107x-evm.c +++ b/arch/arm/mach-davinci/board-tnetv107x-evm.c | |||
@@ -99,6 +99,12 @@ static const short uart1_pins[] __initdata = { | |||
99 | -1 | 99 | -1 |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static const short ssp_pins[] __initdata = { | ||
103 | TNETV107X_SSP0_0, TNETV107X_SSP0_1, TNETV107X_SSP0_2, | ||
104 | TNETV107X_SSP1_0, TNETV107X_SSP1_1, TNETV107X_SSP1_2, | ||
105 | TNETV107X_SSP1_3, -1 | ||
106 | }; | ||
107 | |||
102 | static struct mtd_partition nand_partitions[] = { | 108 | static struct mtd_partition nand_partitions[] = { |
103 | /* bootloader (U-Boot, etc) in first 12 sectors */ | 109 | /* bootloader (U-Boot, etc) in first 12 sectors */ |
104 | { | 110 | { |
@@ -196,17 +202,25 @@ static struct matrix_keypad_platform_data keypad_config = { | |||
196 | .no_autorepeat = 0, | 202 | .no_autorepeat = 0, |
197 | }; | 203 | }; |
198 | 204 | ||
205 | static struct ti_ssp_data ssp_config = { | ||
206 | .out_clock = 250 * 1000, | ||
207 | .dev_data = { | ||
208 | }, | ||
209 | }; | ||
210 | |||
199 | static struct tnetv107x_device_info evm_device_info __initconst = { | 211 | static struct tnetv107x_device_info evm_device_info __initconst = { |
200 | .serial_config = &serial_config, | 212 | .serial_config = &serial_config, |
201 | .mmc_config[1] = &mmc_config, /* controller 1 */ | 213 | .mmc_config[1] = &mmc_config, /* controller 1 */ |
202 | .nand_config[0] = &nand_config, /* chip select 0 */ | 214 | .nand_config[0] = &nand_config, /* chip select 0 */ |
203 | .keypad_config = &keypad_config, | 215 | .keypad_config = &keypad_config, |
216 | .ssp_config = &ssp_config, | ||
204 | }; | 217 | }; |
205 | 218 | ||
206 | static __init void tnetv107x_evm_board_init(void) | 219 | static __init void tnetv107x_evm_board_init(void) |
207 | { | 220 | { |
208 | davinci_cfg_reg_list(sdio1_pins); | 221 | davinci_cfg_reg_list(sdio1_pins); |
209 | davinci_cfg_reg_list(uart1_pins); | 222 | davinci_cfg_reg_list(uart1_pins); |
223 | davinci_cfg_reg_list(ssp_pins); | ||
210 | 224 | ||
211 | tnetv107x_devices_init(&evm_device_info); | 225 | tnetv107x_devices_init(&evm_device_info); |
212 | } | 226 | } |