diff options
author | Tony Lindgren <tony@atomide.com> | 2010-07-05 09:31:40 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-07-05 09:31:40 -0400 |
commit | c9d8230e316abb6a480f6bda85edf859896e9ab6 (patch) | |
tree | 0af70508306cfb3d4fc9711034203810488cf41d /arch/arm/plat-omap/include/plat/mux.h | |
parent | f99bf16d70d8a33e5274e429f2b1d71457d06a06 (diff) |
omap: mux: Remove old mux code
All mach-omap2 omaps should now use the new mux code.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/mux.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/mux.h | 220 |
1 files changed, 0 insertions, 220 deletions
diff --git a/arch/arm/plat-omap/include/plat/mux.h b/arch/arm/plat-omap/include/plat/mux.h index c7472a28ce24..e1da7b17d25b 100644 --- a/arch/arm/plat-omap/include/plat/mux.h +++ b/arch/arm/plat-omap/include/plat/mux.h | |||
@@ -114,28 +114,11 @@ | |||
114 | PU_PD_REG(NA, 0) \ | 114 | PU_PD_REG(NA, 0) \ |
115 | }, | 115 | }, |
116 | 116 | ||
117 | #define MUX_CFG_24XX(desc, reg_offset, mode, \ | ||
118 | pull_en, pull_mode, dbg) \ | ||
119 | { \ | ||
120 | .name = desc, \ | ||
121 | .debug = dbg, \ | ||
122 | .mux_reg = reg_offset, \ | ||
123 | .mask = mode, \ | ||
124 | .pull_val = pull_en, \ | ||
125 | .pu_pd_val = pull_mode, \ | ||
126 | }, | ||
127 | |||
128 | /* 24xx/34xx mux bit defines */ | ||
129 | #define OMAP2_PULL_ENA (1 << 3) | ||
130 | #define OMAP2_PULL_UP (1 << 4) | ||
131 | #define OMAP2_ALTELECTRICALSEL (1 << 5) | ||
132 | |||
133 | struct pin_config { | 117 | struct pin_config { |
134 | char *name; | 118 | char *name; |
135 | const unsigned int mux_reg; | 119 | const unsigned int mux_reg; |
136 | unsigned char debug; | 120 | unsigned char debug; |
137 | 121 | ||
138 | #if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2) | ||
139 | const unsigned char mask_offset; | 122 | const unsigned char mask_offset; |
140 | const unsigned char mask; | 123 | const unsigned char mask; |
141 | 124 | ||
@@ -147,7 +130,6 @@ struct pin_config { | |||
147 | const char *pu_pd_name; | 130 | const char *pu_pd_name; |
148 | const unsigned int pu_pd_reg; | 131 | const unsigned int pu_pd_reg; |
149 | const unsigned char pu_pd_val; | 132 | const unsigned char pu_pd_val; |
150 | #endif | ||
151 | 133 | ||
152 | #if defined(CONFIG_OMAP_MUX_DEBUG) || defined(CONFIG_OMAP_MUX_WARNINGS) | 134 | #if defined(CONFIG_OMAP_MUX_DEBUG) || defined(CONFIG_OMAP_MUX_WARNINGS) |
153 | const char *mux_reg_name; | 135 | const char *mux_reg_name; |
@@ -446,208 +428,6 @@ enum omap1xxx_index { | |||
446 | 428 | ||
447 | }; | 429 | }; |
448 | 430 | ||
449 | enum omap24xx_index { | ||
450 | /* 24xx I2C */ | ||
451 | M19_24XX_I2C1_SCL, | ||
452 | L15_24XX_I2C1_SDA, | ||
453 | J15_24XX_I2C2_SCL, | ||
454 | H19_24XX_I2C2_SDA, | ||
455 | |||
456 | /* 24xx Menelaus interrupt */ | ||
457 | W19_24XX_SYS_NIRQ, | ||
458 | |||
459 | /* 24xx clock */ | ||
460 | W14_24XX_SYS_CLKOUT, | ||
461 | |||
462 | /* 24xx GPMC chipselects, wait pin monitoring */ | ||
463 | E2_GPMC_NCS2, | ||
464 | L2_GPMC_NCS7, | ||
465 | L3_GPMC_WAIT0, | ||
466 | N7_GPMC_WAIT1, | ||
467 | M1_GPMC_WAIT2, | ||
468 | P1_GPMC_WAIT3, | ||
469 | |||
470 | /* 242X McBSP */ | ||
471 | Y15_24XX_MCBSP2_CLKX, | ||
472 | R14_24XX_MCBSP2_FSX, | ||
473 | W15_24XX_MCBSP2_DR, | ||
474 | V15_24XX_MCBSP2_DX, | ||
475 | |||
476 | /* 24xx GPIO */ | ||
477 | M21_242X_GPIO11, | ||
478 | P21_242X_GPIO12, | ||
479 | AA10_242X_GPIO13, | ||
480 | AA6_242X_GPIO14, | ||
481 | AA4_242X_GPIO15, | ||
482 | Y11_242X_GPIO16, | ||
483 | AA12_242X_GPIO17, | ||
484 | AA8_242X_GPIO58, | ||
485 | Y20_24XX_GPIO60, | ||
486 | W4__24XX_GPIO74, | ||
487 | N15_24XX_GPIO85, | ||
488 | M15_24XX_GPIO92, | ||
489 | P20_24XX_GPIO93, | ||
490 | P18_24XX_GPIO95, | ||
491 | M18_24XX_GPIO96, | ||
492 | L14_24XX_GPIO97, | ||
493 | J15_24XX_GPIO99, | ||
494 | V14_24XX_GPIO117, | ||
495 | P14_24XX_GPIO125, | ||
496 | |||
497 | /* 242x DBG GPIO */ | ||
498 | V4_242X_GPIO49, | ||
499 | W2_242X_GPIO50, | ||
500 | U4_242X_GPIO51, | ||
501 | V3_242X_GPIO52, | ||
502 | V2_242X_GPIO53, | ||
503 | V6_242X_GPIO53, | ||
504 | T4_242X_GPIO54, | ||
505 | Y4_242X_GPIO54, | ||
506 | T3_242X_GPIO55, | ||
507 | U2_242X_GPIO56, | ||
508 | |||
509 | /* 24xx external DMA requests */ | ||
510 | AA10_242X_DMAREQ0, | ||
511 | AA6_242X_DMAREQ1, | ||
512 | E4_242X_DMAREQ2, | ||
513 | G4_242X_DMAREQ3, | ||
514 | D3_242X_DMAREQ4, | ||
515 | E3_242X_DMAREQ5, | ||
516 | |||
517 | /* UART3 */ | ||
518 | K15_24XX_UART3_TX, | ||
519 | K14_24XX_UART3_RX, | ||
520 | |||
521 | /* MMC/SDIO */ | ||
522 | G19_24XX_MMC_CLKO, | ||
523 | H18_24XX_MMC_CMD, | ||
524 | F20_24XX_MMC_DAT0, | ||
525 | H14_24XX_MMC_DAT1, | ||
526 | E19_24XX_MMC_DAT2, | ||
527 | D19_24XX_MMC_DAT3, | ||
528 | F19_24XX_MMC_DAT_DIR0, | ||
529 | E20_24XX_MMC_DAT_DIR1, | ||
530 | F18_24XX_MMC_DAT_DIR2, | ||
531 | E18_24XX_MMC_DAT_DIR3, | ||
532 | G18_24XX_MMC_CMD_DIR, | ||
533 | H15_24XX_MMC_CLKI, | ||
534 | |||
535 | /* Full speed USB */ | ||
536 | J20_24XX_USB0_PUEN, | ||
537 | J19_24XX_USB0_VP, | ||
538 | K20_24XX_USB0_VM, | ||
539 | J18_24XX_USB0_RCV, | ||
540 | K19_24XX_USB0_TXEN, | ||
541 | J14_24XX_USB0_SE0, | ||
542 | K18_24XX_USB0_DAT, | ||
543 | |||
544 | N14_24XX_USB1_SE0, | ||
545 | W12_24XX_USB1_SE0, | ||
546 | P15_24XX_USB1_DAT, | ||
547 | R13_24XX_USB1_DAT, | ||
548 | W20_24XX_USB1_TXEN, | ||
549 | P13_24XX_USB1_TXEN, | ||
550 | V19_24XX_USB1_RCV, | ||
551 | V12_24XX_USB1_RCV, | ||
552 | |||
553 | AA10_24XX_USB2_SE0, | ||
554 | Y11_24XX_USB2_DAT, | ||
555 | AA12_24XX_USB2_TXEN, | ||
556 | AA6_24XX_USB2_RCV, | ||
557 | AA4_24XX_USB2_TLLSE0, | ||
558 | |||
559 | /* Keypad GPIO*/ | ||
560 | T19_24XX_KBR0, | ||
561 | R19_24XX_KBR1, | ||
562 | V18_24XX_KBR2, | ||
563 | M21_24XX_KBR3, | ||
564 | E5__24XX_KBR4, | ||
565 | M18_24XX_KBR5, | ||
566 | R20_24XX_KBC0, | ||
567 | M14_24XX_KBC1, | ||
568 | H19_24XX_KBC2, | ||
569 | V17_24XX_KBC3, | ||
570 | P21_24XX_KBC4, | ||
571 | L14_24XX_KBC5, | ||
572 | N19_24XX_KBC6, | ||
573 | |||
574 | /* 24xx Menelaus Keypad GPIO */ | ||
575 | B3__24XX_KBR5, | ||
576 | AA4_24XX_KBC2, | ||
577 | B13_24XX_KBC6, | ||
578 | |||
579 | /* 2430 USB */ | ||
580 | AD9_2430_USB0_PUEN, | ||
581 | Y11_2430_USB0_VP, | ||
582 | AD7_2430_USB0_VM, | ||
583 | AE7_2430_USB0_RCV, | ||
584 | AD4_2430_USB0_TXEN, | ||
585 | AF9_2430_USB0_SE0, | ||
586 | AE6_2430_USB0_DAT, | ||
587 | AD24_2430_USB1_SE0, | ||
588 | AB24_2430_USB1_RCV, | ||
589 | Y25_2430_USB1_TXEN, | ||
590 | AA26_2430_USB1_DAT, | ||
591 | |||
592 | /* 2430 HS-USB */ | ||
593 | AD9_2430_USB0HS_DATA3, | ||
594 | Y11_2430_USB0HS_DATA4, | ||
595 | AD7_2430_USB0HS_DATA5, | ||
596 | AE7_2430_USB0HS_DATA6, | ||
597 | AD4_2430_USB0HS_DATA2, | ||
598 | AF9_2430_USB0HS_DATA0, | ||
599 | AE6_2430_USB0HS_DATA1, | ||
600 | AE8_2430_USB0HS_CLK, | ||
601 | AD8_2430_USB0HS_DIR, | ||
602 | AE5_2430_USB0HS_STP, | ||
603 | AE9_2430_USB0HS_NXT, | ||
604 | AC7_2430_USB0HS_DATA7, | ||
605 | |||
606 | /* 2430 McBSP */ | ||
607 | AD6_2430_MCBSP_CLKS, | ||
608 | |||
609 | AB2_2430_MCBSP1_CLKR, | ||
610 | AD5_2430_MCBSP1_FSR, | ||
611 | AA1_2430_MCBSP1_DX, | ||
612 | AF3_2430_MCBSP1_DR, | ||
613 | AB3_2430_MCBSP1_FSX, | ||
614 | Y9_2430_MCBSP1_CLKX, | ||
615 | |||
616 | AC10_2430_MCBSP2_FSX, | ||
617 | AD16_2430_MCBSP2_CLX, | ||
618 | AE13_2430_MCBSP2_DX, | ||
619 | AD13_2430_MCBSP2_DR, | ||
620 | AC10_2430_MCBSP2_FSX_OFF, | ||
621 | AD16_2430_MCBSP2_CLX_OFF, | ||
622 | AE13_2430_MCBSP2_DX_OFF, | ||
623 | AD13_2430_MCBSP2_DR_OFF, | ||
624 | |||
625 | AC9_2430_MCBSP3_CLKX, | ||
626 | AE4_2430_MCBSP3_FSX, | ||
627 | AE2_2430_MCBSP3_DR, | ||
628 | AF4_2430_MCBSP3_DX, | ||
629 | |||
630 | N3_2430_MCBSP4_CLKX, | ||
631 | AD23_2430_MCBSP4_DR, | ||
632 | AB25_2430_MCBSP4_DX, | ||
633 | AC25_2430_MCBSP4_FSX, | ||
634 | |||
635 | AE16_2430_MCBSP5_CLKX, | ||
636 | AF12_2430_MCBSP5_FSX, | ||
637 | K7_2430_MCBSP5_DX, | ||
638 | M1_2430_MCBSP5_DR, | ||
639 | |||
640 | /* 2430 McSPI*/ | ||
641 | Y18_2430_MCSPI1_CLK, | ||
642 | AD15_2430_MCSPI1_SIMO, | ||
643 | AE17_2430_MCSPI1_SOMI, | ||
644 | U1_2430_MCSPI1_CS0, | ||
645 | |||
646 | /* Touchscreen GPIO */ | ||
647 | AF19_2430_GPIO_85, | ||
648 | |||
649 | }; | ||
650 | |||
651 | struct omap_mux_cfg { | 431 | struct omap_mux_cfg { |
652 | struct pin_config *pins; | 432 | struct pin_config *pins; |
653 | unsigned long size; | 433 | unsigned long size; |