diff options
author | Sandeep Paulraj <s-paulraj@ti.com> | 2009-06-24 12:22:28 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-08-26 03:57:00 -0400 |
commit | af5dbaef76cb01995639cef10ca6f5a2b08207e8 (patch) | |
tree | 1f70aa4e2683659bf3d7782c98d896caff9f2403 /arch/arm | |
parent | 8593790d604c29a717d5914159ce78c7bb9899fb (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.c | 51 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/mux.h | 58 |
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 | ||
534 | MUX_CFG(DM365, KEYPAD, 2, 0, 0x3f, 0x3f, false) | 534 | MUX_CFG(DM365, KEYPAD, 2, 0, 0x3f, 0x3f, false) |
535 | 535 | ||
536 | MUX_CFG(DM365, PWM0, 1, 0, 3, 2, false) | ||
537 | MUX_CFG(DM365, PWM0_G23, 3, 26, 3, 3, false) | ||
538 | MUX_CFG(DM365, PWM1, 1, 2, 3, 2, false) | ||
539 | MUX_CFG(DM365, PWM1_G25, 3, 29, 3, 2, false) | ||
540 | MUX_CFG(DM365, PWM2_G87, 1, 10, 3, 2, false) | ||
541 | MUX_CFG(DM365, PWM2_G88, 1, 8, 3, 2, false) | ||
542 | MUX_CFG(DM365, PWM2_G89, 1, 6, 3, 2, false) | ||
543 | MUX_CFG(DM365, PWM2_G90, 1, 4, 3, 2, false) | ||
544 | MUX_CFG(DM365, PWM3_G80, 1, 20, 3, 3, false) | ||
545 | MUX_CFG(DM365, PWM3_G81, 1, 18, 3, 3, false) | ||
546 | MUX_CFG(DM365, PWM3_G85, 1, 14, 3, 2, false) | ||
547 | MUX_CFG(DM365, PWM3_G86, 1, 12, 3, 2, false) | ||
548 | |||
549 | MUX_CFG(DM365, SPI1_SCLK, 4, 2, 3, 1, false) | ||
550 | MUX_CFG(DM365, SPI1_SDI, 3, 31, 1, 1, false) | ||
551 | MUX_CFG(DM365, SPI1_SDO, 4, 0, 3, 1, false) | ||
552 | MUX_CFG(DM365, SPI1_SDENA0, 4, 4, 3, 1, false) | ||
553 | MUX_CFG(DM365, SPI1_SDENA1, 4, 0, 3, 2, false) | ||
554 | |||
555 | MUX_CFG(DM365, SPI2_SCLK, 4, 10, 3, 1, false) | ||
556 | MUX_CFG(DM365, SPI2_SDI, 4, 6, 3, 1, false) | ||
557 | MUX_CFG(DM365, SPI2_SDO, 4, 8, 3, 1, false) | ||
558 | MUX_CFG(DM365, SPI2_SDENA0, 4, 12, 3, 1, false) | ||
559 | MUX_CFG(DM365, SPI2_SDENA1, 4, 8, 3, 2, false) | ||
560 | |||
561 | MUX_CFG(DM365, SPI3_SCLK, 0, 0, 3, 2, false) | ||
562 | MUX_CFG(DM365, SPI3_SDI, 0, 2, 3, 2, false) | ||
563 | MUX_CFG(DM365, SPI3_SDO, 0, 6, 3, 2, false) | ||
564 | MUX_CFG(DM365, SPI3_SDENA0, 0, 4, 3, 2, false) | ||
565 | MUX_CFG(DM365, SPI3_SDENA1, 0, 6, 3, 3, false) | ||
566 | |||
567 | MUX_CFG(DM365, SPI4_SCLK, 4, 18, 3, 1, false) | ||
568 | MUX_CFG(DM365, SPI4_SDI, 4, 14, 3, 1, false) | ||
569 | MUX_CFG(DM365, SPI4_SDO, 4, 16, 3, 1, false) | ||
570 | MUX_CFG(DM365, SPI4_SDENA0, 4, 20, 3, 1, false) | ||
571 | MUX_CFG(DM365, SPI4_SDENA1, 4, 16, 3, 2, false) | ||
572 | |||
573 | MUX_CFG(DM365, GPIO20, 3, 21, 3, 0, false) | ||
574 | MUX_CFG(DM365, GPIO33, 4, 12, 3, 0, false) | ||
575 | MUX_CFG(DM365, GPIO40, 4, 26, 3, 0, false) | ||
576 | |||
577 | MUX_CFG(DM365, VOUT_FIELD, 1, 18, 3, 1, false) | ||
578 | MUX_CFG(DM365, VOUT_FIELD_G81, 1, 18, 3, 0, false) | ||
579 | MUX_CFG(DM365, VOUT_HVSYNC, 1, 16, 1, 0, false) | ||
580 | MUX_CFG(DM365, VOUT_COUTL_EN, 1, 0, 0xff, 0x55, false) | ||
581 | MUX_CFG(DM365, VOUT_COUTH_EN, 1, 8, 0xff, 0x55, false) | ||
582 | MUX_CFG(DM365, VIN_CAM_WEN, 0, 14, 3, 0, false) | ||
583 | MUX_CFG(DM365, VIN_CAM_VD, 0, 13, 1, 0, false) | ||
584 | MUX_CFG(DM365, VIN_CAM_HD, 0, 12, 1, 0, false) | ||
585 | MUX_CFG(DM365, VIN_YIN_EN, 0, 0, 0xfff, 0, false) | ||
586 | |||
536 | INT_CFG(DM365, INT_EDMA_CC, 2, 1, 1, false) | 587 | INT_CFG(DM365, INT_EDMA_CC, 2, 1, 1, false) |
537 | INT_CFG(DM365, INT_EDMA_TC0_ERR, 3, 1, 1, false) | 588 | INT_CFG(DM365, INT_EDMA_TC0_ERR, 3, 1, 1, false) |
538 | INT_CFG(DM365, INT_EDMA_TC1_ERR, 4, 1, 1, false) | 589 | INT_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, |