pinctrl-pxa910.c 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008
  1. /*
  2. * linux/drivers/pinctrl/pinmux-pxa910.c
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * publishhed by the Free Software Foundation.
  7. *
  8. * Copyright (C) 2011, Marvell Technology Group Ltd.
  9. *
  10. * Author: Haojian Zhuang <haojian.zhuang@marvell.com>
  11. *
  12. */
  13. #include <linux/device.h>
  14. #include <linux/module.h>
  15. #include <linux/io.h>
  16. #include <linux/platform_device.h>
  17. #include "pinctrl-pxa3xx.h"
  18. #define PXA910_DS_MASK 0x1800
  19. #define PXA910_DS_SHIFT 11
  20. #define PXA910_SLEEP_MASK 0x38
  21. #define PXA910_SLEEP_SELECT (1 << 9)
  22. #define PXA910_SLEEP_DATA (1 << 8)
  23. #define PXA910_SLEEP_DIR (1 << 7)
  24. #define MFPR_910(a, r, f0, f1, f2, f3, f4, f5, f6, f7) \
  25. { \
  26. .name = #a, \
  27. .pin = a, \
  28. .mfpr = r, \
  29. .func = { \
  30. PXA910_MUX_##f0, \
  31. PXA910_MUX_##f1, \
  32. PXA910_MUX_##f2, \
  33. PXA910_MUX_##f3, \
  34. PXA910_MUX_##f4, \
  35. PXA910_MUX_##f5, \
  36. PXA910_MUX_##f6, \
  37. PXA910_MUX_##f7, \
  38. }, \
  39. }
  40. #define GRP_910(a, m, p) \
  41. { .name = a, .mux = PXA910_MUX_##m, .pins = p, .npins = ARRAY_SIZE(p), }
  42. /* 170 pins */
  43. enum pxa910_pin_list {
  44. /* 0~127: GPIO0~GPIO127 */
  45. ND_IO15 = 128,
  46. ND_IO14,
  47. ND_IO13, /* 130 */
  48. ND_IO12,
  49. ND_IO11,
  50. ND_IO10,
  51. ND_IO9,
  52. ND_IO8,
  53. ND_IO7,
  54. ND_IO6,
  55. ND_IO5,
  56. ND_IO4,
  57. ND_IO3, /* 140 */
  58. ND_IO2,
  59. ND_IO1,
  60. ND_IO0,
  61. ND_NCS0,
  62. ND_NCS1,
  63. SM_NCS0,
  64. SM_NCS1,
  65. ND_NWE,
  66. ND_NRE,
  67. ND_CLE, /* 150 */
  68. ND_ALE,
  69. SM_SCLK,
  70. ND_RDY0,
  71. SM_ADV,
  72. ND_RDY1,
  73. SM_ADVMUX,
  74. SM_RDY,
  75. MMC1_DAT7,
  76. MMC1_DAT6,
  77. MMC1_DAT5, /* 160 */
  78. MMC1_DAT4,
  79. MMC1_DAT3,
  80. MMC1_DAT2,
  81. MMC1_DAT1,
  82. MMC1_DAT0,
  83. MMC1_CMD,
  84. MMC1_CLK,
  85. MMC1_CD,
  86. VCXO_OUT,
  87. };
  88. enum pxa910_mux {
  89. /* PXA3xx_MUX_GPIO = 0 (predefined in pinctrl-pxa3xx.h) */
  90. PXA910_MUX_GPIO = 0,
  91. PXA910_MUX_NAND,
  92. PXA910_MUX_USIM2,
  93. PXA910_MUX_EXT_DMA,
  94. PXA910_MUX_EXT_INT,
  95. PXA910_MUX_MMC1,
  96. PXA910_MUX_MMC2,
  97. PXA910_MUX_MMC3,
  98. PXA910_MUX_SM_INT,
  99. PXA910_MUX_PRI_JTAG,
  100. PXA910_MUX_SEC1_JTAG,
  101. PXA910_MUX_SEC2_JTAG,
  102. PXA910_MUX_RESET, /* SLAVE RESET OUT */
  103. PXA910_MUX_CLK_REQ,
  104. PXA910_MUX_VCXO_REQ,
  105. PXA910_MUX_VCXO_OUT,
  106. PXA910_MUX_VCXO_REQ2,
  107. PXA910_MUX_VCXO_OUT2,
  108. PXA910_MUX_SPI,
  109. PXA910_MUX_SPI2,
  110. PXA910_MUX_GSSP,
  111. PXA910_MUX_SSP0,
  112. PXA910_MUX_SSP1,
  113. PXA910_MUX_SSP2,
  114. PXA910_MUX_DSSP2,
  115. PXA910_MUX_DSSP3,
  116. PXA910_MUX_UART0,
  117. PXA910_MUX_UART1,
  118. PXA910_MUX_UART2,
  119. PXA910_MUX_TWSI,
  120. PXA910_MUX_CCIC,
  121. PXA910_MUX_PWM0,
  122. PXA910_MUX_PWM1,
  123. PXA910_MUX_PWM2,
  124. PXA910_MUX_PWM3,
  125. PXA910_MUX_HSL,
  126. PXA910_MUX_ONE_WIRE,
  127. PXA910_MUX_LCD,
  128. PXA910_MUX_DAC_ST23,
  129. PXA910_MUX_ULPI,
  130. PXA910_MUX_TB,
  131. PXA910_MUX_KP_MK,
  132. PXA910_MUX_KP_DK,
  133. PXA910_MUX_TCU_GPOA,
  134. PXA910_MUX_TCU_GPOB,
  135. PXA910_MUX_ROT,
  136. PXA910_MUX_TDS,
  137. PXA910_MUX_32K_CLK, /* 32KHz CLK OUT */
  138. PXA910_MUX_MN_CLK, /* MN CLK OUT */
  139. PXA910_MUX_SMC,
  140. PXA910_MUX_SM_ADDR18,
  141. PXA910_MUX_SM_ADDR19,
  142. PXA910_MUX_SM_ADDR20,
  143. PXA910_MUX_NONE = 0xffff,
  144. };
  145. static struct pinctrl_pin_desc pxa910_pads[] = {
  146. PINCTRL_PIN(GPIO0, "GPIO0"),
  147. PINCTRL_PIN(GPIO1, "GPIO1"),
  148. PINCTRL_PIN(GPIO2, "GPIO2"),
  149. PINCTRL_PIN(GPIO3, "GPIO3"),
  150. PINCTRL_PIN(GPIO4, "GPIO4"),
  151. PINCTRL_PIN(GPIO5, "GPIO5"),
  152. PINCTRL_PIN(GPIO6, "GPIO6"),
  153. PINCTRL_PIN(GPIO7, "GPIO7"),
  154. PINCTRL_PIN(GPIO8, "GPIO8"),
  155. PINCTRL_PIN(GPIO9, "GPIO9"),
  156. PINCTRL_PIN(GPIO10, "GPIO10"),
  157. PINCTRL_PIN(GPIO11, "GPIO11"),
  158. PINCTRL_PIN(GPIO12, "GPIO12"),
  159. PINCTRL_PIN(GPIO13, "GPIO13"),
  160. PINCTRL_PIN(GPIO14, "GPIO14"),
  161. PINCTRL_PIN(GPIO15, "GPIO15"),
  162. PINCTRL_PIN(GPIO16, "GPIO16"),
  163. PINCTRL_PIN(GPIO17, "GPIO17"),
  164. PINCTRL_PIN(GPIO18, "GPIO18"),
  165. PINCTRL_PIN(GPIO19, "GPIO19"),
  166. PINCTRL_PIN(GPIO20, "GPIO20"),
  167. PINCTRL_PIN(GPIO21, "GPIO21"),
  168. PINCTRL_PIN(GPIO22, "GPIO22"),
  169. PINCTRL_PIN(GPIO23, "GPIO23"),
  170. PINCTRL_PIN(GPIO24, "GPIO24"),
  171. PINCTRL_PIN(GPIO25, "GPIO25"),
  172. PINCTRL_PIN(GPIO26, "GPIO26"),
  173. PINCTRL_PIN(GPIO27, "GPIO27"),
  174. PINCTRL_PIN(GPIO28, "GPIO28"),
  175. PINCTRL_PIN(GPIO29, "GPIO29"),
  176. PINCTRL_PIN(GPIO30, "GPIO30"),
  177. PINCTRL_PIN(GPIO31, "GPIO31"),
  178. PINCTRL_PIN(GPIO32, "GPIO32"),
  179. PINCTRL_PIN(GPIO33, "GPIO33"),
  180. PINCTRL_PIN(GPIO34, "GPIO34"),
  181. PINCTRL_PIN(GPIO35, "GPIO35"),
  182. PINCTRL_PIN(GPIO36, "GPIO36"),
  183. PINCTRL_PIN(GPIO37, "GPIO37"),
  184. PINCTRL_PIN(GPIO38, "GPIO38"),
  185. PINCTRL_PIN(GPIO39, "GPIO39"),
  186. PINCTRL_PIN(GPIO40, "GPIO40"),
  187. PINCTRL_PIN(GPIO41, "GPIO41"),
  188. PINCTRL_PIN(GPIO42, "GPIO42"),
  189. PINCTRL_PIN(GPIO43, "GPIO43"),
  190. PINCTRL_PIN(GPIO44, "GPIO44"),
  191. PINCTRL_PIN(GPIO45, "GPIO45"),
  192. PINCTRL_PIN(GPIO46, "GPIO46"),
  193. PINCTRL_PIN(GPIO47, "GPIO47"),
  194. PINCTRL_PIN(GPIO48, "GPIO48"),
  195. PINCTRL_PIN(GPIO49, "GPIO49"),
  196. PINCTRL_PIN(GPIO50, "GPIO50"),
  197. PINCTRL_PIN(GPIO51, "GPIO51"),
  198. PINCTRL_PIN(GPIO52, "GPIO52"),
  199. PINCTRL_PIN(GPIO53, "GPIO53"),
  200. PINCTRL_PIN(GPIO54, "GPIO54"),
  201. PINCTRL_PIN(GPIO55, "GPIO55"),
  202. PINCTRL_PIN(GPIO56, "GPIO56"),
  203. PINCTRL_PIN(GPIO57, "GPIO57"),
  204. PINCTRL_PIN(GPIO58, "GPIO58"),
  205. PINCTRL_PIN(GPIO59, "GPIO59"),
  206. PINCTRL_PIN(GPIO60, "GPIO60"),
  207. PINCTRL_PIN(GPIO61, "GPIO61"),
  208. PINCTRL_PIN(GPIO62, "GPIO62"),
  209. PINCTRL_PIN(GPIO63, "GPIO63"),
  210. PINCTRL_PIN(GPIO64, "GPIO64"),
  211. PINCTRL_PIN(GPIO65, "GPIO65"),
  212. PINCTRL_PIN(GPIO66, "GPIO66"),
  213. PINCTRL_PIN(GPIO67, "GPIO67"),
  214. PINCTRL_PIN(GPIO68, "GPIO68"),
  215. PINCTRL_PIN(GPIO69, "GPIO69"),
  216. PINCTRL_PIN(GPIO70, "GPIO70"),
  217. PINCTRL_PIN(GPIO71, "GPIO71"),
  218. PINCTRL_PIN(GPIO72, "GPIO72"),
  219. PINCTRL_PIN(GPIO73, "GPIO73"),
  220. PINCTRL_PIN(GPIO74, "GPIO74"),
  221. PINCTRL_PIN(GPIO75, "GPIO75"),
  222. PINCTRL_PIN(GPIO76, "GPIO76"),
  223. PINCTRL_PIN(GPIO77, "GPIO77"),
  224. PINCTRL_PIN(GPIO78, "GPIO78"),
  225. PINCTRL_PIN(GPIO79, "GPIO79"),
  226. PINCTRL_PIN(GPIO80, "GPIO80"),
  227. PINCTRL_PIN(GPIO81, "GPIO81"),
  228. PINCTRL_PIN(GPIO82, "GPIO82"),
  229. PINCTRL_PIN(GPIO83, "GPIO83"),
  230. PINCTRL_PIN(GPIO84, "GPIO84"),
  231. PINCTRL_PIN(GPIO85, "GPIO85"),
  232. PINCTRL_PIN(GPIO86, "GPIO86"),
  233. PINCTRL_PIN(GPIO87, "GPIO87"),
  234. PINCTRL_PIN(GPIO88, "GPIO88"),
  235. PINCTRL_PIN(GPIO89, "GPIO89"),
  236. PINCTRL_PIN(GPIO90, "GPIO90"),
  237. PINCTRL_PIN(GPIO91, "GPIO91"),
  238. PINCTRL_PIN(GPIO92, "GPIO92"),
  239. PINCTRL_PIN(GPIO93, "GPIO93"),
  240. PINCTRL_PIN(GPIO94, "GPIO94"),
  241. PINCTRL_PIN(GPIO95, "GPIO95"),
  242. PINCTRL_PIN(GPIO96, "GPIO96"),
  243. PINCTRL_PIN(GPIO97, "GPIO97"),
  244. PINCTRL_PIN(GPIO98, "GPIO98"),
  245. PINCTRL_PIN(GPIO99, "GPIO99"),
  246. PINCTRL_PIN(GPIO100, "GPIO100"),
  247. PINCTRL_PIN(GPIO101, "GPIO101"),
  248. PINCTRL_PIN(GPIO102, "GPIO102"),
  249. PINCTRL_PIN(GPIO103, "GPIO103"),
  250. PINCTRL_PIN(GPIO104, "GPIO104"),
  251. PINCTRL_PIN(GPIO105, "GPIO105"),
  252. PINCTRL_PIN(GPIO106, "GPIO106"),
  253. PINCTRL_PIN(GPIO107, "GPIO107"),
  254. PINCTRL_PIN(GPIO108, "GPIO108"),
  255. PINCTRL_PIN(GPIO109, "GPIO109"),
  256. PINCTRL_PIN(GPIO110, "GPIO110"),
  257. PINCTRL_PIN(GPIO111, "GPIO111"),
  258. PINCTRL_PIN(GPIO112, "GPIO112"),
  259. PINCTRL_PIN(GPIO113, "GPIO113"),
  260. PINCTRL_PIN(GPIO114, "GPIO114"),
  261. PINCTRL_PIN(GPIO115, "GPIO115"),
  262. PINCTRL_PIN(GPIO116, "GPIO116"),
  263. PINCTRL_PIN(GPIO117, "GPIO117"),
  264. PINCTRL_PIN(GPIO118, "GPIO118"),
  265. PINCTRL_PIN(GPIO119, "GPIO119"),
  266. PINCTRL_PIN(GPIO120, "GPIO120"),
  267. PINCTRL_PIN(GPIO121, "GPIO121"),
  268. PINCTRL_PIN(GPIO122, "GPIO122"),
  269. PINCTRL_PIN(GPIO123, "GPIO123"),
  270. PINCTRL_PIN(GPIO124, "GPIO124"),
  271. PINCTRL_PIN(GPIO125, "GPIO125"),
  272. PINCTRL_PIN(GPIO126, "GPIO126"),
  273. PINCTRL_PIN(GPIO127, "GPIO127"),
  274. PINCTRL_PIN(ND_IO15, "ND_IO15"),
  275. PINCTRL_PIN(ND_IO14, "ND_IO14"),
  276. PINCTRL_PIN(ND_IO13, "ND_IO13"),
  277. PINCTRL_PIN(ND_IO12, "ND_IO12"),
  278. PINCTRL_PIN(ND_IO11, "ND_IO11"),
  279. PINCTRL_PIN(ND_IO10, "ND_IO10"),
  280. PINCTRL_PIN(ND_IO9, "ND_IO9"),
  281. PINCTRL_PIN(ND_IO8, "ND_IO8"),
  282. PINCTRL_PIN(ND_IO7, "ND_IO7"),
  283. PINCTRL_PIN(ND_IO6, "ND_IO6"),
  284. PINCTRL_PIN(ND_IO5, "ND_IO5"),
  285. PINCTRL_PIN(ND_IO4, "ND_IO4"),
  286. PINCTRL_PIN(ND_IO3, "ND_IO3"),
  287. PINCTRL_PIN(ND_IO2, "ND_IO2"),
  288. PINCTRL_PIN(ND_IO1, "ND_IO1"),
  289. PINCTRL_PIN(ND_IO0, "ND_IO0"),
  290. PINCTRL_PIN(ND_NCS0, "ND_NCS0_SM_NCS2"),
  291. PINCTRL_PIN(ND_NCS1, "ND_NCS1_SM_NCS3"),
  292. PINCTRL_PIN(SM_NCS0, "SM_NCS0"),
  293. PINCTRL_PIN(SM_NCS1, "SM_NCS1"),
  294. PINCTRL_PIN(ND_NWE, "ND_NWE"),
  295. PINCTRL_PIN(ND_NRE, "ND_NRE"),
  296. PINCTRL_PIN(ND_CLE, "ND_CLE_SM_NOE"),
  297. PINCTRL_PIN(ND_ALE, "ND_ALE_SM_NWE"),
  298. PINCTRL_PIN(SM_SCLK, "SM_SCLK"),
  299. PINCTRL_PIN(ND_RDY0, "ND_RDY0"),
  300. PINCTRL_PIN(SM_ADV, "SM_ADV"),
  301. PINCTRL_PIN(ND_RDY1, "ND_RDY1"),
  302. PINCTRL_PIN(SM_RDY, "SM_RDY"),
  303. PINCTRL_PIN(MMC1_DAT7, "MMC1_DAT7"),
  304. PINCTRL_PIN(MMC1_DAT6, "MMC1_DAT6"),
  305. PINCTRL_PIN(MMC1_DAT5, "MMC1_DAT5"),
  306. PINCTRL_PIN(MMC1_DAT4, "MMC1_DAT4"),
  307. PINCTRL_PIN(MMC1_DAT3, "MMC1_DAT3"),
  308. PINCTRL_PIN(MMC1_DAT2, "MMC1_DAT2"),
  309. PINCTRL_PIN(MMC1_DAT1, "MMC1_DAT1"),
  310. PINCTRL_PIN(MMC1_DAT0, "MMC1_DAT0"),
  311. PINCTRL_PIN(MMC1_CMD, "MMC1 CMD"),
  312. PINCTRL_PIN(MMC1_CLK, "MMC1 CLK"),
  313. PINCTRL_PIN(MMC1_CD, "MMC1 CD"),
  314. PINCTRL_PIN(VCXO_OUT, "VCXO_OUT"),
  315. };
  316. struct pxa3xx_mfp_pin pxa910_mfp[] = {
  317. /* pin offs f0 f1 f2 f3 f4 f5 f6 f7 */
  318. MFPR_910(GPIO0, 0x0DC, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  319. MFPR_910(GPIO1, 0x0E0, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  320. MFPR_910(GPIO2, 0x0E4, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  321. MFPR_910(GPIO3, 0x0E8, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  322. MFPR_910(GPIO4, 0x0EC, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  323. MFPR_910(GPIO5, 0x0F0, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  324. MFPR_910(GPIO6, 0x0F4, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  325. MFPR_910(GPIO7, 0x0F8, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  326. MFPR_910(GPIO8, 0x0FC, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  327. MFPR_910(GPIO9, 0x100, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  328. MFPR_910(GPIO10, 0x104, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  329. MFPR_910(GPIO11, 0x108, GPIO, KP_MK, NONE, NONE, NONE, NONE, NONE, NONE),
  330. MFPR_910(GPIO12, 0x10C, GPIO, KP_MK, NONE, NONE, KP_DK, NONE, NONE, NONE),
  331. MFPR_910(GPIO13, 0x110, GPIO, KP_MK, NONE, NONE, KP_DK, NONE, NONE, NONE),
  332. MFPR_910(GPIO14, 0x114, GPIO, KP_MK, NONE, NONE, KP_DK, TB, NONE, NONE),
  333. MFPR_910(GPIO15, 0x118, GPIO, KP_MK, NONE, NONE, KP_DK, TB, NONE, NONE),
  334. MFPR_910(GPIO16, 0x11C, GPIO, KP_DK, NONE, NONE, NONE, TB, NONE, NONE),
  335. MFPR_910(GPIO17, 0x120, GPIO, KP_DK, NONE, NONE, NONE, TB, NONE, NONE),
  336. MFPR_910(GPIO18, 0x124, GPIO, KP_DK, NONE, NONE, ROT, NONE, NONE, NONE),
  337. MFPR_910(GPIO19, 0x128, GPIO, KP_DK, NONE, NONE, ROT, NONE, NONE, NONE),
  338. MFPR_910(GPIO20, 0x12C, GPIO, SSP1, NONE, NONE, VCXO_OUT, NONE, NONE, NONE),
  339. MFPR_910(GPIO21, 0x130, GPIO, SSP1, NONE, NONE, NONE, NONE, NONE, NONE),
  340. MFPR_910(GPIO22, 0x134, GPIO, SSP1, NONE, NONE, NONE, NONE, NONE, NONE),
  341. MFPR_910(GPIO23, 0x138, GPIO, SSP1, NONE, NONE, NONE, NONE, NONE, NONE),
  342. MFPR_910(GPIO24, 0x13C, GPIO, SSP1, NONE, NONE, NONE, NONE, NONE, NONE),
  343. MFPR_910(GPIO25, 0x140, GPIO, GSSP, NONE, NONE, NONE, NONE, NONE, NONE),
  344. MFPR_910(GPIO26, 0x144, GPIO, GSSP, NONE, NONE, NONE, NONE, NONE, NONE),
  345. MFPR_910(GPIO27, 0x148, GPIO, GSSP, NONE, NONE, NONE, NONE, NONE, NONE),
  346. MFPR_910(GPIO28, 0x14C, GPIO, GSSP, NONE, NONE, NONE, NONE, NONE, NONE),
  347. MFPR_910(GPIO29, 0x150, GPIO, UART0, NONE, NONE, UART1, NONE, NONE, NONE),
  348. MFPR_910(GPIO30, 0x154, GPIO, UART0, NONE, NONE, UART1, NONE, NONE, NONE),
  349. MFPR_910(GPIO31, 0x158, GPIO, UART0, NONE, NONE, UART1, NONE, NONE, NONE),
  350. MFPR_910(GPIO32, 0x15C, GPIO, UART0, DAC_ST23, NONE, UART1, NONE, NONE, NONE),
  351. MFPR_910(GPIO33, 0x160, GPIO, MMC2, SSP0, SSP2, NONE, SPI, NONE, MMC3),
  352. MFPR_910(GPIO34, 0x164, GPIO, MMC2, SSP0, SSP2, NONE, SPI, NONE, MMC3),
  353. MFPR_910(GPIO35, 0x168, GPIO, MMC2, SSP0, SSP2, NONE, SPI, NONE, MMC3),
  354. MFPR_910(GPIO36, 0x16C, GPIO, MMC2, SSP0, SSP2, NONE, SPI, NONE, MMC3),
  355. MFPR_910(GPIO37, 0x170, GPIO, MMC2, NONE, NONE, NONE, SPI, HSL, NONE),
  356. MFPR_910(GPIO38, 0x174, GPIO, MMC2, NONE, NONE, NONE, NONE, HSL, NONE),
  357. MFPR_910(GPIO39, 0x178, GPIO, MMC2, NONE, NONE, NONE, NONE, HSL, NONE),
  358. MFPR_910(GPIO40, 0x17C, GPIO, MMC2, NONE, NONE, NONE, NONE, HSL, NONE),
  359. MFPR_910(GPIO41, 0x180, GPIO, MMC2, NONE, NONE, NONE, NONE, HSL, NONE),
  360. MFPR_910(GPIO42, 0x184, GPIO, MMC2, NONE, NONE, NONE, NONE, HSL, NONE),
  361. MFPR_910(GPIO43, 0x188, GPIO, UART1, NONE, DAC_ST23, NONE, DSSP2, SPI, UART2),
  362. MFPR_910(GPIO44, 0x18C, GPIO, UART1, NONE, EXT_INT, NONE, DSSP2, SPI, UART2),
  363. MFPR_910(GPIO45, 0x190, GPIO, UART1, NONE, EXT_INT, NONE, DSSP2, SPI, UART2),
  364. MFPR_910(GPIO46, 0x194, GPIO, UART1, NONE, EXT_INT, NONE, DSSP2, SPI, UART2),
  365. MFPR_910(GPIO47, 0x198, GPIO, SSP0, NONE, NONE, NONE, SSP2, UART1, NONE),
  366. MFPR_910(GPIO48, 0x19C, GPIO, SSP0, NONE, NONE, NONE, SSP2, UART1, NONE),
  367. MFPR_910(GPIO49, 0x1A0, GPIO, SSP0, UART0, VCXO_REQ, NONE, SSP2, NONE, MMC3),
  368. MFPR_910(GPIO50, 0x1A4, GPIO, SSP0, UART0, VCXO_OUT, NONE, SSP2, NONE, MMC3),
  369. MFPR_910(GPIO51, 0x1A8, GPIO, UART2, PWM1, TWSI, SSP0, NONE, DSSP3, NONE),
  370. MFPR_910(GPIO52, 0x1AC, GPIO, UART2, DAC_ST23, TWSI, SSP0, NONE, DSSP3, NONE),
  371. MFPR_910(GPIO53, 0x1B0, GPIO, UART2, TWSI, NONE, SSP0, NONE, DSSP3, NONE),
  372. MFPR_910(GPIO54, 0x1B4, GPIO, UART2, TWSI, SSP0, NONE, NONE, DSSP3, NONE),
  373. MFPR_910(GPIO55, 0x2F0, TDS, GPIO, TB, NONE, NONE, NONE, NONE, NONE),
  374. MFPR_910(GPIO56, 0x2F4, TDS, GPIO, TB, NONE, NONE, NONE, NONE, NONE),
  375. MFPR_910(GPIO57, 0x2F8, TDS, GPIO, TB, NONE, NONE, NONE, NONE, NONE),
  376. MFPR_910(GPIO58, 0x2FC, TDS, GPIO, TB, NONE, NONE, NONE, NONE, NONE),
  377. MFPR_910(GPIO59, 0x300, TDS, GPIO, TCU_GPOA, TCU_GPOB, ONE_WIRE, NONE, NONE, NONE),
  378. MFPR_910(GPIO60, 0x304, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
  379. MFPR_910(GPIO61, 0x308, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, HSL),
  380. MFPR_910(GPIO62, 0x30C, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, HSL),
  381. MFPR_910(GPIO63, 0x310, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, HSL),
  382. MFPR_910(GPIO64, 0x314, GPIO, SPI2, NONE, NONE, NONE, NONE, NONE, HSL),
  383. MFPR_910(GPIO65, 0x318, GPIO, SPI2, NONE, NONE, NONE, NONE, ONE_WIRE, HSL),
  384. MFPR_910(GPIO66, 0x31C, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, HSL),
  385. MFPR_910(GPIO67, 0x1B8, GPIO, CCIC, SPI, NONE, NONE, ULPI, NONE, USIM2),
  386. MFPR_910(GPIO68, 0x1BC, GPIO, CCIC, SPI, NONE, NONE, ULPI, NONE, USIM2),
  387. MFPR_910(GPIO69, 0x1C0, GPIO, CCIC, SPI, NONE, NONE, ULPI, NONE, USIM2),
  388. MFPR_910(GPIO70, 0x1C4, GPIO, CCIC, SPI, NONE, NONE, ULPI, NONE, NONE),
  389. MFPR_910(GPIO71, 0x1C8, GPIO, CCIC, SPI, NONE, NONE, ULPI, NONE, NONE),
  390. MFPR_910(GPIO72, 0x1CC, GPIO, CCIC, EXT_DMA, NONE, NONE, ULPI, NONE, NONE),
  391. MFPR_910(GPIO73, 0x1D0, GPIO, CCIC, EXT_DMA, NONE, NONE, ULPI, NONE, NONE),
  392. MFPR_910(GPIO74, 0x1D4, GPIO, CCIC, EXT_DMA, NONE, NONE, ULPI, NONE, NONE),
  393. MFPR_910(GPIO75, 0x1D8, GPIO, CCIC, NONE, NONE, NONE, ULPI, NONE, NONE),
  394. MFPR_910(GPIO76, 0x1DC, GPIO, CCIC, NONE, NONE, NONE, ULPI, NONE, NONE),
  395. MFPR_910(GPIO77, 0x1E0, GPIO, CCIC, NONE, NONE, NONE, ULPI, NONE, NONE),
  396. MFPR_910(GPIO78, 0x1E4, GPIO, CCIC, NONE, NONE, NONE, ULPI, NONE, NONE),
  397. MFPR_910(GPIO79, 0x1E8, GPIO, TWSI, NONE, NONE, NONE, NONE, NONE, NONE),
  398. MFPR_910(GPIO80, 0x1EC, GPIO, TWSI, NONE, NONE, NONE, NONE, NONE, NONE),
  399. MFPR_910(GPIO81, 0x1F0, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  400. MFPR_910(GPIO82, 0x1F4, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  401. MFPR_910(GPIO83, 0x1F8, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  402. MFPR_910(GPIO84, 0x1FC, GPIO, LCD, VCXO_REQ2, NONE, NONE, NONE, NONE, NONE),
  403. MFPR_910(GPIO85, 0x200, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  404. MFPR_910(GPIO86, 0x204, GPIO, LCD, VCXO_OUT2, NONE, NONE, NONE, NONE, NONE),
  405. MFPR_910(GPIO87, 0x208, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  406. MFPR_910(GPIO88, 0x20C, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  407. MFPR_910(GPIO89, 0x210, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  408. MFPR_910(GPIO90, 0x214, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  409. MFPR_910(GPIO91, 0x218, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  410. MFPR_910(GPIO92, 0x21C, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  411. MFPR_910(GPIO93, 0x220, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  412. MFPR_910(GPIO94, 0x224, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  413. MFPR_910(GPIO95, 0x228, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  414. MFPR_910(GPIO96, 0x22C, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  415. MFPR_910(GPIO97, 0x230, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  416. MFPR_910(GPIO98, 0x234, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  417. MFPR_910(GPIO99, 0x0B0, MMC1, GPIO, NONE, NONE, NONE, NONE, NONE, NONE),
  418. MFPR_910(GPIO100, 0x238, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  419. MFPR_910(GPIO101, 0x23C, GPIO, LCD, NONE, NONE, NONE, NONE, NONE, NONE),
  420. MFPR_910(GPIO102, 0x240, GPIO, LCD, DSSP2, SPI, NONE, NONE, NONE, SPI2),
  421. MFPR_910(GPIO103, 0x244, GPIO, LCD, DSSP2, SPI, NONE, NONE, NONE, SPI2),
  422. MFPR_910(GPIO104, 0x248, GPIO, LCD, DSSP2, SPI, NONE, NONE, NONE, NONE),
  423. MFPR_910(GPIO105, 0x24C, GPIO, LCD, DSSP2, SPI, NONE, NONE, NONE, NONE),
  424. MFPR_910(GPIO106, 0x250, GPIO, LCD, DSSP3, ONE_WIRE, NONE, NONE, NONE, NONE),
  425. MFPR_910(GPIO107, 0x254, GPIO, LCD, DSSP3, SPI, NONE, NONE, NONE, NONE),
  426. MFPR_910(GPIO108, 0x258, GPIO, LCD, DSSP3, SPI, NONE, NONE, NONE, NONE),
  427. MFPR_910(GPIO109, 0x25C, GPIO, LCD, DSSP3, SPI, NONE, NONE, NONE, NONE),
  428. MFPR_910(GPIO110, 0x298, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
  429. MFPR_910(GPIO111, 0x29C, GPIO, NONE, DSSP2, NONE, NONE, NONE, NONE, NONE),
  430. MFPR_910(GPIO112, 0x2A0, GPIO, NONE, DSSP2, NONE, NONE, NONE, NONE, NONE),
  431. MFPR_910(GPIO113, 0x2A4, GPIO, NONE, DSSP2, NONE, NONE, NONE, NONE, NONE),
  432. MFPR_910(GPIO114, 0x2A8, GPIO, NONE, DSSP3, NONE, NONE, NONE, NONE, NONE),
  433. MFPR_910(GPIO115, 0x2AC, GPIO, NONE, DSSP3, NONE, NONE, NONE, NONE, NONE),
  434. MFPR_910(GPIO116, 0x2B0, GPIO, NONE, DSSP3, NONE, NONE, NONE, NONE, NONE),
  435. MFPR_910(GPIO117, 0x0B4, PRI_JTAG, GPIO, PWM0, NONE, NONE, NONE, NONE, NONE),
  436. MFPR_910(GPIO118, 0x0B8, PRI_JTAG, GPIO, PWM1, NONE, NONE, NONE, NONE, NONE),
  437. MFPR_910(GPIO119, 0x0BC, PRI_JTAG, GPIO, PWM2, NONE, NONE, NONE, NONE, NONE),
  438. MFPR_910(GPIO120, 0x0C0, PRI_JTAG, GPIO, PWM3, NONE, NONE, NONE, NONE, NONE),
  439. MFPR_910(GPIO121, 0x32C, GPIO, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
  440. MFPR_910(GPIO122, 0x0C8, RESET, GPIO, 32K_CLK, NONE, NONE, NONE, NONE, NONE),
  441. MFPR_910(GPIO123, 0x0CC, CLK_REQ, GPIO, ONE_WIRE, EXT_DMA, NONE, NONE, NONE, NONE),
  442. MFPR_910(GPIO124, 0x0D0, GPIO, MN_CLK, DAC_ST23, NONE, NONE, NONE, NONE, NONE),
  443. MFPR_910(GPIO125, 0x0D4, VCXO_REQ, GPIO, NONE, EXT_INT, NONE, NONE, NONE, NONE),
  444. MFPR_910(GPIO126, 0x06C, GPIO, SMC, NONE, SM_ADDR18, NONE, EXT_DMA, NONE, NONE),
  445. MFPR_910(GPIO127, 0x070, GPIO, SMC, NONE, NONE, NONE, NONE, NONE, NONE),
  446. MFPR_910(ND_IO15, 0x004, NAND, GPIO, USIM2, EXT_DMA, NONE, NONE, NONE, NONE),
  447. MFPR_910(ND_IO14, 0x008, NAND, GPIO, USIM2, NONE, NONE, NONE, NONE, NONE),
  448. MFPR_910(ND_IO13, 0x00C, NAND, GPIO, USIM2, EXT_INT, NONE, NONE, NONE, NONE),
  449. MFPR_910(ND_IO12, 0x010, NAND, GPIO, SSP2, EXT_INT, NONE, NONE, NONE, NONE),
  450. MFPR_910(ND_IO11, 0x014, NAND, GPIO, SSP2, NONE, NONE, NONE, NONE, NONE),
  451. MFPR_910(ND_IO10, 0x018, NAND, GPIO, SSP2, NONE, NONE, NONE, NONE, NONE),
  452. MFPR_910(ND_IO9, 0x01C, NAND, GPIO, SSP2, NONE, VCXO_OUT2, NONE, NONE, NONE),
  453. MFPR_910(ND_IO8, 0x020, NAND, GPIO, NONE, NONE, PWM3, NONE, NONE, NONE),
  454. MFPR_910(ND_IO7, 0x024, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  455. MFPR_910(ND_IO6, 0x028, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  456. MFPR_910(ND_IO5, 0x02C, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  457. MFPR_910(ND_IO4, 0x030, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  458. MFPR_910(ND_IO3, 0x034, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  459. MFPR_910(ND_IO2, 0x038, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  460. MFPR_910(ND_IO1, 0x03C, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  461. MFPR_910(ND_IO0, 0x040, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  462. MFPR_910(ND_NCS0, 0x044, NAND, GPIO, NONE, NONE, NONE, NONE, NONE, NONE),
  463. MFPR_910(ND_NCS1, 0x048, NAND, GPIO, NONE, NONE, NONE, NONE, NONE, NONE),
  464. MFPR_910(SM_NCS0, 0x04C, SMC, GPIO, NONE, NONE, NONE, NONE, NONE, NONE),
  465. MFPR_910(SM_NCS1, 0x050, SMC, GPIO, NONE, NONE, NONE, NONE, NONE, NONE),
  466. MFPR_910(ND_NWE, 0x054, GPIO, NAND, NONE, SM_ADDR20, NONE, SMC, NONE, NONE),
  467. MFPR_910(ND_NRE, 0x058, GPIO, NAND, NONE, SMC, NONE, EXT_DMA, NONE, NONE),
  468. MFPR_910(ND_CLE, 0x05C, NAND, MMC3, NONE, NONE, NONE, NONE, NONE, NONE),
  469. MFPR_910(ND_ALE, 0x060, GPIO, NAND, NONE, NONE, NONE, NONE, NONE, NONE),
  470. MFPR_910(SM_SCLK, 0x064, MMC3, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
  471. MFPR_910(ND_RDY0, 0x068, NAND, GPIO, NONE, SMC, NONE, NONE, NONE, NONE),
  472. MFPR_910(SM_ADV, 0x074, SMC, GPIO, NONE, NONE, NONE, NONE, NONE, NONE),
  473. MFPR_910(ND_RDY1, 0x078, NAND, GPIO, NONE, SMC, NONE, NONE, NONE, NONE),
  474. MFPR_910(SM_ADVMUX, 0x07C, SMC, GPIO, NONE, SM_ADDR19, NONE, NONE, NONE, NONE),
  475. MFPR_910(SM_RDY, 0x080, SMC, GPIO, NONE, NONE, NONE, NONE, NONE, NONE),
  476. MFPR_910(MMC1_DAT7, 0x084, MMC1, GPIO, SEC1_JTAG, TB, NONE, NONE, NONE, NONE),
  477. MFPR_910(MMC1_DAT6, 0x088, MMC1, GPIO, SEC1_JTAG, TB, NONE, NONE, NONE, NONE),
  478. MFPR_910(MMC1_DAT5, 0x08C, MMC1, GPIO, SEC1_JTAG, TB, NONE, NONE, NONE, NONE),
  479. MFPR_910(MMC1_DAT4, 0x090, MMC1, GPIO, NONE, TB, NONE, NONE, NONE, NONE),
  480. MFPR_910(MMC1_DAT3, 0x094, MMC1, HSL, SEC2_JTAG, SSP0, NONE, NONE, NONE, NONE),
  481. MFPR_910(MMC1_DAT2, 0x098, MMC1, HSL, SEC2_JTAG, SSP2, SSP0, NONE, NONE, NONE),
  482. MFPR_910(MMC1_DAT1, 0x09C, MMC1, HSL, SEC2_JTAG, SSP2, SSP0, NONE, NONE, NONE),
  483. MFPR_910(MMC1_DAT0, 0x0A0, MMC1, HSL, SEC2_JTAG, SSP2, NONE, NONE, NONE, NONE),
  484. MFPR_910(MMC1_CMD, 0x0A4, MMC1, HSL, SEC1_JTAG, SSP2, NONE, NONE, NONE, NONE),
  485. MFPR_910(MMC1_CLK, 0x0A8, MMC1, HSL, SEC2_JTAG, SSP0, NONE, NONE, NONE, NONE),
  486. MFPR_910(MMC1_CD, 0x0AC, MMC1, GPIO, SEC1_JTAG, NONE, NONE, NONE, NONE, NONE),
  487. MFPR_910(VCXO_OUT, 0x0D8, VCXO_OUT, PWM3, NONE, NONE, NONE, NONE, NONE, NONE),
  488. };
  489. static const unsigned p910_usim2_pin1[] = {GPIO67, GPIO68, GPIO69};
  490. static const unsigned p910_usim2_pin2[] = {ND_IO15, ND_IO14, ND_IO13};
  491. static const unsigned p910_mmc1_pin1[] = {MMC1_DAT7, MMC1_DAT6, MMC1_DAT5,
  492. MMC1_DAT4, MMC1_DAT3, MMC1_DAT2, MMC1_DAT1, MMC1_DAT0, MMC1_CMD,
  493. MMC1_CLK, MMC1_CD, GPIO99};
  494. static const unsigned p910_mmc2_pin1[] = {GPIO33, GPIO34, GPIO35, GPIO36,
  495. GPIO37, GPIO38, GPIO39, GPIO40, GPIO41, GPIO42};
  496. static const unsigned p910_mmc3_pin1[] = {GPIO33, GPIO34, GPIO35, GPIO36,
  497. GPIO49, GPIO50};
  498. static const unsigned p910_mmc3_pin2[] = {ND_IO7, ND_IO6, ND_IO5, ND_IO4,
  499. ND_IO3, ND_IO2, ND_IO1, ND_IO0, ND_CLE, SM_SCLK};
  500. static const unsigned p910_uart0_pin1[] = {GPIO29, GPIO30, GPIO31, GPIO32};
  501. static const unsigned p910_uart1_pin1[] = {GPIO47, GPIO48};
  502. static const unsigned p910_uart1_pin2[] = {GPIO31, GPIO32};
  503. static const unsigned p910_uart1_pin3[] = {GPIO45, GPIO46};
  504. static const unsigned p910_uart1_pin4[] = {GPIO29, GPIO30, GPIO31, GPIO32};
  505. static const unsigned p910_uart1_pin5[] = {GPIO43, GPIO44, GPIO45, GPIO46};
  506. static const unsigned p910_uart2_pin1[] = {GPIO43, GPIO44};
  507. static const unsigned p910_uart2_pin2[] = {GPIO51, GPIO52};
  508. static const unsigned p910_uart2_pin3[] = {GPIO43, GPIO44, GPIO45, GPIO46};
  509. static const unsigned p910_uart2_pin4[] = {GPIO51, GPIO52, GPIO53, GPIO54};
  510. static const unsigned p910_twsi_pin1[] = {GPIO51, GPIO52};
  511. static const unsigned p910_twsi_pin2[] = {GPIO53, GPIO54};
  512. static const unsigned p910_twsi_pin3[] = {GPIO79, GPIO80};
  513. static const unsigned p910_ccic_pin1[] = {GPIO67, GPIO68, GPIO69, GPIO70,
  514. GPIO71, GPIO72, GPIO73, GPIO74, GPIO75, GPIO76, GPIO77, GPIO78};
  515. static const unsigned p910_lcd_pin1[] = {GPIO81, GPIO82, GPIO83, GPIO84,
  516. GPIO85, GPIO86, GPIO87, GPIO88, GPIO89, GPIO90, GPIO91, GPIO92,
  517. GPIO93, GPIO94, GPIO95, GPIO96, GPIO97, GPIO98, GPIO100, GPIO101,
  518. GPIO102, GPIO103};
  519. static const unsigned p910_spi_pin1[] = {GPIO104, GPIO105, GPIO107, GPIO108};
  520. static const unsigned p910_spi_pin2[] = {GPIO43, GPIO44, GPIO45, GPIO46};
  521. static const unsigned p910_spi_pin3[] = {GPIO33, GPIO34, GPIO35, GPIO36,
  522. GPIO37};
  523. static const unsigned p910_spi_pin4[] = {GPIO67, GPIO68, GPIO69, GPIO70,
  524. GPIO71};
  525. static const unsigned p910_spi2_pin1[] = {GPIO64, GPIO65};
  526. static const unsigned p910_spi2_pin2[] = {GPIO102, GPIO103};
  527. static const unsigned p910_dssp2_pin1[] = {GPIO102, GPIO103, GPIO104, GPIO105};
  528. static const unsigned p910_dssp2_pin2[] = {GPIO43, GPIO44, GPIO45, GPIO46};
  529. static const unsigned p910_dssp2_pin3[] = {GPIO111, GPIO112, GPIO113};
  530. static const unsigned p910_dssp3_pin1[] = {GPIO106, GPIO107, GPIO108, GPIO109};
  531. static const unsigned p910_dssp3_pin2[] = {GPIO51, GPIO52, GPIO53, GPIO54};
  532. static const unsigned p910_dssp3_pin3[] = {GPIO114, GPIO115, GPIO116};
  533. static const unsigned p910_ssp0_pin1[] = {MMC1_DAT3, MMC1_DAT2, MMC1_DAT1,
  534. MMC1_CLK};
  535. static const unsigned p910_ssp0_pin2[] = {GPIO33, GPIO34, GPIO35, GPIO36};
  536. static const unsigned p910_ssp0_pin3[] = {GPIO47, GPIO48, GPIO49, GPIO50};
  537. static const unsigned p910_ssp0_pin4[] = {GPIO51, GPIO52, GPIO53, GPIO54};
  538. static const unsigned p910_ssp1_pin1[] = {GPIO21, GPIO22, GPIO23, GPIO24};
  539. static const unsigned p910_ssp1_pin2[] = {GPIO20, GPIO21, GPIO22, GPIO23,
  540. GPIO24};
  541. static const unsigned p910_ssp2_pin1[] = {MMC1_DAT2, MMC1_DAT1, MMC1_DAT0,
  542. MMC1_CMD};
  543. static const unsigned p910_ssp2_pin2[] = {GPIO33, GPIO34, GPIO35, GPIO36};
  544. static const unsigned p910_ssp2_pin3[] = {GPIO47, GPIO48, GPIO49, GPIO50};
  545. static const unsigned p910_ssp2_pin4[] = {ND_IO12, ND_IO11, ND_IO10, ND_IO9};
  546. static const unsigned p910_gssp_pin1[] = {GPIO25, GPIO26, GPIO27, GPIO28};
  547. static const unsigned p910_pwm0_pin1[] = {GPIO117};
  548. static const unsigned p910_pwm1_pin1[] = {GPIO118};
  549. static const unsigned p910_pwm1_pin2[] = {GPIO51};
  550. static const unsigned p910_pwm2_pin1[] = {GPIO119};
  551. static const unsigned p910_pwm3_pin1[] = {GPIO120};
  552. static const unsigned p910_pwm3_pin2[] = {ND_IO8};
  553. static const unsigned p910_pwm3_pin3[] = {VCXO_OUT};
  554. static const unsigned p910_pri_jtag_pin1[] = {GPIO117, GPIO118, GPIO119,
  555. GPIO120};
  556. static const unsigned p910_sec1_jtag_pin1[] = {MMC1_DAT7, MMC1_DAT6, MMC1_DAT5,
  557. MMC1_CMD, MMC1_CD};
  558. static const unsigned p910_sec2_jtag_pin1[] = {MMC1_DAT3, MMC1_DAT2, MMC1_DAT1,
  559. MMC1_DAT0, MMC1_CLK};
  560. static const unsigned p910_hsl_pin1[] = {GPIO37, GPIO38, GPIO39, GPIO40,
  561. GPIO41, GPIO42};
  562. static const unsigned p910_hsl_pin2[] = {GPIO61, GPIO62, GPIO63, GPIO64,
  563. GPIO65, GPIO66};
  564. static const unsigned p910_hsl_pin3[] = {MMC1_DAT3, MMC1_DAT2, MMC1_DAT1,
  565. MMC1_DAT0, MMC1_CMD, MMC1_CLK};
  566. static const unsigned p910_w1_pin1[] = {GPIO59};
  567. static const unsigned p910_w1_pin2[] = {GPIO65};
  568. static const unsigned p910_w1_pin3[] = {GPIO106};
  569. static const unsigned p910_w1_pin4[] = {GPIO123};
  570. static const unsigned p910_kpmk_pin1[] = {GPIO0, GPIO1, GPIO2, GPIO3, GPIO4,
  571. GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10, GPIO11, GPIO12, GPIO13,
  572. GPIO14, GPIO15};
  573. static const unsigned p910_kpmk_pin2[] = {GPIO0, GPIO1, GPIO2, GPIO3, GPIO4,
  574. GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO12};
  575. static const unsigned p910_kpdk_pin1[] = {GPIO12, GPIO13, GPIO14, GPIO15,
  576. GPIO16, GPIO17, GPIO18, GPIO19};
  577. static const unsigned p910_tds_pin1[] = {GPIO55, GPIO56, GPIO57, GPIO58,
  578. GPIO59};
  579. static const unsigned p910_tds_pin2[] = {GPIO55, GPIO57, GPIO58, GPIO59};
  580. static const unsigned p910_tb_pin1[] = {GPIO14, GPIO15, GPIO16, GPIO17};
  581. static const unsigned p910_tb_pin2[] = {GPIO55, GPIO56, GPIO57, GPIO58};
  582. static const unsigned p910_tb_pin3[] = {MMC1_DAT7, MMC1_DAT6, MMC1_DAT5,
  583. MMC1_DAT4};
  584. static const unsigned p910_ext_dma0_pin1[] = {GPIO72};
  585. static const unsigned p910_ext_dma0_pin2[] = {ND_IO15};
  586. static const unsigned p910_ext_dma0_pin3[] = {ND_NRE};
  587. static const unsigned p910_ext_dma1_pin1[] = {GPIO73};
  588. static const unsigned p910_ext_dma1_pin2[] = {GPIO123};
  589. static const unsigned p910_ext_dma1_pin3[] = {GPIO126};
  590. static const unsigned p910_ext_dma2_pin1[] = {GPIO74};
  591. static const unsigned p910_ext0_int_pin1[] = {GPIO44};
  592. static const unsigned p910_ext0_int_pin2[] = {ND_IO13};
  593. static const unsigned p910_ext1_int_pin1[] = {GPIO45};
  594. static const unsigned p910_ext1_int_pin2[] = {ND_IO12};
  595. static const unsigned p910_ext2_int_pin1[] = {GPIO46};
  596. static const unsigned p910_ext2_int_pin2[] = {GPIO125};
  597. static const unsigned p910_dac_st23_pin1[] = {GPIO32};
  598. static const unsigned p910_dac_st23_pin2[] = {GPIO43};
  599. static const unsigned p910_dac_st23_pin3[] = {GPIO52};
  600. static const unsigned p910_dac_st23_pin4[] = {GPIO124};
  601. static const unsigned p910_vcxo_out_pin1[] = {GPIO50};
  602. static const unsigned p910_vcxo_out_pin2[] = {VCXO_OUT};
  603. static const unsigned p910_vcxo_out_pin3[] = {GPIO20};
  604. static const unsigned p910_vcxo_req_pin1[] = {GPIO49};
  605. static const unsigned p910_vcxo_req_pin2[] = {GPIO125};
  606. static const unsigned p910_vcxo_out2_pin1[] = {GPIO86};
  607. static const unsigned p910_vcxo_out2_pin2[] = {ND_IO9};
  608. static const unsigned p910_vcxo_req2_pin1[] = {GPIO84};
  609. static const unsigned p910_ulpi_pin1[] = {GPIO67, GPIO68, GPIO69, GPIO70,
  610. GPIO71, GPIO72, GPIO73, GPIO74, GPIO75, GPIO76, GPIO77, GPIO78};
  611. static const unsigned p910_nand_pin1[] = {ND_IO15, ND_IO14, ND_IO13, ND_IO12,
  612. ND_IO11, ND_IO10, ND_IO9, ND_IO8, ND_IO7, ND_IO6, ND_IO5, ND_IO4,
  613. ND_IO3, ND_IO2, ND_IO1, ND_IO0, ND_NCS0, ND_NWE, ND_NRE, ND_CLE,
  614. ND_ALE, ND_RDY0};
  615. static const unsigned p910_gpio0_pin1[] = {GPIO0};
  616. static const unsigned p910_gpio0_pin2[] = {SM_ADV};
  617. static const unsigned p910_gpio1_pin1[] = {GPIO1};
  618. static const unsigned p910_gpio1_pin2[] = {ND_RDY1};
  619. static const unsigned p910_gpio2_pin1[] = {GPIO2};
  620. static const unsigned p910_gpio2_pin2[] = {SM_ADVMUX};
  621. static const unsigned p910_gpio3_pin1[] = {GPIO3};
  622. static const unsigned p910_gpio3_pin2[] = {SM_RDY};
  623. static const unsigned p910_gpio20_pin1[] = {GPIO20};
  624. static const unsigned p910_gpio20_pin2[] = {ND_IO15};
  625. static const unsigned p910_gpio20_pin3[] = {MMC1_DAT6};
  626. static const unsigned p910_gpio21_pin1[] = {GPIO21};
  627. static const unsigned p910_gpio21_pin2[] = {ND_IO14};
  628. static const unsigned p910_gpio21_pin3[] = {MMC1_DAT5};
  629. static const unsigned p910_gpio22_pin1[] = {GPIO22};
  630. static const unsigned p910_gpio22_pin2[] = {ND_IO13};
  631. static const unsigned p910_gpio22_pin3[] = {MMC1_DAT4};
  632. static const unsigned p910_gpio23_pin1[] = {GPIO23};
  633. static const unsigned p910_gpio23_pin2[] = {ND_IO12};
  634. static const unsigned p910_gpio23_pin3[] = {MMC1_CD};
  635. static const unsigned p910_gpio24_pin1[] = {GPIO24};
  636. static const unsigned p910_gpio24_pin2[] = {ND_IO11};
  637. static const unsigned p910_gpio24_pin3[] = {MMC1_DAT7};
  638. static const unsigned p910_gpio25_pin1[] = {GPIO25};
  639. static const unsigned p910_gpio25_pin2[] = {ND_IO10};
  640. static const unsigned p910_gpio26_pin1[] = {GPIO26};
  641. static const unsigned p910_gpio26_pin2[] = {ND_IO9};
  642. static const unsigned p910_gpio27_pin1[] = {GPIO27};
  643. static const unsigned p910_gpio27_pin2[] = {ND_IO8};
  644. static const unsigned p910_gpio85_pin1[] = {GPIO85};
  645. static const unsigned p910_gpio85_pin2[] = {ND_NCS0};
  646. static const unsigned p910_gpio86_pin1[] = {GPIO86};
  647. static const unsigned p910_gpio86_pin2[] = {ND_NCS1};
  648. static const unsigned p910_gpio87_pin1[] = {GPIO87};
  649. static const unsigned p910_gpio87_pin2[] = {SM_NCS0};
  650. static const unsigned p910_gpio88_pin1[] = {GPIO88};
  651. static const unsigned p910_gpio88_pin2[] = {SM_NCS1};
  652. static const unsigned p910_gpio89_pin1[] = {GPIO89};
  653. static const unsigned p910_gpio89_pin2[] = {ND_NWE};
  654. static const unsigned p910_gpio90_pin1[] = {GPIO90};
  655. static const unsigned p910_gpio90_pin2[] = {ND_NRE};
  656. static const unsigned p910_gpio91_pin1[] = {GPIO91};
  657. static const unsigned p910_gpio91_pin2[] = {ND_ALE};
  658. static const unsigned p910_gpio92_pin1[] = {GPIO92};
  659. static const unsigned p910_gpio92_pin2[] = {ND_RDY0};
  660. static struct pxa3xx_pin_group pxa910_grps[] = {
  661. GRP_910("usim2 3p1", USIM2, p910_usim2_pin1),
  662. GRP_910("usim2 3p2", USIM2, p910_usim2_pin2),
  663. GRP_910("mmc1 12p", MMC1, p910_mmc1_pin1),
  664. GRP_910("mmc2 10p", MMC2, p910_mmc2_pin1),
  665. GRP_910("mmc3 6p", MMC3, p910_mmc3_pin1),
  666. GRP_910("mmc3 10p", MMC3, p910_mmc3_pin2),
  667. GRP_910("uart0 4p", UART0, p910_uart0_pin1),
  668. GRP_910("uart1 2p1", UART1, p910_uart1_pin1),
  669. GRP_910("uart1 2p2", UART1, p910_uart1_pin2),
  670. GRP_910("uart1 2p3", UART1, p910_uart1_pin3),
  671. GRP_910("uart1 4p4", UART1, p910_uart1_pin4),
  672. GRP_910("uart1 4p5", UART1, p910_uart1_pin5),
  673. GRP_910("uart2 2p1", UART2, p910_uart2_pin1),
  674. GRP_910("uart2 2p2", UART2, p910_uart2_pin2),
  675. GRP_910("uart2 4p3", UART2, p910_uart2_pin3),
  676. GRP_910("uart2 4p4", UART2, p910_uart2_pin4),
  677. GRP_910("twsi 2p1", TWSI, p910_twsi_pin1),
  678. GRP_910("twsi 2p2", TWSI, p910_twsi_pin2),
  679. GRP_910("twsi 2p3", TWSI, p910_twsi_pin3),
  680. GRP_910("ccic", CCIC, p910_ccic_pin1),
  681. GRP_910("lcd", LCD, p910_lcd_pin1),
  682. GRP_910("spi 4p1", SPI, p910_spi_pin1),
  683. GRP_910("spi 4p2", SPI, p910_spi_pin2),
  684. GRP_910("spi 5p3", SPI, p910_spi_pin3),
  685. GRP_910("spi 5p4", SPI, p910_spi_pin4),
  686. GRP_910("dssp2 4p1", DSSP2, p910_dssp2_pin1),
  687. GRP_910("dssp2 4p2", DSSP2, p910_dssp2_pin2),
  688. GRP_910("dssp2 3p3", DSSP2, p910_dssp2_pin3),
  689. GRP_910("dssp3 4p1", DSSP3, p910_dssp3_pin1),
  690. GRP_910("dssp3 4p2", DSSP3, p910_dssp3_pin2),
  691. GRP_910("dssp3 3p3", DSSP3, p910_dssp3_pin3),
  692. GRP_910("ssp0 4p1", SSP0, p910_ssp0_pin1),
  693. GRP_910("ssp0 4p2", SSP0, p910_ssp0_pin2),
  694. GRP_910("ssp0 4p3", SSP0, p910_ssp0_pin3),
  695. GRP_910("ssp0 4p4", SSP0, p910_ssp0_pin4),
  696. GRP_910("ssp1 4p1", SSP1, p910_ssp1_pin1),
  697. GRP_910("ssp1 5p2", SSP1, p910_ssp1_pin2),
  698. GRP_910("ssp2 4p1", SSP2, p910_ssp2_pin1),
  699. GRP_910("ssp2 4p2", SSP2, p910_ssp2_pin2),
  700. GRP_910("ssp2 4p3", SSP2, p910_ssp2_pin3),
  701. GRP_910("ssp2 4p4", SSP2, p910_ssp2_pin4),
  702. GRP_910("gssp", GSSP, p910_gssp_pin1),
  703. GRP_910("pwm0", PWM0, p910_pwm0_pin1),
  704. GRP_910("pwm1-1", PWM1, p910_pwm1_pin1),
  705. GRP_910("pwm1-2", PWM1, p910_pwm1_pin2),
  706. GRP_910("pwm2", PWM2, p910_pwm2_pin1),
  707. GRP_910("pwm3-1", PWM3, p910_pwm3_pin1),
  708. GRP_910("pwm3-2", PWM3, p910_pwm3_pin2),
  709. GRP_910("pwm3-3", PWM3, p910_pwm3_pin3),
  710. GRP_910("pri jtag", PRI_JTAG, p910_pri_jtag_pin1),
  711. GRP_910("sec1 jtag", SEC1_JTAG, p910_sec1_jtag_pin1),
  712. GRP_910("sec2 jtag", SEC2_JTAG, p910_sec2_jtag_pin1),
  713. GRP_910("hsl 6p1", HSL, p910_hsl_pin1),
  714. GRP_910("hsl 6p2", HSL, p910_hsl_pin2),
  715. GRP_910("hsl 6p3", HSL, p910_hsl_pin3),
  716. GRP_910("w1-1", ONE_WIRE, p910_w1_pin1),
  717. GRP_910("w1-2", ONE_WIRE, p910_w1_pin2),
  718. GRP_910("w1-3", ONE_WIRE, p910_w1_pin3),
  719. GRP_910("w1-4", ONE_WIRE, p910_w1_pin4),
  720. GRP_910("kpmk 16p1", KP_MK, p910_kpmk_pin1),
  721. GRP_910("kpmk 11p2", KP_MK, p910_kpmk_pin2),
  722. GRP_910("kpdk 8p1", KP_DK, p910_kpdk_pin1),
  723. GRP_910("tds 5p1", TDS, p910_tds_pin1),
  724. GRP_910("tds 4p2", TDS, p910_tds_pin2),
  725. GRP_910("tb 4p1", TB, p910_tb_pin1),
  726. GRP_910("tb 4p2", TB, p910_tb_pin2),
  727. GRP_910("tb 4p3", TB, p910_tb_pin3),
  728. GRP_910("ext dma0-1", EXT_DMA, p910_ext_dma0_pin1),
  729. GRP_910("ext dma0-2", EXT_DMA, p910_ext_dma0_pin2),
  730. GRP_910("ext dma0-3", EXT_DMA, p910_ext_dma0_pin3),
  731. GRP_910("ext dma1-1", EXT_DMA, p910_ext_dma1_pin1),
  732. GRP_910("ext dma1-2", EXT_DMA, p910_ext_dma1_pin2),
  733. GRP_910("ext dma1-3", EXT_DMA, p910_ext_dma1_pin3),
  734. GRP_910("ext dma2", EXT_DMA, p910_ext_dma2_pin1),
  735. GRP_910("ext0 int-1", EXT_INT, p910_ext0_int_pin1),
  736. GRP_910("ext0 int-2", EXT_INT, p910_ext0_int_pin2),
  737. GRP_910("ext1 int-1", EXT_INT, p910_ext1_int_pin1),
  738. GRP_910("ext1 int-2", EXT_INT, p910_ext1_int_pin2),
  739. GRP_910("ext2 int-1", EXT_INT, p910_ext2_int_pin1),
  740. GRP_910("ext2 int-2", EXT_INT, p910_ext2_int_pin2),
  741. GRP_910("dac st23-1", DAC_ST23, p910_dac_st23_pin1),
  742. GRP_910("dac st23-2", DAC_ST23, p910_dac_st23_pin2),
  743. GRP_910("dac st23-3", DAC_ST23, p910_dac_st23_pin3),
  744. GRP_910("dac st23-4", DAC_ST23, p910_dac_st23_pin4),
  745. GRP_910("vcxo out-1", VCXO_OUT, p910_vcxo_out_pin1),
  746. GRP_910("vcxo out-2", VCXO_OUT, p910_vcxo_out_pin2),
  747. GRP_910("vcxo out-3", VCXO_OUT, p910_vcxo_out_pin3),
  748. GRP_910("vcxo req-1", VCXO_REQ, p910_vcxo_req_pin1),
  749. GRP_910("vcxo req-2", VCXO_REQ, p910_vcxo_req_pin2),
  750. GRP_910("vcxo out2-1", VCXO_OUT2, p910_vcxo_out2_pin1),
  751. GRP_910("vcxo out2-2", VCXO_OUT2, p910_vcxo_out2_pin2),
  752. GRP_910("vcxo req2", VCXO_REQ2, p910_vcxo_req2_pin1),
  753. GRP_910("ulpi", ULPI, p910_ulpi_pin1),
  754. GRP_910("nand", NAND, p910_nand_pin1),
  755. GRP_910("gpio0-1", GPIO, p910_gpio0_pin1),
  756. GRP_910("gpio0-2", GPIO, p910_gpio0_pin2),
  757. GRP_910("gpio1-1", GPIO, p910_gpio1_pin1),
  758. GRP_910("gpio1-2", GPIO, p910_gpio1_pin2),
  759. GRP_910("gpio2-1", GPIO, p910_gpio2_pin1),
  760. GRP_910("gpio2-2", GPIO, p910_gpio2_pin2),
  761. GRP_910("gpio3-1", GPIO, p910_gpio3_pin1),
  762. GRP_910("gpio3-2", GPIO, p910_gpio3_pin2),
  763. GRP_910("gpio20-1", GPIO, p910_gpio20_pin1),
  764. GRP_910("gpio20-2", GPIO, p910_gpio20_pin2),
  765. GRP_910("gpio21-1", GPIO, p910_gpio21_pin1),
  766. GRP_910("gpio21-2", GPIO, p910_gpio21_pin2),
  767. GRP_910("gpio22-1", GPIO, p910_gpio22_pin1),
  768. GRP_910("gpio22-2", GPIO, p910_gpio22_pin2),
  769. GRP_910("gpio23-1", GPIO, p910_gpio23_pin1),
  770. GRP_910("gpio23-2", GPIO, p910_gpio23_pin2),
  771. GRP_910("gpio24-1", GPIO, p910_gpio24_pin1),
  772. GRP_910("gpio24-2", GPIO, p910_gpio24_pin2),
  773. GRP_910("gpio25-1", GPIO, p910_gpio25_pin1),
  774. GRP_910("gpio25-2", GPIO, p910_gpio25_pin2),
  775. GRP_910("gpio26-1", GPIO, p910_gpio26_pin1),
  776. GRP_910("gpio26-2", GPIO, p910_gpio26_pin2),
  777. GRP_910("gpio27-1", GPIO, p910_gpio27_pin1),
  778. GRP_910("gpio27-2", GPIO, p910_gpio27_pin2),
  779. GRP_910("gpio85-1", GPIO, p910_gpio85_pin1),
  780. GRP_910("gpio85-2", GPIO, p910_gpio85_pin2),
  781. GRP_910("gpio86-1", GPIO, p910_gpio86_pin1),
  782. GRP_910("gpio86-2", GPIO, p910_gpio86_pin2),
  783. GRP_910("gpio87-1", GPIO, p910_gpio87_pin1),
  784. GRP_910("gpio87-2", GPIO, p910_gpio87_pin2),
  785. GRP_910("gpio88-1", GPIO, p910_gpio88_pin1),
  786. GRP_910("gpio88-2", GPIO, p910_gpio88_pin2),
  787. GRP_910("gpio89-1", GPIO, p910_gpio89_pin1),
  788. GRP_910("gpio89-2", GPIO, p910_gpio89_pin2),
  789. GRP_910("gpio90-1", GPIO, p910_gpio90_pin1),
  790. GRP_910("gpio90-2", GPIO, p910_gpio90_pin2),
  791. GRP_910("gpio91-1", GPIO, p910_gpio91_pin1),
  792. GRP_910("gpio91-2", GPIO, p910_gpio91_pin2),
  793. GRP_910("gpio92-1", GPIO, p910_gpio92_pin1),
  794. GRP_910("gpio92-2", GPIO, p910_gpio92_pin2),
  795. };
  796. static const char * const p910_usim2_grps[] = {"usim2 3p1", "usim2 3p2"};
  797. static const char * const p910_mmc1_grps[] = {"mmc1 12p"};
  798. static const char * const p910_mmc2_grps[] = {"mmc2 10p"};
  799. static const char * const p910_mmc3_grps[] = {"mmc3 6p", "mmc3 10p"};
  800. static const char * const p910_uart0_grps[] = {"uart0 4p"};
  801. static const char * const p910_uart1_grps[] = {"uart1 2p1", "uart1 2p2",
  802. "uart1 2p3", "uart1 4p4", "uart1 4p5"};
  803. static const char * const p910_uart2_grps[] = {"uart2 2p1", "uart2 2p2",
  804. "uart2 4p3", "uart2 4p4"};
  805. static const char * const p910_twsi_grps[] = {"twsi 2p1", "twsi 2p2",
  806. "twsi 2p3"};
  807. static const char * const p910_ccic_grps[] = {"ccic"};
  808. static const char * const p910_lcd_grps[] = {"lcd"};
  809. static const char * const p910_spi_grps[] = {"spi 4p1", "spi 4p2", "spi 5p3",
  810. "spi 5p4"};
  811. static const char * const p910_dssp2_grps[] = {"dssp2 4p1", "dssp2 4p2",
  812. "dssp2 3p3"};
  813. static const char * const p910_dssp3_grps[] = {"dssp3 4p1", "dssp3 4p2",
  814. "dssp3 3p3"};
  815. static const char * const p910_ssp0_grps[] = {"ssp0 4p1", "ssp0 4p2",
  816. "ssp0 4p3", "ssp0 4p4"};
  817. static const char * const p910_ssp1_grps[] = {"ssp1 4p1", "ssp1 5p2"};
  818. static const char * const p910_ssp2_grps[] = {"ssp2 4p1", "ssp2 4p2",
  819. "ssp2 4p3", "ssp2 4p4"};
  820. static const char * const p910_gssp_grps[] = {"gssp"};
  821. static const char * const p910_pwm0_grps[] = {"pwm0"};
  822. static const char * const p910_pwm1_grps[] = {"pwm1-1", "pwm1-2"};
  823. static const char * const p910_pwm2_grps[] = {"pwm2"};
  824. static const char * const p910_pwm3_grps[] = {"pwm3-1", "pwm3-2", "pwm3-3"};
  825. static const char * const p910_pri_jtag_grps[] = {"pri jtag"};
  826. static const char * const p910_sec1_jtag_grps[] = {"sec1 jtag"};
  827. static const char * const p910_sec2_jtag_grps[] = {"sec2 jtag"};
  828. static const char * const p910_hsl_grps[] = {"hsl 6p1", "hsl 6p2", "hsl 6p3"};
  829. static const char * const p910_w1_grps[] = {"w1-1", "w1-2", "w1-3", "w1-4"};
  830. static const char * const p910_kpmk_grps[] = {"kpmk 16p1", "kpmk 11p2"};
  831. static const char * const p910_kpdk_grps[] = {"kpdk 8p1"};
  832. static const char * const p910_tds_grps[] = {"tds 5p1", "tds 4p2"};
  833. static const char * const p910_tb_grps[] = {"tb 4p1", "tb 4p2", "tb 4p3"};
  834. static const char * const p910_dma0_grps[] = {"ext dma0-1", "ext dma0-2",
  835. "ext dma0-3"};
  836. static const char * const p910_dma1_grps[] = {"ext dma1-1", "ext dma1-2",
  837. "ext dma1-3"};
  838. static const char * const p910_dma2_grps[] = {"ext dma2"};
  839. static const char * const p910_int0_grps[] = {"ext0 int-1", "ext0 int-2"};
  840. static const char * const p910_int1_grps[] = {"ext1 int-1", "ext1 int-2"};
  841. static const char * const p910_int2_grps[] = {"ext2 int-1", "ext2 int-2"};
  842. static const char * const p910_dac_st23_grps[] = {"dac st23-1", "dac st23-2",
  843. "dac st23-3", "dac st23-4"};
  844. static const char * const p910_vcxo_out_grps[] = {"vcxo out-1", "vcxo out-2",
  845. "vcxo out-3"};
  846. static const char * const p910_vcxo_req_grps[] = {"vcxo req-1", "vcxo req-2"};
  847. static const char * const p910_vcxo_out2_grps[] = {"vcxo out2-1",
  848. "vcxo out2-2"};
  849. static const char * const p910_vcxo_req2_grps[] = {"vcxo req2"};
  850. static const char * const p910_ulpi_grps[] = {"ulpi"};
  851. static const char * const p910_nand_grps[] = {"nand"};
  852. static const char * const p910_gpio0_grps[] = {"gpio0-1", "gpio0-2"};
  853. static const char * const p910_gpio1_grps[] = {"gpio1-1", "gpio1-2"};
  854. static const char * const p910_gpio2_grps[] = {"gpio2-1", "gpio2-2"};
  855. static const char * const p910_gpio3_grps[] = {"gpio3-1", "gpio3-2"};
  856. static const char * const p910_gpio20_grps[] = {"gpio20-1", "gpio20-2"};
  857. static const char * const p910_gpio21_grps[] = {"gpio21-1", "gpio21-2"};
  858. static const char * const p910_gpio22_grps[] = {"gpio22-1", "gpio22-2"};
  859. static const char * const p910_gpio23_grps[] = {"gpio23-1", "gpio23-2"};
  860. static const char * const p910_gpio24_grps[] = {"gpio24-1", "gpio24-2"};
  861. static const char * const p910_gpio25_grps[] = {"gpio25-1", "gpio25-2"};
  862. static const char * const p910_gpio26_grps[] = {"gpio26-1", "gpio26-2"};
  863. static const char * const p910_gpio27_grps[] = {"gpio27-1", "gpio27-2"};
  864. static const char * const p910_gpio85_grps[] = {"gpio85-1", "gpio85-2"};
  865. static const char * const p910_gpio86_grps[] = {"gpio86-1", "gpio86-2"};
  866. static const char * const p910_gpio87_grps[] = {"gpio87-1", "gpio87-2"};
  867. static const char * const p910_gpio88_grps[] = {"gpio88-1", "gpio88-2"};
  868. static const char * const p910_gpio89_grps[] = {"gpio89-1", "gpio89-2"};
  869. static const char * const p910_gpio90_grps[] = {"gpio90-1", "gpio90-2"};
  870. static const char * const p910_gpio91_grps[] = {"gpio91-1", "gpio91-2"};
  871. static const char * const p910_gpio92_grps[] = {"gpio92-1", "gpio92-2"};
  872. static struct pxa3xx_pmx_func pxa910_funcs[] = {
  873. {"usim2", ARRAY_AND_SIZE(p910_usim2_grps)},
  874. {"mmc1", ARRAY_AND_SIZE(p910_mmc1_grps)},
  875. {"mmc2", ARRAY_AND_SIZE(p910_mmc2_grps)},
  876. {"mmc3", ARRAY_AND_SIZE(p910_mmc3_grps)},
  877. {"uart0", ARRAY_AND_SIZE(p910_uart0_grps)},
  878. {"uart1", ARRAY_AND_SIZE(p910_uart1_grps)},
  879. {"uart2", ARRAY_AND_SIZE(p910_uart2_grps)},
  880. {"twsi", ARRAY_AND_SIZE(p910_twsi_grps)},
  881. {"ccic", ARRAY_AND_SIZE(p910_ccic_grps)},
  882. {"lcd", ARRAY_AND_SIZE(p910_lcd_grps)},
  883. {"spi", ARRAY_AND_SIZE(p910_spi_grps)},
  884. {"dssp2", ARRAY_AND_SIZE(p910_dssp2_grps)},
  885. {"dssp3", ARRAY_AND_SIZE(p910_dssp3_grps)},
  886. {"ssp0", ARRAY_AND_SIZE(p910_ssp0_grps)},
  887. {"ssp1", ARRAY_AND_SIZE(p910_ssp1_grps)},
  888. {"ssp2", ARRAY_AND_SIZE(p910_ssp2_grps)},
  889. {"gssp", ARRAY_AND_SIZE(p910_gssp_grps)},
  890. {"pwm0", ARRAY_AND_SIZE(p910_pwm0_grps)},
  891. {"pwm1", ARRAY_AND_SIZE(p910_pwm1_grps)},
  892. {"pwm2", ARRAY_AND_SIZE(p910_pwm2_grps)},
  893. {"pwm3", ARRAY_AND_SIZE(p910_pwm3_grps)},
  894. {"pri_jtag", ARRAY_AND_SIZE(p910_pri_jtag_grps)},
  895. {"sec1_jtag", ARRAY_AND_SIZE(p910_sec1_jtag_grps)},
  896. {"sec2_jtag", ARRAY_AND_SIZE(p910_sec2_jtag_grps)},
  897. {"hsl", ARRAY_AND_SIZE(p910_hsl_grps)},
  898. {"w1", ARRAY_AND_SIZE(p910_w1_grps)},
  899. {"kpmk", ARRAY_AND_SIZE(p910_kpmk_grps)},
  900. {"kpdk", ARRAY_AND_SIZE(p910_kpdk_grps)},
  901. {"tds", ARRAY_AND_SIZE(p910_tds_grps)},
  902. {"tb", ARRAY_AND_SIZE(p910_tb_grps)},
  903. {"dma0", ARRAY_AND_SIZE(p910_dma0_grps)},
  904. {"dma1", ARRAY_AND_SIZE(p910_dma1_grps)},
  905. {"dma2", ARRAY_AND_SIZE(p910_dma2_grps)},
  906. {"int0", ARRAY_AND_SIZE(p910_int0_grps)},
  907. {"int1", ARRAY_AND_SIZE(p910_int1_grps)},
  908. {"int2", ARRAY_AND_SIZE(p910_int2_grps)},
  909. {"dac_st23", ARRAY_AND_SIZE(p910_dac_st23_grps)},
  910. {"vcxo_out", ARRAY_AND_SIZE(p910_vcxo_out_grps)},
  911. {"vcxo_req", ARRAY_AND_SIZE(p910_vcxo_req_grps)},
  912. {"vcxo_out2", ARRAY_AND_SIZE(p910_vcxo_out2_grps)},
  913. {"vcxo_req2", ARRAY_AND_SIZE(p910_vcxo_req2_grps)},
  914. {"ulpi", ARRAY_AND_SIZE(p910_ulpi_grps)},
  915. {"nand", ARRAY_AND_SIZE(p910_nand_grps)},
  916. {"gpio0", ARRAY_AND_SIZE(p910_gpio0_grps)},
  917. {"gpio1", ARRAY_AND_SIZE(p910_gpio1_grps)},
  918. {"gpio2", ARRAY_AND_SIZE(p910_gpio2_grps)},
  919. {"gpio3", ARRAY_AND_SIZE(p910_gpio3_grps)},
  920. {"gpio20", ARRAY_AND_SIZE(p910_gpio20_grps)},
  921. {"gpio21", ARRAY_AND_SIZE(p910_gpio21_grps)},
  922. {"gpio22", ARRAY_AND_SIZE(p910_gpio22_grps)},
  923. {"gpio23", ARRAY_AND_SIZE(p910_gpio23_grps)},
  924. {"gpio24", ARRAY_AND_SIZE(p910_gpio24_grps)},
  925. {"gpio25", ARRAY_AND_SIZE(p910_gpio25_grps)},
  926. {"gpio26", ARRAY_AND_SIZE(p910_gpio26_grps)},
  927. {"gpio27", ARRAY_AND_SIZE(p910_gpio27_grps)},
  928. {"gpio85", ARRAY_AND_SIZE(p910_gpio85_grps)},
  929. {"gpio86", ARRAY_AND_SIZE(p910_gpio86_grps)},
  930. {"gpio87", ARRAY_AND_SIZE(p910_gpio87_grps)},
  931. {"gpio88", ARRAY_AND_SIZE(p910_gpio88_grps)},
  932. {"gpio89", ARRAY_AND_SIZE(p910_gpio89_grps)},
  933. {"gpio90", ARRAY_AND_SIZE(p910_gpio90_grps)},
  934. {"gpio91", ARRAY_AND_SIZE(p910_gpio91_grps)},
  935. {"gpio92", ARRAY_AND_SIZE(p910_gpio92_grps)},
  936. };
  937. static struct pinctrl_desc pxa910_pctrl_desc = {
  938. .name = "pxa910-pinctrl",
  939. .owner = THIS_MODULE,
  940. };
  941. static struct pxa3xx_pinmux_info pxa910_info = {
  942. .mfp = pxa910_mfp,
  943. .num_mfp = ARRAY_SIZE(pxa910_mfp),
  944. .grps = pxa910_grps,
  945. .num_grps = ARRAY_SIZE(pxa910_grps),
  946. .funcs = pxa910_funcs,
  947. .num_funcs = ARRAY_SIZE(pxa910_funcs),
  948. .num_gpio = 128,
  949. .desc = &pxa910_pctrl_desc,
  950. .pads = pxa910_pads,
  951. .num_pads = ARRAY_SIZE(pxa910_pads),
  952. .cputype = PINCTRL_PXA910,
  953. .ds_mask = PXA910_DS_MASK,
  954. .ds_shift = PXA910_DS_SHIFT,
  955. };
  956. static int __devinit pxa910_pinmux_probe(struct platform_device *pdev)
  957. {
  958. return pxa3xx_pinctrl_register(pdev, &pxa910_info);
  959. }
  960. static int __devexit pxa910_pinmux_remove(struct platform_device *pdev)
  961. {
  962. return pxa3xx_pinctrl_unregister(pdev);
  963. }
  964. static struct platform_driver pxa910_pinmux_driver = {
  965. .driver = {
  966. .name = "pxa910-pinmux",
  967. .owner = THIS_MODULE,
  968. },
  969. .probe = pxa910_pinmux_probe,
  970. .remove = __devexit_p(pxa910_pinmux_remove),
  971. };
  972. static int __init pxa910_pinmux_init(void)
  973. {
  974. return platform_driver_register(&pxa910_pinmux_driver);
  975. }
  976. core_initcall_sync(pxa910_pinmux_init);
  977. static void __exit pxa910_pinmux_exit(void)
  978. {
  979. platform_driver_unregister(&pxa910_pinmux_driver);
  980. }
  981. module_exit(pxa910_pinmux_exit);
  982. MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>");
  983. MODULE_DESCRIPTION("PXA3xx pin control driver");
  984. MODULE_LICENSE("GPL v2");