portmux.h 16 KB

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