portmux.h 16 KB

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