2 * Common header file for blackfin family of processors.
9 #define P_IDENT(x) ((x) & 0x1FF)
10 #define P_FUNCT(x) (((x) & 0x3) << 9)
11 #define P_FUNCT2MUX(x) (((x) >> 9) & 0x3)
12 #define P_DEFINED 0x8000
13 #define P_UNDEF 0x4000
14 #define P_MAYSHARE 0x2000
15 #define P_DONTCARE 0x1000
18 #include <asm/mach/portmux.h>
21 #define P_SPORT2_TFS P_UNDEF
24 #ifndef P_SPORT2_DTSEC
25 #define P_SPORT2_DTSEC P_UNDEF
28 #ifndef P_SPORT2_DTPRI
29 #define P_SPORT2_DTPRI P_UNDEF
32 #ifndef P_SPORT2_TSCLK
33 #define P_SPORT2_TSCLK P_UNDEF
37 #define P_SPORT2_RFS P_UNDEF
40 #ifndef P_SPORT2_DRSEC
41 #define P_SPORT2_DRSEC P_UNDEF
44 #ifndef P_SPORT2_DRPRI
45 #define P_SPORT2_DRPRI P_UNDEF
48 #ifndef P_SPORT2_RSCLK
49 #define P_SPORT2_RSCLK P_UNDEF
53 #define P_SPORT3_TFS P_UNDEF
56 #ifndef P_SPORT3_DTSEC
57 #define P_SPORT3_DTSEC P_UNDEF
60 #ifndef P_SPORT3_DTPRI
61 #define P_SPORT3_DTPRI P_UNDEF
64 #ifndef P_SPORT3_TSCLK
65 #define P_SPORT3_TSCLK P_UNDEF
69 #define P_SPORT3_RFS P_UNDEF
72 #ifndef P_SPORT3_DRSEC
73 #define P_SPORT3_DRSEC P_UNDEF
76 #ifndef P_SPORT3_DRPRI
77 #define P_SPORT3_DRPRI P_UNDEF
80 #ifndef P_SPORT3_RSCLK
81 #define P_SPORT3_RSCLK P_UNDEF
85 #define P_TMR4 P_UNDEF
89 #define P_TMR5 P_UNDEF
93 #define P_TMR6 P_UNDEF
97 #define P_TMR7 P_UNDEF
101 #define P_TWI1_SCL P_UNDEF
105 #define P_TWI1_SDA P_UNDEF
109 #define P_UART3_RTS P_UNDEF
113 #define P_UART3_CTS P_UNDEF
117 #define P_UART2_TX P_UNDEF
121 #define P_UART2_RX P_UNDEF
125 #define P_UART3_TX P_UNDEF
129 #define P_UART3_RX P_UNDEF
133 #define P_SPI2_SS P_UNDEF
137 #define P_SPI2_SSEL1 P_UNDEF
141 #define P_SPI2_SSEL2 P_UNDEF
145 #define P_SPI2_SSEL3 P_UNDEF
149 #define P_SPI2_SCK P_UNDEF
153 #define P_SPI2_MOSI P_UNDEF
157 #define P_SPI2_MISO P_UNDEF
161 #define P_TMR0 P_UNDEF
165 #define P_TMR1 P_UNDEF
169 #define P_TMR2 P_UNDEF
173 #define P_TMR3 P_UNDEF
177 #define P_SPORT0_TFS P_UNDEF
180 #ifndef P_SPORT0_DTSEC
181 #define P_SPORT0_DTSEC P_UNDEF
184 #ifndef P_SPORT0_DTPRI
185 #define P_SPORT0_DTPRI P_UNDEF
188 #ifndef P_SPORT0_TSCLK
189 #define P_SPORT0_TSCLK P_UNDEF
193 #define P_SPORT0_RFS P_UNDEF
196 #ifndef P_SPORT0_DRSEC
197 #define P_SPORT0_DRSEC P_UNDEF
200 #ifndef P_SPORT0_DRPRI
201 #define P_SPORT0_DRPRI P_UNDEF
204 #ifndef P_SPORT0_RSCLK
205 #define P_SPORT0_RSCLK P_UNDEF
209 #define P_SD_D0 P_UNDEF
213 #define P_SD_D1 P_UNDEF
217 #define P_SD_D2 P_UNDEF
221 #define P_SD_D3 P_UNDEF
225 #define P_SD_CLK P_UNDEF
229 #define P_SD_CMD P_UNDEF
233 #define P_MMCLK P_UNDEF
237 #define P_MBCLK P_UNDEF
241 #define P_PPI1_D0 P_UNDEF
245 #define P_PPI1_D1 P_UNDEF
249 #define P_PPI1_D2 P_UNDEF
253 #define P_PPI1_D3 P_UNDEF
257 #define P_PPI1_D4 P_UNDEF
261 #define P_PPI1_D5 P_UNDEF
265 #define P_PPI1_D6 P_UNDEF
269 #define P_PPI1_D7 P_UNDEF
273 #define P_PPI1_D8 P_UNDEF
277 #define P_PPI1_D9 P_UNDEF
281 #define P_PPI1_D10 P_UNDEF
285 #define P_PPI1_D11 P_UNDEF
289 #define P_PPI1_D12 P_UNDEF
293 #define P_PPI1_D13 P_UNDEF
297 #define P_PPI1_D14 P_UNDEF
301 #define P_PPI1_D15 P_UNDEF
305 #define P_HOST_D8 P_UNDEF
309 #define P_HOST_D9 P_UNDEF
313 #define P_HOST_D10 P_UNDEF
317 #define P_HOST_D11 P_UNDEF
321 #define P_HOST_D12 P_UNDEF
325 #define P_HOST_D13 P_UNDEF
329 #define P_HOST_D14 P_UNDEF
333 #define P_HOST_D15 P_UNDEF
337 #define P_HOST_D0 P_UNDEF
341 #define P_HOST_D1 P_UNDEF
345 #define P_HOST_D2 P_UNDEF
349 #define P_HOST_D3 P_UNDEF
353 #define P_HOST_D4 P_UNDEF
357 #define P_HOST_D5 P_UNDEF
361 #define P_HOST_D6 P_UNDEF
365 #define P_HOST_D7 P_UNDEF
369 #define P_SPORT1_TFS P_UNDEF
372 #ifndef P_SPORT1_DTSEC
373 #define P_SPORT1_DTSEC P_UNDEF
376 #ifndef P_SPORT1_DTPRI
377 #define P_SPORT1_DTPRI P_UNDEF
380 #ifndef P_SPORT1_TSCLK
381 #define P_SPORT1_TSCLK P_UNDEF
385 #define P_SPORT1_RFS P_UNDEF
388 #ifndef P_SPORT1_DRSEC
389 #define P_SPORT1_DRSEC P_UNDEF
392 #ifndef P_SPORT1_DRPRI
393 #define P_SPORT1_DRPRI P_UNDEF
396 #ifndef P_SPORT1_RSCLK
397 #define P_SPORT1_RSCLK P_UNDEF
401 #define P_PPI2_D0 P_UNDEF
405 #define P_PPI2_D1 P_UNDEF
409 #define P_PPI2_D2 P_UNDEF
413 #define P_PPI2_D3 P_UNDEF
417 #define P_PPI2_D4 P_UNDEF
421 #define P_PPI2_D5 P_UNDEF
425 #define P_PPI2_D6 P_UNDEF
429 #define P_PPI2_D7 P_UNDEF
433 #define P_PPI0_D18 P_UNDEF
437 #define P_PPI0_D19 P_UNDEF
441 #define P_PPI0_D20 P_UNDEF
445 #define P_PPI0_D21 P_UNDEF
449 #define P_PPI0_D22 P_UNDEF
453 #define P_PPI0_D23 P_UNDEF
457 #define P_KEY_ROW0 P_UNDEF
461 #define P_KEY_ROW1 P_UNDEF
465 #define P_KEY_ROW2 P_UNDEF
469 #define P_KEY_ROW3 P_UNDEF
473 #define P_KEY_COL0 P_UNDEF
477 #define P_KEY_COL1 P_UNDEF
481 #define P_KEY_COL2 P_UNDEF
485 #define P_KEY_COL3 P_UNDEF
489 #define P_SPI0_SCK P_UNDEF
493 #define P_SPI0_MISO P_UNDEF
497 #define P_SPI0_MOSI P_UNDEF
501 #define P_SPI0_SS P_UNDEF
505 #define P_SPI0_SSEL1 P_UNDEF
509 #define P_SPI0_SSEL2 P_UNDEF
513 #define P_SPI0_SSEL3 P_UNDEF
517 #define P_UART0_TX P_UNDEF
521 #define P_UART0_RX P_UNDEF
525 #define P_UART1_RTS P_UNDEF
529 #define P_UART1_CTS P_UNDEF
533 #define P_PPI1_CLK P_UNDEF
537 #define P_PPI1_FS1 P_UNDEF
541 #define P_PPI1_FS2 P_UNDEF
545 #define P_TWI0_SCL P_UNDEF
549 #define P_TWI0_SDA P_UNDEF
553 #define P_KEY_COL7 P_UNDEF
557 #define P_KEY_ROW6 P_UNDEF
561 #define P_KEY_COL6 P_UNDEF
565 #define P_KEY_ROW5 P_UNDEF
569 #define P_KEY_COL5 P_UNDEF
573 #define P_KEY_ROW4 P_UNDEF
577 #define P_KEY_COL4 P_UNDEF
581 #define P_KEY_ROW7 P_UNDEF
585 #define P_PPI0_D0 P_UNDEF
589 #define P_PPI0_D1 P_UNDEF
593 #define P_PPI0_D2 P_UNDEF
597 #define P_PPI0_D3 P_UNDEF
601 #define P_PPI0_D4 P_UNDEF
605 #define P_PPI0_D5 P_UNDEF
609 #define P_PPI0_D6 P_UNDEF
613 #define P_PPI0_D7 P_UNDEF
617 #define P_PPI0_D8 P_UNDEF
621 #define P_PPI0_D9 P_UNDEF
625 #define P_PPI0_D10 P_UNDEF
629 #define P_PPI0_D11 P_UNDEF
633 #define P_PPI0_D12 P_UNDEF
637 #define P_PPI0_D13 P_UNDEF
641 #define P_PPI0_D14 P_UNDEF
645 #define P_PPI0_D15 P_UNDEF
649 #define P_ATAPI_D0A P_UNDEF
653 #define P_ATAPI_D1A P_UNDEF
657 #define P_ATAPI_D2A P_UNDEF
661 #define P_ATAPI_D3A P_UNDEF
665 #define P_ATAPI_D4A P_UNDEF
669 #define P_ATAPI_D5A P_UNDEF
673 #define P_ATAPI_D6A P_UNDEF
677 #define P_ATAPI_D7A P_UNDEF
681 #define P_ATAPI_D8A P_UNDEF
685 #define P_ATAPI_D9A P_UNDEF
689 #define P_ATAPI_D10A P_UNDEF
693 #define P_ATAPI_D11A P_UNDEF
697 #define P_ATAPI_D12A P_UNDEF
701 #define P_ATAPI_D13A P_UNDEF
705 #define P_ATAPI_D14A P_UNDEF
709 #define P_ATAPI_D15A P_UNDEF
713 #define P_PPI0_CLK P_UNDEF
717 #define P_PPI0_FS1 P_UNDEF
721 #define P_PPI0_FS2 P_UNDEF
725 #define P_PPI0_D16 P_UNDEF
729 #define P_PPI0_D17 P_UNDEF
733 #define P_SPI1_SSEL1 P_UNDEF
737 #define P_SPI1_SSEL2 P_UNDEF
741 #define P_SPI1_SSEL3 P_UNDEF
745 #define P_SPI1_SCK P_UNDEF
749 #define P_SPI1_MISO P_UNDEF
753 #define P_SPI1_MOSI P_UNDEF
757 #define P_SPI1_SS P_UNDEF
761 #define P_CAN0_TX P_UNDEF
765 #define P_CAN0_RX P_UNDEF
769 #define P_CAN1_TX P_UNDEF
773 #define P_CAN1_RX P_UNDEF
777 #define P_ATAPI_A0A P_UNDEF
781 #define P_ATAPI_A1A P_UNDEF
785 #define P_ATAPI_A2A P_UNDEF
789 #define P_HOST_CE P_UNDEF
793 #define P_HOST_RD P_UNDEF
797 #define P_HOST_WR P_UNDEF
801 #define P_MTXONB P_UNDEF
805 #define P_PPI2_FS2 P_UNDEF
809 #define P_PPI2_FS1 P_UNDEF
813 #define P_PPI2_CLK P_UNDEF
817 #define P_CNT_CZM P_UNDEF
821 #define P_UART1_TX P_UNDEF
825 #define P_UART1_RX P_UNDEF
828 #ifndef P_ATAPI_RESET
829 #define P_ATAPI_RESET P_UNDEF
833 #define P_HOST_ADDR P_UNDEF
837 #define P_HOST_ACK P_UNDEF
841 #define P_MTX P_UNDEF
845 #define P_MRX P_UNDEF
849 #define P_MRXONB P_UNDEF
877 #define P_PPI1_FS3 P_UNDEF
881 #define P_PPI2_FS3 P_UNDEF
885 #define P_TMR8 P_UNDEF
889 #define P_TMR9 P_UNDEF
893 #define P_TMR10 P_UNDEF
896 #define P_TMR11 P_UNDEF
900 #define P_DMAR0 P_UNDEF
904 #define P_DMAR1 P_UNDEF
908 #define P_PPI0_FS3 P_UNDEF
912 #define P_CNT_CDG P_UNDEF
916 #define P_CNT_CUD P_UNDEF
920 #define P_A10 P_UNDEF
924 #define P_A11 P_UNDEF
928 #define P_A12 P_UNDEF
932 #define P_A13 P_UNDEF
936 #define P_A14 P_UNDEF
940 #define P_A15 P_UNDEF
944 #define P_A16 P_UNDEF
948 #define P_A17 P_UNDEF
952 #define P_A18 P_UNDEF
956 #define P_A19 P_UNDEF
960 #define P_A20 P_UNDEF
964 #define P_A21 P_UNDEF
968 #define P_A22 P_UNDEF
972 #define P_A23 P_UNDEF
976 #define P_A24 P_UNDEF
980 #define P_A25 P_UNDEF
984 #define P_NOR_CLK P_UNDEF
988 #define P_TMRCLK P_UNDEF
991 #ifndef P_AMC_ARDY_NOR_WAIT
992 #define P_AMC_ARDY_NOR_WAIT P_UNDEF
996 #define P_NAND_CE P_UNDEF
1000 #define P_NAND_RB P_UNDEF
1003 #ifndef P_ATAPI_DIOR
1004 #define P_ATAPI_DIOR P_UNDEF
1007 #ifndef P_ATAPI_DIOW
1008 #define P_ATAPI_DIOW P_UNDEF
1012 #define P_ATAPI_CS0 P_UNDEF
1016 #define P_ATAPI_CS1 P_UNDEF
1019 #ifndef P_ATAPI_DMACK
1020 #define P_ATAPI_DMACK P_UNDEF
1023 #ifndef P_ATAPI_DMARQ
1024 #define P_ATAPI_DMARQ P_UNDEF
1027 #ifndef P_ATAPI_INTRQ
1028 #define P_ATAPI_INTRQ P_UNDEF
1031 #ifndef P_ATAPI_IORDY
1032 #define P_ATAPI_IORDY P_UNDEF
1036 #define P_AMC_BR P_UNDEF
1040 #define P_AMC_BG P_UNDEF
1044 #define P_AMC_BGH P_UNDEF
1049 #ifndef P_MII0_ETxD0
1050 #define P_MII0_ETxD0 P_UNDEF
1053 #ifndef P_MII0_ETxD1
1054 #define P_MII0_ETxD1 P_UNDEF
1057 #ifndef P_MII0_ETxD2
1058 #define P_MII0_ETxD2 P_UNDEF
1061 #ifndef P_MII0_ETxD3
1062 #define P_MII0_ETxD3 P_UNDEF
1065 #ifndef P_MII0_ETxEN
1066 #define P_MII0_ETxEN P_UNDEF
1069 #ifndef P_MII0_TxCLK
1070 #define P_MII0_TxCLK P_UNDEF
1073 #ifndef P_MII0_PHYINT
1074 #define P_MII0_PHYINT P_UNDEF
1078 #define P_MII0_COL P_UNDEF
1081 #ifndef P_MII0_ERxD0
1082 #define P_MII0_ERxD0 P_UNDEF
1085 #ifndef P_MII0_ERxD1
1086 #define P_MII0_ERxD1 P_UNDEF
1089 #ifndef P_MII0_ERxD2
1090 #define P_MII0_ERxD2 P_UNDEF
1093 #ifndef P_MII0_ERxD3
1094 #define P_MII0_ERxD3 P_UNDEF
1097 #ifndef P_MII0_ERxDV
1098 #define P_MII0_ERxDV P_UNDEF
1101 #ifndef P_MII0_ERxCLK
1102 #define P_MII0_ERxCLK P_UNDEF
1105 #ifndef P_MII0_ERxER
1106 #define P_MII0_ERxER P_UNDEF
1110 #define P_MII0_CRS P_UNDEF
1113 #ifndef P_RMII0_REF_CLK
1114 #define P_RMII0_REF_CLK P_UNDEF
1117 #ifndef P_RMII0_MDINT
1118 #define P_RMII0_MDINT P_UNDEF
1121 #ifndef P_RMII0_CRS_DV
1122 #define P_RMII0_CRS_DV P_UNDEF
1126 #define P_MDC P_UNDEF
1130 #define P_MDIO P_UNDEF
1133 #endif /* _PORTMUX_H_ */