aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorSandeep Paulraj <s-paulraj@ti.com>2009-06-24 12:22:28 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 03:57:00 -0400
commitaf5dbaef76cb01995639cef10ca6f5a2b08207e8 (patch)
tree1f70aa4e2683659bf3d7782c98d896caff9f2403 /arch/arm
parent8593790d604c29a717d5914159ce78c7bb9899fb (diff)
davinci: DM365 Updating PINMUX Entries
Patch updates DM365 PINMUX by adding entries for Video, SPI 1 - 4, PWM 0 - 3. Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-davinci/dm365.c51
-rw-r--r--arch/arm/mach-davinci/include/mach/mux.h58
2 files changed, 109 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c
index c52aad300844..e5873bc0a0fa 100644
--- a/arch/arm/mach-davinci/dm365.c
+++ b/arch/arm/mach-davinci/dm365.c
@@ -533,6 +533,57 @@ MUX_CFG(DM365, EMAC_MDCLK, 3, 0, 1, 1, false)
533 533
534MUX_CFG(DM365, KEYPAD, 2, 0, 0x3f, 0x3f, false) 534MUX_CFG(DM365, KEYPAD, 2, 0, 0x3f, 0x3f, false)
535 535
536MUX_CFG(DM365, PWM0, 1, 0, 3, 2, false)
537MUX_CFG(DM365, PWM0_G23, 3, 26, 3, 3, false)
538MUX_CFG(DM365, PWM1, 1, 2, 3, 2, false)
539MUX_CFG(DM365, PWM1_G25, 3, 29, 3, 2, false)
540MUX_CFG(DM365, PWM2_G87, 1, 10, 3, 2, false)
541MUX_CFG(DM365, PWM2_G88, 1, 8, 3, 2, false)
542MUX_CFG(DM365, PWM2_G89, 1, 6, 3, 2, false)
543MUX_CFG(DM365, PWM2_G90, 1, 4, 3, 2, false)
544MUX_CFG(DM365, PWM3_G80, 1, 20, 3, 3, false)
545MUX_CFG(DM365, PWM3_G81, 1, 18, 3, 3, false)
546MUX_CFG(DM365, PWM3_G85, 1, 14, 3, 2, false)
547MUX_CFG(DM365, PWM3_G86, 1, 12, 3, 2, false)
548
549MUX_CFG(DM365, SPI1_SCLK, 4, 2, 3, 1, false)
550MUX_CFG(DM365, SPI1_SDI, 3, 31, 1, 1, false)
551MUX_CFG(DM365, SPI1_SDO, 4, 0, 3, 1, false)
552MUX_CFG(DM365, SPI1_SDENA0, 4, 4, 3, 1, false)
553MUX_CFG(DM365, SPI1_SDENA1, 4, 0, 3, 2, false)
554
555MUX_CFG(DM365, SPI2_SCLK, 4, 10, 3, 1, false)
556MUX_CFG(DM365, SPI2_SDI, 4, 6, 3, 1, false)
557MUX_CFG(DM365, SPI2_SDO, 4, 8, 3, 1, false)
558MUX_CFG(DM365, SPI2_SDENA0, 4, 12, 3, 1, false)
559MUX_CFG(DM365, SPI2_SDENA1, 4, 8, 3, 2, false)
560
561MUX_CFG(DM365, SPI3_SCLK, 0, 0, 3, 2, false)
562MUX_CFG(DM365, SPI3_SDI, 0, 2, 3, 2, false)
563MUX_CFG(DM365, SPI3_SDO, 0, 6, 3, 2, false)
564MUX_CFG(DM365, SPI3_SDENA0, 0, 4, 3, 2, false)
565MUX_CFG(DM365, SPI3_SDENA1, 0, 6, 3, 3, false)
566
567MUX_CFG(DM365, SPI4_SCLK, 4, 18, 3, 1, false)
568MUX_CFG(DM365, SPI4_SDI, 4, 14, 3, 1, false)
569MUX_CFG(DM365, SPI4_SDO, 4, 16, 3, 1, false)
570MUX_CFG(DM365, SPI4_SDENA0, 4, 20, 3, 1, false)
571MUX_CFG(DM365, SPI4_SDENA1, 4, 16, 3, 2, false)
572
573MUX_CFG(DM365, GPIO20, 3, 21, 3, 0, false)
574MUX_CFG(DM365, GPIO33, 4, 12, 3, 0, false)
575MUX_CFG(DM365, GPIO40, 4, 26, 3, 0, false)
576
577MUX_CFG(DM365, VOUT_FIELD, 1, 18, 3, 1, false)
578MUX_CFG(DM365, VOUT_FIELD_G81, 1, 18, 3, 0, false)
579MUX_CFG(DM365, VOUT_HVSYNC, 1, 16, 1, 0, false)
580MUX_CFG(DM365, VOUT_COUTL_EN, 1, 0, 0xff, 0x55, false)
581MUX_CFG(DM365, VOUT_COUTH_EN, 1, 8, 0xff, 0x55, false)
582MUX_CFG(DM365, VIN_CAM_WEN, 0, 14, 3, 0, false)
583MUX_CFG(DM365, VIN_CAM_VD, 0, 13, 1, 0, false)
584MUX_CFG(DM365, VIN_CAM_HD, 0, 12, 1, 0, false)
585MUX_CFG(DM365, VIN_YIN_EN, 0, 0, 0xfff, 0, false)
586
536INT_CFG(DM365, INT_EDMA_CC, 2, 1, 1, false) 587INT_CFG(DM365, INT_EDMA_CC, 2, 1, 1, false)
537INT_CFG(DM365, INT_EDMA_TC0_ERR, 3, 1, 1, false) 588INT_CFG(DM365, INT_EDMA_TC0_ERR, 3, 1, 1, false)
538INT_CFG(DM365, INT_EDMA_TC1_ERR, 4, 1, 1, false) 589INT_CFG(DM365, INT_EDMA_TC1_ERR, 4, 1, 1, false)
diff --git a/arch/arm/mach-davinci/include/mach/mux.h b/arch/arm/mach-davinci/include/mach/mux.h
index ae4f6dd3623c..cce7509ea302 100644
--- a/arch/arm/mach-davinci/include/mach/mux.h
+++ b/arch/arm/mach-davinci/include/mach/mux.h
@@ -224,6 +224,64 @@ enum davinci_dm365_index {
224 /* Keypad */ 224 /* Keypad */
225 DM365_KEYPAD, 225 DM365_KEYPAD,
226 226
227 /* PWM */
228 DM365_PWM0,
229 DM365_PWM0_G23,
230 DM365_PWM1,
231 DM365_PWM1_G25,
232 DM365_PWM2_G87,
233 DM365_PWM2_G88,
234 DM365_PWM2_G89,
235 DM365_PWM2_G90,
236 DM365_PWM3_G80,
237 DM365_PWM3_G81,
238 DM365_PWM3_G85,
239 DM365_PWM3_G86,
240
241 /* SPI1 */
242 DM365_SPI1_SCLK,
243 DM365_SPI1_SDO,
244 DM365_SPI1_SDI,
245 DM365_SPI1_SDENA0,
246 DM365_SPI1_SDENA1,
247
248 /* SPI2 */
249 DM365_SPI2_SCLK,
250 DM365_SPI2_SDO,
251 DM365_SPI2_SDI,
252 DM365_SPI2_SDENA0,
253 DM365_SPI2_SDENA1,
254
255 /* SPI3 */
256 DM365_SPI3_SCLK,
257 DM365_SPI3_SDO,
258 DM365_SPI3_SDI,
259 DM365_SPI3_SDENA0,
260 DM365_SPI3_SDENA1,
261
262 /* SPI4 */
263 DM365_SPI4_SCLK,
264 DM365_SPI4_SDO,
265 DM365_SPI4_SDI,
266 DM365_SPI4_SDENA0,
267 DM365_SPI4_SDENA1,
268
269 /* GPIO */
270 DM365_GPIO20,
271 DM365_GPIO33,
272 DM365_GPIO40,
273
274 /* Video */
275 DM365_VOUT_FIELD,
276 DM365_VOUT_FIELD_G81,
277 DM365_VOUT_HVSYNC,
278 DM365_VOUT_COUTL_EN,
279 DM365_VOUT_COUTH_EN,
280 DM365_VIN_CAM_WEN,
281 DM365_VIN_CAM_VD,
282 DM365_VIN_CAM_HD,
283 DM365_VIN_YIN_EN,
284
227 /* IRQ muxing */ 285 /* IRQ muxing */
228 DM365_INT_EDMA_CC, 286 DM365_INT_EDMA_CC,
229 DM365_INT_EDMA_TC0_ERR, 287 DM365_INT_EDMA_TC0_ERR,