portmux.h 16 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192
  1. /*
  2. * Common header file for Blackfin family of processors
  3. *
  4. * Copyright 2007-2008 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef _PORTMUX_H_
  9. #define _PORTMUX_H_
  10. #define P_IDENT(x) ((x) & 0x1FF)
  11. #define P_FUNCT(x) (((x) & 0x3) << 9)
  12. #define P_FUNCT2MUX(x) (((x) >> 9) & 0x3)
  13. #define P_DEFINED 0x8000
  14. #define P_UNDEF 0x4000
  15. #define P_MAYSHARE 0x2000
  16. #define P_DONTCARE 0x1000
  17. int peripheral_request(unsigned short per, const char *label);
  18. void peripheral_free(unsigned short per);
  19. int peripheral_request_list(const unsigned short per[], const char *label);
  20. void peripheral_free_list(const unsigned short per[]);
  21. #include <asm/gpio.h>
  22. #include <mach/portmux.h>
  23. #ifndef P_SPORT2_TFS
  24. #define P_SPORT2_TFS P_UNDEF
  25. #endif
  26. #ifndef P_SPORT2_DTSEC
  27. #define P_SPORT2_DTSEC P_UNDEF
  28. #endif
  29. #ifndef P_SPORT2_DTPRI
  30. #define P_SPORT2_DTPRI P_UNDEF
  31. #endif
  32. #ifndef P_SPORT2_TSCLK
  33. #define P_SPORT2_TSCLK P_UNDEF
  34. #endif
  35. #ifndef P_SPORT2_RFS
  36. #define P_SPORT2_RFS P_UNDEF
  37. #endif
  38. #ifndef P_SPORT2_DRSEC
  39. #define P_SPORT2_DRSEC P_UNDEF
  40. #endif
  41. #ifndef P_SPORT2_DRPRI
  42. #define P_SPORT2_DRPRI P_UNDEF
  43. #endif
  44. #ifndef P_SPORT2_RSCLK
  45. #define P_SPORT2_RSCLK P_UNDEF
  46. #endif
  47. #ifndef P_SPORT3_TFS
  48. #define P_SPORT3_TFS P_UNDEF
  49. #endif
  50. #ifndef P_SPORT3_DTSEC
  51. #define P_SPORT3_DTSEC P_UNDEF
  52. #endif
  53. #ifndef P_SPORT3_DTPRI
  54. #define P_SPORT3_DTPRI P_UNDEF
  55. #endif
  56. #ifndef P_SPORT3_TSCLK
  57. #define P_SPORT3_TSCLK P_UNDEF
  58. #endif
  59. #ifndef P_SPORT3_RFS
  60. #define P_SPORT3_RFS P_UNDEF
  61. #endif
  62. #ifndef P_SPORT3_DRSEC
  63. #define P_SPORT3_DRSEC P_UNDEF
  64. #endif
  65. #ifndef P_SPORT3_DRPRI
  66. #define P_SPORT3_DRPRI P_UNDEF
  67. #endif
  68. #ifndef P_SPORT3_RSCLK
  69. #define P_SPORT3_RSCLK P_UNDEF
  70. #endif
  71. #ifndef P_TMR4
  72. #define P_TMR4 P_UNDEF
  73. #endif
  74. #ifndef P_TMR5
  75. #define P_TMR5 P_UNDEF
  76. #endif
  77. #ifndef P_TMR6
  78. #define P_TMR6 P_UNDEF
  79. #endif
  80. #ifndef P_TMR7
  81. #define P_TMR7 P_UNDEF
  82. #endif
  83. #ifndef P_TWI1_SCL
  84. #define P_TWI1_SCL P_UNDEF
  85. #endif
  86. #ifndef P_TWI1_SDA
  87. #define P_TWI1_SDA P_UNDEF
  88. #endif
  89. #ifndef P_UART3_RTS
  90. #define P_UART3_RTS P_UNDEF
  91. #endif
  92. #ifndef P_UART3_CTS
  93. #define P_UART3_CTS P_UNDEF
  94. #endif
  95. #ifndef P_UART2_TX
  96. #define P_UART2_TX P_UNDEF
  97. #endif
  98. #ifndef P_UART2_RX
  99. #define P_UART2_RX P_UNDEF
  100. #endif
  101. #ifndef P_UART3_TX
  102. #define P_UART3_TX P_UNDEF
  103. #endif
  104. #ifndef P_UART3_RX
  105. #define P_UART3_RX P_UNDEF
  106. #endif
  107. #ifndef P_SPI2_SS
  108. #define P_SPI2_SS P_UNDEF
  109. #endif
  110. #ifndef P_SPI2_SSEL1
  111. #define P_SPI2_SSEL1 P_UNDEF
  112. #endif
  113. #ifndef P_SPI2_SSEL2
  114. #define P_SPI2_SSEL2 P_UNDEF
  115. #endif
  116. #ifndef P_SPI2_SSEL3
  117. #define P_SPI2_SSEL3 P_UNDEF
  118. #endif
  119. #ifndef P_SPI2_SSEL4
  120. #define P_SPI2_SSEL4 P_UNDEF
  121. #endif
  122. #ifndef P_SPI2_SSEL5
  123. #define P_SPI2_SSEL5 P_UNDEF
  124. #endif
  125. #ifndef P_SPI2_SSEL6
  126. #define P_SPI2_SSEL6 P_UNDEF
  127. #endif
  128. #ifndef P_SPI2_SSEL7
  129. #define P_SPI2_SSEL7 P_UNDEF
  130. #endif
  131. #ifndef P_SPI2_SCK
  132. #define P_SPI2_SCK P_UNDEF
  133. #endif
  134. #ifndef P_SPI2_MOSI
  135. #define P_SPI2_MOSI P_UNDEF
  136. #endif
  137. #ifndef P_SPI2_MISO
  138. #define P_SPI2_MISO P_UNDEF
  139. #endif
  140. #ifndef P_TMR0
  141. #define P_TMR0 P_UNDEF
  142. #endif
  143. #ifndef P_TMR1
  144. #define P_TMR1 P_UNDEF
  145. #endif
  146. #ifndef P_TMR2
  147. #define P_TMR2 P_UNDEF
  148. #endif
  149. #ifndef P_TMR3
  150. #define P_TMR3 P_UNDEF
  151. #endif
  152. #ifndef P_SPORT0_TFS
  153. #define P_SPORT0_TFS P_UNDEF
  154. #endif
  155. #ifndef P_SPORT0_DTSEC
  156. #define P_SPORT0_DTSEC P_UNDEF
  157. #endif
  158. #ifndef P_SPORT0_DTPRI
  159. #define P_SPORT0_DTPRI P_UNDEF
  160. #endif
  161. #ifndef P_SPORT0_TSCLK
  162. #define P_SPORT0_TSCLK P_UNDEF
  163. #endif
  164. #ifndef P_SPORT0_RFS
  165. #define P_SPORT0_RFS P_UNDEF
  166. #endif
  167. #ifndef P_SPORT0_DRSEC
  168. #define P_SPORT0_DRSEC P_UNDEF
  169. #endif
  170. #ifndef P_SPORT0_DRPRI
  171. #define P_SPORT0_DRPRI P_UNDEF
  172. #endif
  173. #ifndef P_SPORT0_RSCLK
  174. #define P_SPORT0_RSCLK P_UNDEF
  175. #endif
  176. #ifndef P_SD_D0
  177. #define P_SD_D0 P_UNDEF
  178. #endif
  179. #ifndef P_SD_D1
  180. #define P_SD_D1 P_UNDEF
  181. #endif
  182. #ifndef P_SD_D2
  183. #define P_SD_D2 P_UNDEF
  184. #endif
  185. #ifndef P_SD_D3
  186. #define P_SD_D3 P_UNDEF
  187. #endif
  188. #ifndef P_SD_CLK
  189. #define P_SD_CLK P_UNDEF
  190. #endif
  191. #ifndef P_SD_CMD
  192. #define P_SD_CMD P_UNDEF
  193. #endif
  194. #ifndef P_MMCLK
  195. #define P_MMCLK P_UNDEF
  196. #endif
  197. #ifndef P_MBCLK
  198. #define P_MBCLK P_UNDEF
  199. #endif
  200. #ifndef P_PPI1_D0
  201. #define P_PPI1_D0 P_UNDEF
  202. #endif
  203. #ifndef P_PPI1_D1
  204. #define P_PPI1_D1 P_UNDEF
  205. #endif
  206. #ifndef P_PPI1_D2
  207. #define P_PPI1_D2 P_UNDEF
  208. #endif
  209. #ifndef P_PPI1_D3
  210. #define P_PPI1_D3 P_UNDEF
  211. #endif
  212. #ifndef P_PPI1_D4
  213. #define P_PPI1_D4 P_UNDEF
  214. #endif
  215. #ifndef P_PPI1_D5
  216. #define P_PPI1_D5 P_UNDEF
  217. #endif
  218. #ifndef P_PPI1_D6
  219. #define P_PPI1_D6 P_UNDEF
  220. #endif
  221. #ifndef P_PPI1_D7
  222. #define P_PPI1_D7 P_UNDEF
  223. #endif
  224. #ifndef P_PPI1_D8
  225. #define P_PPI1_D8 P_UNDEF
  226. #endif
  227. #ifndef P_PPI1_D9
  228. #define P_PPI1_D9 P_UNDEF
  229. #endif
  230. #ifndef P_PPI1_D10
  231. #define P_PPI1_D10 P_UNDEF
  232. #endif
  233. #ifndef P_PPI1_D11
  234. #define P_PPI1_D11 P_UNDEF
  235. #endif
  236. #ifndef P_PPI1_D12
  237. #define P_PPI1_D12 P_UNDEF
  238. #endif
  239. #ifndef P_PPI1_D13
  240. #define P_PPI1_D13 P_UNDEF
  241. #endif
  242. #ifndef P_PPI1_D14
  243. #define P_PPI1_D14 P_UNDEF
  244. #endif
  245. #ifndef P_PPI1_D15
  246. #define P_PPI1_D15 P_UNDEF
  247. #endif
  248. #ifndef P_HOST_D8
  249. #define P_HOST_D8 P_UNDEF
  250. #endif
  251. #ifndef P_HOST_D9
  252. #define P_HOST_D9 P_UNDEF
  253. #endif
  254. #ifndef P_HOST_D10
  255. #define P_HOST_D10 P_UNDEF
  256. #endif
  257. #ifndef P_HOST_D11
  258. #define P_HOST_D11 P_UNDEF
  259. #endif
  260. #ifndef P_HOST_D12
  261. #define P_HOST_D12 P_UNDEF
  262. #endif
  263. #ifndef P_HOST_D13
  264. #define P_HOST_D13 P_UNDEF
  265. #endif
  266. #ifndef P_HOST_D14
  267. #define P_HOST_D14 P_UNDEF
  268. #endif
  269. #ifndef P_HOST_D15
  270. #define P_HOST_D15 P_UNDEF
  271. #endif
  272. #ifndef P_HOST_D0
  273. #define P_HOST_D0 P_UNDEF
  274. #endif
  275. #ifndef P_HOST_D1
  276. #define P_HOST_D1 P_UNDEF
  277. #endif
  278. #ifndef P_HOST_D2
  279. #define P_HOST_D2 P_UNDEF
  280. #endif
  281. #ifndef P_HOST_D3
  282. #define P_HOST_D3 P_UNDEF
  283. #endif
  284. #ifndef P_HOST_D4
  285. #define P_HOST_D4 P_UNDEF
  286. #endif
  287. #ifndef P_HOST_D5
  288. #define P_HOST_D5 P_UNDEF
  289. #endif
  290. #ifndef P_HOST_D6
  291. #define P_HOST_D6 P_UNDEF
  292. #endif
  293. #ifndef P_HOST_D7
  294. #define P_HOST_D7 P_UNDEF
  295. #endif
  296. #ifndef P_SPORT1_TFS
  297. #define P_SPORT1_TFS P_UNDEF
  298. #endif
  299. #ifndef P_SPORT1_DTSEC
  300. #define P_SPORT1_DTSEC P_UNDEF
  301. #endif
  302. #ifndef P_SPORT1_DTPRI
  303. #define P_SPORT1_DTPRI P_UNDEF
  304. #endif
  305. #ifndef P_SPORT1_TSCLK
  306. #define P_SPORT1_TSCLK P_UNDEF
  307. #endif
  308. #ifndef P_SPORT1_RFS
  309. #define P_SPORT1_RFS P_UNDEF
  310. #endif
  311. #ifndef P_SPORT1_DRSEC
  312. #define P_SPORT1_DRSEC P_UNDEF
  313. #endif
  314. #ifndef P_SPORT1_DRPRI
  315. #define P_SPORT1_DRPRI P_UNDEF
  316. #endif
  317. #ifndef P_SPORT1_RSCLK
  318. #define P_SPORT1_RSCLK P_UNDEF
  319. #endif
  320. #ifndef P_PPI2_D0
  321. #define P_PPI2_D0 P_UNDEF
  322. #endif
  323. #ifndef P_PPI2_D1
  324. #define P_PPI2_D1 P_UNDEF
  325. #endif
  326. #ifndef P_PPI2_D2
  327. #define P_PPI2_D2 P_UNDEF
  328. #endif
  329. #ifndef P_PPI2_D3
  330. #define P_PPI2_D3 P_UNDEF
  331. #endif
  332. #ifndef P_PPI2_D4
  333. #define P_PPI2_D4 P_UNDEF
  334. #endif
  335. #ifndef P_PPI2_D5
  336. #define P_PPI2_D5 P_UNDEF
  337. #endif
  338. #ifndef P_PPI2_D6
  339. #define P_PPI2_D6 P_UNDEF
  340. #endif
  341. #ifndef P_PPI2_D7
  342. #define P_PPI2_D7 P_UNDEF
  343. #endif
  344. #ifndef P_PPI0_D18
  345. #define P_PPI0_D18 P_UNDEF
  346. #endif
  347. #ifndef P_PPI0_D19
  348. #define P_PPI0_D19 P_UNDEF
  349. #endif
  350. #ifndef P_PPI0_D20
  351. #define P_PPI0_D20 P_UNDEF
  352. #endif
  353. #ifndef P_PPI0_D21
  354. #define P_PPI0_D21 P_UNDEF
  355. #endif
  356. #ifndef P_PPI0_D22
  357. #define P_PPI0_D22 P_UNDEF
  358. #endif
  359. #ifndef P_PPI0_D23
  360. #define P_PPI0_D23 P_UNDEF
  361. #endif
  362. #ifndef P_KEY_ROW0
  363. #define P_KEY_ROW0 P_UNDEF
  364. #endif
  365. #ifndef P_KEY_ROW1
  366. #define P_KEY_ROW1 P_UNDEF
  367. #endif
  368. #ifndef P_KEY_ROW2
  369. #define P_KEY_ROW2 P_UNDEF
  370. #endif
  371. #ifndef P_KEY_ROW3
  372. #define P_KEY_ROW3 P_UNDEF
  373. #endif
  374. #ifndef P_KEY_COL0
  375. #define P_KEY_COL0 P_UNDEF
  376. #endif
  377. #ifndef P_KEY_COL1
  378. #define P_KEY_COL1 P_UNDEF
  379. #endif
  380. #ifndef P_KEY_COL2
  381. #define P_KEY_COL2 P_UNDEF
  382. #endif
  383. #ifndef P_KEY_COL3
  384. #define P_KEY_COL3 P_UNDEF
  385. #endif
  386. #ifndef P_SPI0_SCK
  387. #define P_SPI0_SCK P_UNDEF
  388. #endif
  389. #ifndef P_SPI0_MISO
  390. #define P_SPI0_MISO P_UNDEF
  391. #endif
  392. #ifndef P_SPI0_MOSI
  393. #define P_SPI0_MOSI P_UNDEF
  394. #endif
  395. #ifndef P_SPI0_SS
  396. #define P_SPI0_SS P_UNDEF
  397. #endif
  398. #ifndef P_SPI0_SSEL1
  399. #define P_SPI0_SSEL1 P_UNDEF
  400. #endif
  401. #ifndef P_SPI0_SSEL2
  402. #define P_SPI0_SSEL2 P_UNDEF
  403. #endif
  404. #ifndef P_SPI0_SSEL3
  405. #define P_SPI0_SSEL3 P_UNDEF
  406. #endif
  407. #ifndef P_SPI0_SSEL4
  408. #define P_SPI0_SSEL4 P_UNDEF
  409. #endif
  410. #ifndef P_SPI0_SSEL5
  411. #define P_SPI0_SSEL5 P_UNDEF
  412. #endif
  413. #ifndef P_SPI0_SSEL6
  414. #define P_SPI0_SSEL6 P_UNDEF
  415. #endif
  416. #ifndef P_SPI0_SSEL7
  417. #define P_SPI0_SSEL7 P_UNDEF
  418. #endif
  419. #ifndef P_UART0_TX
  420. #define P_UART0_TX P_UNDEF
  421. #endif
  422. #ifndef P_UART0_RX
  423. #define P_UART0_RX P_UNDEF
  424. #endif
  425. #ifndef P_UART1_RTS
  426. #define P_UART1_RTS P_UNDEF
  427. #endif
  428. #ifndef P_UART1_CTS
  429. #define P_UART1_CTS P_UNDEF
  430. #endif
  431. #ifndef P_PPI1_CLK
  432. #define P_PPI1_CLK P_UNDEF
  433. #endif
  434. #ifndef P_PPI1_FS1
  435. #define P_PPI1_FS1 P_UNDEF
  436. #endif
  437. #ifndef P_PPI1_FS2
  438. #define P_PPI1_FS2 P_UNDEF
  439. #endif
  440. #ifndef P_TWI0_SCL
  441. #define P_TWI0_SCL P_UNDEF
  442. #endif
  443. #ifndef P_TWI0_SDA
  444. #define P_TWI0_SDA P_UNDEF
  445. #endif
  446. #ifndef P_KEY_COL7
  447. #define P_KEY_COL7 P_UNDEF
  448. #endif
  449. #ifndef P_KEY_ROW6
  450. #define P_KEY_ROW6 P_UNDEF
  451. #endif
  452. #ifndef P_KEY_COL6
  453. #define P_KEY_COL6 P_UNDEF
  454. #endif
  455. #ifndef P_KEY_ROW5
  456. #define P_KEY_ROW5 P_UNDEF
  457. #endif
  458. #ifndef P_KEY_COL5
  459. #define P_KEY_COL5 P_UNDEF
  460. #endif
  461. #ifndef P_KEY_ROW4
  462. #define P_KEY_ROW4 P_UNDEF
  463. #endif
  464. #ifndef P_KEY_COL4
  465. #define P_KEY_COL4 P_UNDEF
  466. #endif
  467. #ifndef P_KEY_ROW7
  468. #define P_KEY_ROW7 P_UNDEF
  469. #endif
  470. #ifndef P_PPI0_D0
  471. #define P_PPI0_D0 P_UNDEF
  472. #endif
  473. #ifndef P_PPI0_D1
  474. #define P_PPI0_D1 P_UNDEF
  475. #endif
  476. #ifndef P_PPI0_D2
  477. #define P_PPI0_D2 P_UNDEF
  478. #endif
  479. #ifndef P_PPI0_D3
  480. #define P_PPI0_D3 P_UNDEF
  481. #endif
  482. #ifndef P_PPI0_D4
  483. #define P_PPI0_D4 P_UNDEF
  484. #endif
  485. #ifndef P_PPI0_D5
  486. #define P_PPI0_D5 P_UNDEF
  487. #endif
  488. #ifndef P_PPI0_D6
  489. #define P_PPI0_D6 P_UNDEF
  490. #endif
  491. #ifndef P_PPI0_D7
  492. #define P_PPI0_D7 P_UNDEF
  493. #endif
  494. #ifndef P_PPI0_D8
  495. #define P_PPI0_D8 P_UNDEF
  496. #endif
  497. #ifndef P_PPI0_D9
  498. #define P_PPI0_D9 P_UNDEF
  499. #endif
  500. #ifndef P_PPI0_D10
  501. #define P_PPI0_D10 P_UNDEF
  502. #endif
  503. #ifndef P_PPI0_D11
  504. #define P_PPI0_D11 P_UNDEF
  505. #endif
  506. #ifndef P_PPI0_D12
  507. #define P_PPI0_D12 P_UNDEF
  508. #endif
  509. #ifndef P_PPI0_D13
  510. #define P_PPI0_D13 P_UNDEF
  511. #endif
  512. #ifndef P_PPI0_D14
  513. #define P_PPI0_D14 P_UNDEF
  514. #endif
  515. #ifndef P_PPI0_D15
  516. #define P_PPI0_D15 P_UNDEF
  517. #endif
  518. #ifndef P_ATAPI_D0A
  519. #define P_ATAPI_D0A P_UNDEF
  520. #endif
  521. #ifndef P_ATAPI_D1A
  522. #define P_ATAPI_D1A P_UNDEF
  523. #endif
  524. #ifndef P_ATAPI_D2A
  525. #define P_ATAPI_D2A P_UNDEF
  526. #endif
  527. #ifndef P_ATAPI_D3A
  528. #define P_ATAPI_D3A P_UNDEF
  529. #endif
  530. #ifndef P_ATAPI_D4A
  531. #define P_ATAPI_D4A P_UNDEF
  532. #endif
  533. #ifndef P_ATAPI_D5A
  534. #define P_ATAPI_D5A P_UNDEF
  535. #endif
  536. #ifndef P_ATAPI_D6A
  537. #define P_ATAPI_D6A P_UNDEF
  538. #endif
  539. #ifndef P_ATAPI_D7A
  540. #define P_ATAPI_D7A P_UNDEF
  541. #endif
  542. #ifndef P_ATAPI_D8A
  543. #define P_ATAPI_D8A P_UNDEF
  544. #endif
  545. #ifndef P_ATAPI_D9A
  546. #define P_ATAPI_D9A P_UNDEF
  547. #endif
  548. #ifndef P_ATAPI_D10A
  549. #define P_ATAPI_D10A P_UNDEF
  550. #endif
  551. #ifndef P_ATAPI_D11A
  552. #define P_ATAPI_D11A P_UNDEF
  553. #endif
  554. #ifndef P_ATAPI_D12A
  555. #define P_ATAPI_D12A P_UNDEF
  556. #endif
  557. #ifndef P_ATAPI_D13A
  558. #define P_ATAPI_D13A P_UNDEF
  559. #endif
  560. #ifndef P_ATAPI_D14A
  561. #define P_ATAPI_D14A P_UNDEF
  562. #endif
  563. #ifndef P_ATAPI_D15A
  564. #define P_ATAPI_D15A P_UNDEF
  565. #endif
  566. #ifndef P_PPI0_CLK
  567. #define P_PPI0_CLK P_UNDEF
  568. #endif
  569. #ifndef P_PPI0_FS1
  570. #define P_PPI0_FS1 P_UNDEF
  571. #endif
  572. #ifndef P_PPI0_FS2
  573. #define P_PPI0_FS2 P_UNDEF
  574. #endif
  575. #ifndef P_PPI0_D16
  576. #define P_PPI0_D16 P_UNDEF
  577. #endif
  578. #ifndef P_PPI0_D17
  579. #define P_PPI0_D17 P_UNDEF
  580. #endif
  581. #ifndef P_SPI1_SSEL1
  582. #define P_SPI1_SSEL1 P_UNDEF
  583. #endif
  584. #ifndef P_SPI1_SSEL2
  585. #define P_SPI1_SSEL2 P_UNDEF
  586. #endif
  587. #ifndef P_SPI1_SSEL3
  588. #define P_SPI1_SSEL3 P_UNDEF
  589. #endif
  590. #ifndef P_SPI1_SSEL4
  591. #define P_SPI1_SSEL4 P_UNDEF
  592. #endif
  593. #ifndef P_SPI1_SSEL5
  594. #define P_SPI1_SSEL5 P_UNDEF
  595. #endif
  596. #ifndef P_SPI1_SSEL6
  597. #define P_SPI1_SSEL6 P_UNDEF
  598. #endif
  599. #ifndef P_SPI1_SSEL7
  600. #define P_SPI1_SSEL7 P_UNDEF
  601. #endif
  602. #ifndef P_SPI1_SCK
  603. #define P_SPI1_SCK P_UNDEF
  604. #endif
  605. #ifndef P_SPI1_MISO
  606. #define P_SPI1_MISO P_UNDEF
  607. #endif
  608. #ifndef P_SPI1_MOSI
  609. #define P_SPI1_MOSI P_UNDEF
  610. #endif
  611. #ifndef P_SPI1_SS
  612. #define P_SPI1_SS P_UNDEF
  613. #endif
  614. #ifndef P_CAN0_TX
  615. #define P_CAN0_TX P_UNDEF
  616. #endif
  617. #ifndef P_CAN0_RX
  618. #define P_CAN0_RX P_UNDEF
  619. #endif
  620. #ifndef P_CAN1_TX
  621. #define P_CAN1_TX P_UNDEF
  622. #endif
  623. #ifndef P_CAN1_RX
  624. #define P_CAN1_RX P_UNDEF
  625. #endif
  626. #ifndef P_ATAPI_A0A
  627. #define P_ATAPI_A0A P_UNDEF
  628. #endif
  629. #ifndef P_ATAPI_A1A
  630. #define P_ATAPI_A1A P_UNDEF
  631. #endif
  632. #ifndef P_ATAPI_A2A
  633. #define P_ATAPI_A2A P_UNDEF
  634. #endif
  635. #ifndef P_HOST_CE
  636. #define P_HOST_CE P_UNDEF
  637. #endif
  638. #ifndef P_HOST_RD
  639. #define P_HOST_RD P_UNDEF
  640. #endif
  641. #ifndef P_HOST_WR
  642. #define P_HOST_WR P_UNDEF
  643. #endif
  644. #ifndef P_MTXONB
  645. #define P_MTXONB P_UNDEF
  646. #endif
  647. #ifndef P_PPI2_FS2
  648. #define P_PPI2_FS2 P_UNDEF
  649. #endif
  650. #ifndef P_PPI2_FS1
  651. #define P_PPI2_FS1 P_UNDEF
  652. #endif
  653. #ifndef P_PPI2_CLK
  654. #define P_PPI2_CLK P_UNDEF
  655. #endif
  656. #ifndef P_CNT_CZM
  657. #define P_CNT_CZM P_UNDEF
  658. #endif
  659. #ifndef P_UART1_TX
  660. #define P_UART1_TX P_UNDEF
  661. #endif
  662. #ifndef P_UART1_RX
  663. #define P_UART1_RX P_UNDEF
  664. #endif
  665. #ifndef P_ATAPI_RESET
  666. #define P_ATAPI_RESET P_UNDEF
  667. #endif
  668. #ifndef P_HOST_ADDR
  669. #define P_HOST_ADDR P_UNDEF
  670. #endif
  671. #ifndef P_HOST_ACK
  672. #define P_HOST_ACK P_UNDEF
  673. #endif
  674. #ifndef P_MTX
  675. #define P_MTX P_UNDEF
  676. #endif
  677. #ifndef P_MRX
  678. #define P_MRX P_UNDEF
  679. #endif
  680. #ifndef P_MRXONB
  681. #define P_MRXONB P_UNDEF
  682. #endif
  683. #ifndef P_A4
  684. #define P_A4 P_UNDEF
  685. #endif
  686. #ifndef P_A5
  687. #define P_A5 P_UNDEF
  688. #endif
  689. #ifndef P_A6
  690. #define P_A6 P_UNDEF
  691. #endif
  692. #ifndef P_A7
  693. #define P_A7 P_UNDEF
  694. #endif
  695. #ifndef P_A8
  696. #define P_A8 P_UNDEF
  697. #endif
  698. #ifndef P_A9
  699. #define P_A9 P_UNDEF
  700. #endif
  701. #ifndef P_PPI1_FS3
  702. #define P_PPI1_FS3 P_UNDEF
  703. #endif
  704. #ifndef P_PPI2_FS3
  705. #define P_PPI2_FS3 P_UNDEF
  706. #endif
  707. #ifndef P_TMR8
  708. #define P_TMR8 P_UNDEF
  709. #endif
  710. #ifndef P_TMR9
  711. #define P_TMR9 P_UNDEF
  712. #endif
  713. #ifndef P_TMR10
  714. #define P_TMR10 P_UNDEF
  715. #endif
  716. #ifndef P_TMR11
  717. #define P_TMR11 P_UNDEF
  718. #endif
  719. #ifndef P_DMAR0
  720. #define P_DMAR0 P_UNDEF
  721. #endif
  722. #ifndef P_DMAR1
  723. #define P_DMAR1 P_UNDEF
  724. #endif
  725. #ifndef P_PPI0_FS3
  726. #define P_PPI0_FS3 P_UNDEF
  727. #endif
  728. #ifndef P_CNT_CDG
  729. #define P_CNT_CDG P_UNDEF
  730. #endif
  731. #ifndef P_CNT_CUD
  732. #define P_CNT_CUD P_UNDEF
  733. #endif
  734. #ifndef P_A10
  735. #define P_A10 P_UNDEF
  736. #endif
  737. #ifndef P_A11
  738. #define P_A11 P_UNDEF
  739. #endif
  740. #ifndef P_A12
  741. #define P_A12 P_UNDEF
  742. #endif
  743. #ifndef P_A13
  744. #define P_A13 P_UNDEF
  745. #endif
  746. #ifndef P_A14
  747. #define P_A14 P_UNDEF
  748. #endif
  749. #ifndef P_A15
  750. #define P_A15 P_UNDEF
  751. #endif
  752. #ifndef P_A16
  753. #define P_A16 P_UNDEF
  754. #endif
  755. #ifndef P_A17
  756. #define P_A17 P_UNDEF
  757. #endif
  758. #ifndef P_A18
  759. #define P_A18 P_UNDEF
  760. #endif
  761. #ifndef P_A19
  762. #define P_A19 P_UNDEF
  763. #endif
  764. #ifndef P_A20
  765. #define P_A20 P_UNDEF
  766. #endif
  767. #ifndef P_A21
  768. #define P_A21 P_UNDEF
  769. #endif
  770. #ifndef P_A22
  771. #define P_A22 P_UNDEF
  772. #endif
  773. #ifndef P_A23
  774. #define P_A23 P_UNDEF
  775. #endif
  776. #ifndef P_A24
  777. #define P_A24 P_UNDEF
  778. #endif
  779. #ifndef P_A25
  780. #define P_A25 P_UNDEF
  781. #endif
  782. #ifndef P_NOR_CLK
  783. #define P_NOR_CLK P_UNDEF
  784. #endif
  785. #ifndef P_TMRCLK
  786. #define P_TMRCLK P_UNDEF
  787. #endif
  788. #ifndef P_AMC_ARDY_NOR_WAIT
  789. #define P_AMC_ARDY_NOR_WAIT P_UNDEF
  790. #endif
  791. #ifndef P_NAND_CE
  792. #define P_NAND_CE P_UNDEF
  793. #endif
  794. #ifndef P_NAND_RB
  795. #define P_NAND_RB P_UNDEF
  796. #endif
  797. #ifndef P_ATAPI_DIOR
  798. #define P_ATAPI_DIOR P_UNDEF
  799. #endif
  800. #ifndef P_ATAPI_DIOW
  801. #define P_ATAPI_DIOW P_UNDEF
  802. #endif
  803. #ifndef P_ATAPI_CS0
  804. #define P_ATAPI_CS0 P_UNDEF
  805. #endif
  806. #ifndef P_ATAPI_CS1
  807. #define P_ATAPI_CS1 P_UNDEF
  808. #endif
  809. #ifndef P_ATAPI_DMACK
  810. #define P_ATAPI_DMACK P_UNDEF
  811. #endif
  812. #ifndef P_ATAPI_DMARQ
  813. #define P_ATAPI_DMARQ P_UNDEF
  814. #endif
  815. #ifndef P_ATAPI_INTRQ
  816. #define P_ATAPI_INTRQ P_UNDEF
  817. #endif
  818. #ifndef P_ATAPI_IORDY
  819. #define P_ATAPI_IORDY P_UNDEF
  820. #endif
  821. #ifndef P_AMC_BR
  822. #define P_AMC_BR P_UNDEF
  823. #endif
  824. #ifndef P_AMC_BG
  825. #define P_AMC_BG P_UNDEF
  826. #endif
  827. #ifndef P_AMC_BGH
  828. #define P_AMC_BGH P_UNDEF
  829. #endif
  830. /* EMAC */
  831. #ifndef P_MII0_ETxD0
  832. #define P_MII0_ETxD0 P_UNDEF
  833. #endif
  834. #ifndef P_MII0_ETxD1
  835. #define P_MII0_ETxD1 P_UNDEF
  836. #endif
  837. #ifndef P_MII0_ETxD2
  838. #define P_MII0_ETxD2 P_UNDEF
  839. #endif
  840. #ifndef P_MII0_ETxD3
  841. #define P_MII0_ETxD3 P_UNDEF
  842. #endif
  843. #ifndef P_MII0_ETxEN
  844. #define P_MII0_ETxEN P_UNDEF
  845. #endif
  846. #ifndef P_MII0_TxCLK
  847. #define P_MII0_TxCLK P_UNDEF
  848. #endif
  849. #ifndef P_MII0_PHYINT
  850. #define P_MII0_PHYINT P_UNDEF
  851. #endif
  852. #ifndef P_MII0_COL
  853. #define P_MII0_COL P_UNDEF
  854. #endif
  855. #ifndef P_MII0_ERxD0
  856. #define P_MII0_ERxD0 P_UNDEF
  857. #endif
  858. #ifndef P_MII0_ERxD1
  859. #define P_MII0_ERxD1 P_UNDEF
  860. #endif
  861. #ifndef P_MII0_ERxD2
  862. #define P_MII0_ERxD2 P_UNDEF
  863. #endif
  864. #ifndef P_MII0_ERxD3
  865. #define P_MII0_ERxD3 P_UNDEF
  866. #endif
  867. #ifndef P_MII0_ERxDV
  868. #define P_MII0_ERxDV P_UNDEF
  869. #endif
  870. #ifndef P_MII0_ERxCLK
  871. #define P_MII0_ERxCLK P_UNDEF
  872. #endif
  873. #ifndef P_MII0_ERxER
  874. #define P_MII0_ERxER P_UNDEF
  875. #endif
  876. #ifndef P_MII0_CRS
  877. #define P_MII0_CRS P_UNDEF
  878. #endif
  879. #ifndef P_RMII0_REF_CLK
  880. #define P_RMII0_REF_CLK P_UNDEF
  881. #endif
  882. #ifndef P_RMII0_MDINT
  883. #define P_RMII0_MDINT P_UNDEF
  884. #endif
  885. #ifndef P_RMII0_CRS_DV
  886. #define P_RMII0_CRS_DV P_UNDEF
  887. #endif
  888. #ifndef P_MDC
  889. #define P_MDC P_UNDEF
  890. #endif
  891. #ifndef P_MDIO
  892. #define P_MDIO P_UNDEF
  893. #endif
  894. #endif /* _PORTMUX_H_ */