portmux.h 16 KB

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