portmux.h 16 KB

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