portmux.h 15 KB

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