1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * GPIO driver for AMD 4 * 5 * Copyright (c) 2014,2015 Ken Xue <Ken.Xue@amd.com> 6 * Jeff Wu <Jeff.Wu@amd.com> 7 */ 8 9 #ifndef _PINCTRL_AMD_H 10 #define _PINCTRL_AMD_H 11 12 #define AMD_GPIO_PINS_PER_BANK 64 13 14 #define AMD_GPIO_PINS_BANK0 63 15 #define AMD_GPIO_PINS_BANK1 64 16 #define AMD_GPIO_PINS_BANK2 56 17 #define AMD_GPIO_PINS_BANK3 32 18 19 #define WAKE_INT_MASTER_REG 0xfc 20 #define EOI_MASK (1 << 29) 21 22 #define WAKE_INT_STATUS_REG0 0x2f8 23 #define WAKE_INT_STATUS_REG1 0x2fc 24 25 #define DB_TMR_OUT_OFF 0 26 #define DB_TMR_OUT_UNIT_OFF 4 27 #define DB_CNTRL_OFF 5 28 #define DB_TMR_LARGE_OFF 7 29 #define LEVEL_TRIG_OFF 8 30 #define ACTIVE_LEVEL_OFF 9 31 #define INTERRUPT_ENABLE_OFF 11 32 #define INTERRUPT_MASK_OFF 12 33 #define WAKE_CNTRL_OFF_S0I3 13 34 #define WAKE_CNTRL_OFF_S3 14 35 #define WAKE_CNTRL_OFF_S4 15 36 #define PIN_STS_OFF 16 37 #define DRV_STRENGTH_SEL_OFF 17 38 #define PULL_UP_SEL_OFF 19 39 #define PULL_UP_ENABLE_OFF 20 40 #define PULL_DOWN_ENABLE_OFF 21 41 #define OUTPUT_VALUE_OFF 22 42 #define OUTPUT_ENABLE_OFF 23 43 #define SW_CNTRL_IN_OFF 24 44 #define SW_CNTRL_EN_OFF 25 45 #define INTERRUPT_STS_OFF 28 46 #define WAKE_STS_OFF 29 47 48 #define DB_TMR_OUT_MASK 0xFUL 49 #define DB_CNTRl_MASK 0x3UL 50 #define ACTIVE_LEVEL_MASK 0x3UL 51 #define DRV_STRENGTH_SEL_MASK 0x3UL 52 53 #define ACTIVE_LEVEL_HIGH 0x0UL 54 #define ACTIVE_LEVEL_LOW 0x1UL 55 #define ACTIVE_LEVEL_BOTH 0x2UL 56 57 #define DB_TYPE_NO_DEBOUNCE 0x0UL 58 #define DB_TYPE_PRESERVE_LOW_GLITCH 0x1UL 59 #define DB_TYPE_PRESERVE_HIGH_GLITCH 0x2UL 60 #define DB_TYPE_REMOVE_GLITCH 0x3UL 61 62 #define EDGE_TRAGGER 0x0UL 63 #define LEVEL_TRIGGER 0x1UL 64 65 #define ACTIVE_HIGH 0x0UL 66 #define ACTIVE_LOW 0x1UL 67 #define BOTH_EADGE 0x2UL 68 69 #define ENABLE_INTERRUPT 0x1UL 70 #define DISABLE_INTERRUPT 0x0UL 71 72 #define ENABLE_INTERRUPT_MASK 0x0UL 73 #define DISABLE_INTERRUPT_MASK 0x1UL 74 75 #define CLR_INTR_STAT 0x1UL 76 77 #define NSELECTS 0x4 78 79 #define FUNCTION_MASK GENMASK(1, 0) 80 #define FUNCTION_INVALID GENMASK(7, 0) 81 82 struct amd_function { 83 const char *name; 84 const char * const groups[NSELECTS]; 85 unsigned ngroups; 86 int index; 87 }; 88 89 struct amd_gpio { 90 raw_spinlock_t lock; 91 void __iomem *base; 92 void __iomem *iomux_base; 93 94 const struct pingroup *groups; 95 u32 ngroups; 96 struct pinctrl_dev *pctrl; 97 struct gpio_chip gc; 98 unsigned int hwbank_num; 99 struct resource *res; 100 struct platform_device *pdev; 101 u32 *saved_regs; 102 int irq; 103 }; 104 105 /* KERNCZ configuration*/ 106 static const struct pinctrl_pin_desc kerncz_pins[] = { 107 PINCTRL_PIN(0, "GPIO_0"), 108 PINCTRL_PIN(1, "GPIO_1"), 109 PINCTRL_PIN(2, "GPIO_2"), 110 PINCTRL_PIN(3, "GPIO_3"), 111 PINCTRL_PIN(4, "GPIO_4"), 112 PINCTRL_PIN(5, "GPIO_5"), 113 PINCTRL_PIN(6, "GPIO_6"), 114 PINCTRL_PIN(7, "GPIO_7"), 115 PINCTRL_PIN(8, "GPIO_8"), 116 PINCTRL_PIN(9, "GPIO_9"), 117 PINCTRL_PIN(10, "GPIO_10"), 118 PINCTRL_PIN(11, "GPIO_11"), 119 PINCTRL_PIN(12, "GPIO_12"), 120 PINCTRL_PIN(13, "GPIO_13"), 121 PINCTRL_PIN(14, "GPIO_14"), 122 PINCTRL_PIN(15, "GPIO_15"), 123 PINCTRL_PIN(16, "GPIO_16"), 124 PINCTRL_PIN(17, "GPIO_17"), 125 PINCTRL_PIN(18, "GPIO_18"), 126 PINCTRL_PIN(19, "GPIO_19"), 127 PINCTRL_PIN(20, "GPIO_20"), 128 PINCTRL_PIN(21, "GPIO_21"), 129 PINCTRL_PIN(22, "GPIO_22"), 130 PINCTRL_PIN(23, "GPIO_23"), 131 PINCTRL_PIN(24, "GPIO_24"), 132 PINCTRL_PIN(25, "GPIO_25"), 133 PINCTRL_PIN(26, "GPIO_26"), 134 PINCTRL_PIN(27, "GPIO_27"), 135 PINCTRL_PIN(28, "GPIO_28"), 136 PINCTRL_PIN(29, "GPIO_29"), 137 PINCTRL_PIN(30, "GPIO_30"), 138 PINCTRL_PIN(31, "GPIO_31"), 139 PINCTRL_PIN(32, "GPIO_32"), 140 PINCTRL_PIN(33, "GPIO_33"), 141 PINCTRL_PIN(34, "GPIO_34"), 142 PINCTRL_PIN(35, "GPIO_35"), 143 PINCTRL_PIN(36, "GPIO_36"), 144 PINCTRL_PIN(37, "GPIO_37"), 145 PINCTRL_PIN(38, "GPIO_38"), 146 PINCTRL_PIN(39, "GPIO_39"), 147 PINCTRL_PIN(40, "GPIO_40"), 148 PINCTRL_PIN(41, "GPIO_41"), 149 PINCTRL_PIN(42, "GPIO_42"), 150 PINCTRL_PIN(43, "GPIO_43"), 151 PINCTRL_PIN(44, "GPIO_44"), 152 PINCTRL_PIN(45, "GPIO_45"), 153 PINCTRL_PIN(46, "GPIO_46"), 154 PINCTRL_PIN(47, "GPIO_47"), 155 PINCTRL_PIN(48, "GPIO_48"), 156 PINCTRL_PIN(49, "GPIO_49"), 157 PINCTRL_PIN(50, "GPIO_50"), 158 PINCTRL_PIN(51, "GPIO_51"), 159 PINCTRL_PIN(52, "GPIO_52"), 160 PINCTRL_PIN(53, "GPIO_53"), 161 PINCTRL_PIN(54, "GPIO_54"), 162 PINCTRL_PIN(55, "GPIO_55"), 163 PINCTRL_PIN(56, "GPIO_56"), 164 PINCTRL_PIN(57, "GPIO_57"), 165 PINCTRL_PIN(58, "GPIO_58"), 166 PINCTRL_PIN(59, "GPIO_59"), 167 PINCTRL_PIN(60, "GPIO_60"), 168 PINCTRL_PIN(61, "GPIO_61"), 169 PINCTRL_PIN(62, "GPIO_62"), 170 PINCTRL_PIN(64, "GPIO_64"), 171 PINCTRL_PIN(65, "GPIO_65"), 172 PINCTRL_PIN(66, "GPIO_66"), 173 PINCTRL_PIN(67, "GPIO_67"), 174 PINCTRL_PIN(68, "GPIO_68"), 175 PINCTRL_PIN(69, "GPIO_69"), 176 PINCTRL_PIN(70, "GPIO_70"), 177 PINCTRL_PIN(71, "GPIO_71"), 178 PINCTRL_PIN(72, "GPIO_72"), 179 PINCTRL_PIN(73, "GPIO_73"), 180 PINCTRL_PIN(74, "GPIO_74"), 181 PINCTRL_PIN(75, "GPIO_75"), 182 PINCTRL_PIN(76, "GPIO_76"), 183 PINCTRL_PIN(77, "GPIO_77"), 184 PINCTRL_PIN(78, "GPIO_78"), 185 PINCTRL_PIN(79, "GPIO_79"), 186 PINCTRL_PIN(80, "GPIO_80"), 187 PINCTRL_PIN(81, "GPIO_81"), 188 PINCTRL_PIN(82, "GPIO_82"), 189 PINCTRL_PIN(83, "GPIO_83"), 190 PINCTRL_PIN(84, "GPIO_84"), 191 PINCTRL_PIN(85, "GPIO_85"), 192 PINCTRL_PIN(86, "GPIO_86"), 193 PINCTRL_PIN(87, "GPIO_87"), 194 PINCTRL_PIN(88, "GPIO_88"), 195 PINCTRL_PIN(89, "GPIO_89"), 196 PINCTRL_PIN(90, "GPIO_90"), 197 PINCTRL_PIN(91, "GPIO_91"), 198 PINCTRL_PIN(92, "GPIO_92"), 199 PINCTRL_PIN(93, "GPIO_93"), 200 PINCTRL_PIN(94, "GPIO_94"), 201 PINCTRL_PIN(95, "GPIO_95"), 202 PINCTRL_PIN(96, "GPIO_96"), 203 PINCTRL_PIN(97, "GPIO_97"), 204 PINCTRL_PIN(98, "GPIO_98"), 205 PINCTRL_PIN(99, "GPIO_99"), 206 PINCTRL_PIN(100, "GPIO_100"), 207 PINCTRL_PIN(101, "GPIO_101"), 208 PINCTRL_PIN(102, "GPIO_102"), 209 PINCTRL_PIN(103, "GPIO_103"), 210 PINCTRL_PIN(104, "GPIO_104"), 211 PINCTRL_PIN(105, "GPIO_105"), 212 PINCTRL_PIN(106, "GPIO_106"), 213 PINCTRL_PIN(107, "GPIO_107"), 214 PINCTRL_PIN(108, "GPIO_108"), 215 PINCTRL_PIN(109, "GPIO_109"), 216 PINCTRL_PIN(110, "GPIO_110"), 217 PINCTRL_PIN(111, "GPIO_111"), 218 PINCTRL_PIN(112, "GPIO_112"), 219 PINCTRL_PIN(113, "GPIO_113"), 220 PINCTRL_PIN(114, "GPIO_114"), 221 PINCTRL_PIN(115, "GPIO_115"), 222 PINCTRL_PIN(116, "GPIO_116"), 223 PINCTRL_PIN(117, "GPIO_117"), 224 PINCTRL_PIN(118, "GPIO_118"), 225 PINCTRL_PIN(119, "GPIO_119"), 226 PINCTRL_PIN(120, "GPIO_120"), 227 PINCTRL_PIN(121, "GPIO_121"), 228 PINCTRL_PIN(122, "GPIO_122"), 229 PINCTRL_PIN(123, "GPIO_123"), 230 PINCTRL_PIN(124, "GPIO_124"), 231 PINCTRL_PIN(125, "GPIO_125"), 232 PINCTRL_PIN(126, "GPIO_126"), 233 PINCTRL_PIN(127, "GPIO_127"), 234 PINCTRL_PIN(128, "GPIO_128"), 235 PINCTRL_PIN(129, "GPIO_129"), 236 PINCTRL_PIN(130, "GPIO_130"), 237 PINCTRL_PIN(131, "GPIO_131"), 238 PINCTRL_PIN(132, "GPIO_132"), 239 PINCTRL_PIN(133, "GPIO_133"), 240 PINCTRL_PIN(134, "GPIO_134"), 241 PINCTRL_PIN(135, "GPIO_135"), 242 PINCTRL_PIN(136, "GPIO_136"), 243 PINCTRL_PIN(137, "GPIO_137"), 244 PINCTRL_PIN(138, "GPIO_138"), 245 PINCTRL_PIN(139, "GPIO_139"), 246 PINCTRL_PIN(140, "GPIO_140"), 247 PINCTRL_PIN(141, "GPIO_141"), 248 PINCTRL_PIN(142, "GPIO_142"), 249 PINCTRL_PIN(143, "GPIO_143"), 250 PINCTRL_PIN(144, "GPIO_144"), 251 PINCTRL_PIN(145, "GPIO_145"), 252 PINCTRL_PIN(146, "GPIO_146"), 253 PINCTRL_PIN(147, "GPIO_147"), 254 PINCTRL_PIN(148, "GPIO_148"), 255 PINCTRL_PIN(149, "GPIO_149"), 256 PINCTRL_PIN(150, "GPIO_150"), 257 PINCTRL_PIN(151, "GPIO_151"), 258 PINCTRL_PIN(152, "GPIO_152"), 259 PINCTRL_PIN(153, "GPIO_153"), 260 PINCTRL_PIN(154, "GPIO_154"), 261 PINCTRL_PIN(155, "GPIO_155"), 262 PINCTRL_PIN(156, "GPIO_156"), 263 PINCTRL_PIN(157, "GPIO_157"), 264 PINCTRL_PIN(158, "GPIO_158"), 265 PINCTRL_PIN(159, "GPIO_159"), 266 PINCTRL_PIN(160, "GPIO_160"), 267 PINCTRL_PIN(161, "GPIO_161"), 268 PINCTRL_PIN(162, "GPIO_162"), 269 PINCTRL_PIN(163, "GPIO_163"), 270 PINCTRL_PIN(164, "GPIO_164"), 271 PINCTRL_PIN(165, "GPIO_165"), 272 PINCTRL_PIN(166, "GPIO_166"), 273 PINCTRL_PIN(167, "GPIO_167"), 274 PINCTRL_PIN(168, "GPIO_168"), 275 PINCTRL_PIN(169, "GPIO_169"), 276 PINCTRL_PIN(170, "GPIO_170"), 277 PINCTRL_PIN(171, "GPIO_171"), 278 PINCTRL_PIN(172, "GPIO_172"), 279 PINCTRL_PIN(173, "GPIO_173"), 280 PINCTRL_PIN(174, "GPIO_174"), 281 PINCTRL_PIN(175, "GPIO_175"), 282 PINCTRL_PIN(176, "GPIO_176"), 283 PINCTRL_PIN(177, "GPIO_177"), 284 PINCTRL_PIN(178, "GPIO_178"), 285 PINCTRL_PIN(179, "GPIO_179"), 286 PINCTRL_PIN(180, "GPIO_180"), 287 PINCTRL_PIN(181, "GPIO_181"), 288 PINCTRL_PIN(182, "GPIO_182"), 289 PINCTRL_PIN(183, "GPIO_183"), 290 }; 291 292 #define AMD_PINS(...) (const unsigned int []){__VA_ARGS__} 293 294 enum amd_functions { 295 IMX_F0_GPIO0, 296 IMX_F1_GPIO0, 297 IMX_F2_GPIO0, 298 IMX_F3_GPIO0, 299 IMX_F0_GPIO1, 300 IMX_F1_GPIO1, 301 IMX_F2_GPIO1, 302 IMX_F3_GPIO1, 303 IMX_F0_GPIO2, 304 IMX_F1_GPIO2, 305 IMX_F2_GPIO2, 306 IMX_F3_GPIO2, 307 IMX_F0_GPIO3, 308 IMX_F1_GPIO3, 309 IMX_F2_GPIO3, 310 IMX_F3_GPIO3, 311 IMX_F0_GPIO4, 312 IMX_F1_GPIO4, 313 IMX_F2_GPIO4, 314 IMX_F3_GPIO4, 315 IMX_F0_GPIO5, 316 IMX_F1_GPIO5, 317 IMX_F2_GPIO5, 318 IMX_F3_GPIO5, 319 IMX_F0_GPIO6, 320 IMX_F1_GPIO6, 321 IMX_F2_GPIO6, 322 IMX_F3_GPIO6, 323 IMX_F0_GPIO7, 324 IMX_F1_GPIO7, 325 IMX_F2_GPIO7, 326 IMX_F3_GPIO7, 327 IMX_F0_GPIO8, 328 IMX_F1_GPIO8, 329 IMX_F2_GPIO8, 330 IMX_F3_GPIO8, 331 IMX_F0_GPIO9, 332 IMX_F1_GPIO9, 333 IMX_F2_GPIO9, 334 IMX_F3_GPIO9, 335 IMX_F0_GPIO10, 336 IMX_F1_GPIO10, 337 IMX_F2_GPIO10, 338 IMX_F3_GPIO10, 339 IMX_F0_GPIO11, 340 IMX_F1_GPIO11, 341 IMX_F2_GPIO11, 342 IMX_F3_GPIO11, 343 IMX_F0_GPIO12, 344 IMX_F1_GPIO12, 345 IMX_F2_GPIO12, 346 IMX_F3_GPIO12, 347 IMX_F0_GPIO13, 348 IMX_F1_GPIO13, 349 IMX_F2_GPIO13, 350 IMX_F3_GPIO13, 351 IMX_F0_GPIO14, 352 IMX_F1_GPIO14, 353 IMX_F2_GPIO14, 354 IMX_F3_GPIO14, 355 IMX_F0_GPIO15, 356 IMX_F1_GPIO15, 357 IMX_F2_GPIO15, 358 IMX_F3_GPIO15, 359 IMX_F0_GPIO16, 360 IMX_F1_GPIO16, 361 IMX_F2_GPIO16, 362 IMX_F3_GPIO16, 363 IMX_F0_GPIO17, 364 IMX_F1_GPIO17, 365 IMX_F2_GPIO17, 366 IMX_F3_GPIO17, 367 IMX_F0_GPIO18, 368 IMX_F1_GPIO18, 369 IMX_F2_GPIO18, 370 IMX_F3_GPIO18, 371 IMX_F0_GPIO19, 372 IMX_F1_GPIO19, 373 IMX_F2_GPIO19, 374 IMX_F3_GPIO19, 375 IMX_F0_GPIO20, 376 IMX_F1_GPIO20, 377 IMX_F2_GPIO20, 378 IMX_F3_GPIO20, 379 IMX_F0_GPIO21, 380 IMX_F1_GPIO21, 381 IMX_F2_GPIO21, 382 IMX_F3_GPIO21, 383 IMX_F0_GPIO22, 384 IMX_F1_GPIO22, 385 IMX_F2_GPIO22, 386 IMX_F3_GPIO22, 387 IMX_F0_GPIO23, 388 IMX_F1_GPIO23, 389 IMX_F2_GPIO23, 390 IMX_F3_GPIO23, 391 IMX_F0_GPIO24, 392 IMX_F1_GPIO24, 393 IMX_F2_GPIO24, 394 IMX_F3_GPIO24, 395 IMX_F0_GPIO25, 396 IMX_F1_GPIO25, 397 IMX_F2_GPIO25, 398 IMX_F3_GPIO25, 399 IMX_F0_GPIO26, 400 IMX_F1_GPIO26, 401 IMX_F2_GPIO26, 402 IMX_F3_GPIO26, 403 IMX_F0_GPIO27, 404 IMX_F1_GPIO27, 405 IMX_F2_GPIO27, 406 IMX_F3_GPIO27, 407 IMX_F0_GPIO28, 408 IMX_F1_GPIO28, 409 IMX_F2_GPIO28, 410 IMX_F3_GPIO28, 411 IMX_F0_GPIO29, 412 IMX_F1_GPIO29, 413 IMX_F2_GPIO29, 414 IMX_F3_GPIO29, 415 IMX_F0_GPIO30, 416 IMX_F1_GPIO30, 417 IMX_F2_GPIO30, 418 IMX_F3_GPIO30, 419 IMX_F0_GPIO31, 420 IMX_F1_GPIO31, 421 IMX_F2_GPIO31, 422 IMX_F3_GPIO31, 423 IMX_F0_GPIO32, 424 IMX_F1_GPIO32, 425 IMX_F2_GPIO32, 426 IMX_F3_GPIO32, 427 IMX_F0_GPIO33, 428 IMX_F1_GPIO33, 429 IMX_F2_GPIO33, 430 IMX_F3_GPIO33, 431 IMX_F0_GPIO34, 432 IMX_F1_GPIO34, 433 IMX_F2_GPIO34, 434 IMX_F3_GPIO34, 435 IMX_F0_GPIO35, 436 IMX_F1_GPIO35, 437 IMX_F2_GPIO35, 438 IMX_F3_GPIO35, 439 IMX_F0_GPIO36, 440 IMX_F1_GPIO36, 441 IMX_F2_GPIO36, 442 IMX_F3_GPIO36, 443 IMX_F0_GPIO37, 444 IMX_F1_GPIO37, 445 IMX_F2_GPIO37, 446 IMX_F3_GPIO37, 447 IMX_F0_GPIO38, 448 IMX_F1_GPIO38, 449 IMX_F2_GPIO38, 450 IMX_F3_GPIO38, 451 IMX_F0_GPIO39, 452 IMX_F1_GPIO39, 453 IMX_F2_GPIO39, 454 IMX_F3_GPIO39, 455 IMX_F0_GPIO40, 456 IMX_F1_GPIO40, 457 IMX_F2_GPIO40, 458 IMX_F3_GPIO40, 459 IMX_F0_GPIO41, 460 IMX_F1_GPIO41, 461 IMX_F2_GPIO41, 462 IMX_F3_GPIO41, 463 IMX_F0_GPIO42, 464 IMX_F1_GPIO42, 465 IMX_F2_GPIO42, 466 IMX_F3_GPIO42, 467 IMX_F0_GPIO43, 468 IMX_F1_GPIO43, 469 IMX_F2_GPIO43, 470 IMX_F3_GPIO43, 471 IMX_F0_GPIO44, 472 IMX_F1_GPIO44, 473 IMX_F2_GPIO44, 474 IMX_F3_GPIO44, 475 IMX_F0_GPIO45, 476 IMX_F1_GPIO45, 477 IMX_F2_GPIO45, 478 IMX_F3_GPIO45, 479 IMX_F0_GPIO46, 480 IMX_F1_GPIO46, 481 IMX_F2_GPIO46, 482 IMX_F3_GPIO46, 483 IMX_F0_GPIO47, 484 IMX_F1_GPIO47, 485 IMX_F2_GPIO47, 486 IMX_F3_GPIO47, 487 IMX_F0_GPIO48, 488 IMX_F1_GPIO48, 489 IMX_F2_GPIO48, 490 IMX_F3_GPIO48, 491 IMX_F0_GPIO49, 492 IMX_F1_GPIO49, 493 IMX_F2_GPIO49, 494 IMX_F3_GPIO49, 495 IMX_F0_GPIO50, 496 IMX_F1_GPIO50, 497 IMX_F2_GPIO50, 498 IMX_F3_GPIO50, 499 IMX_F0_GPIO51, 500 IMX_F1_GPIO51, 501 IMX_F2_GPIO51, 502 IMX_F3_GPIO51, 503 IMX_F0_GPIO52, 504 IMX_F1_GPIO52, 505 IMX_F2_GPIO52, 506 IMX_F3_GPIO52, 507 IMX_F0_GPIO53, 508 IMX_F1_GPIO53, 509 IMX_F2_GPIO53, 510 IMX_F3_GPIO53, 511 IMX_F0_GPIO54, 512 IMX_F1_GPIO54, 513 IMX_F2_GPIO54, 514 IMX_F3_GPIO54, 515 IMX_F0_GPIO55, 516 IMX_F1_GPIO55, 517 IMX_F2_GPIO55, 518 IMX_F3_GPIO55, 519 IMX_F0_GPIO56, 520 IMX_F1_GPIO56, 521 IMX_F2_GPIO56, 522 IMX_F3_GPIO56, 523 IMX_F0_GPIO57, 524 IMX_F1_GPIO57, 525 IMX_F2_GPIO57, 526 IMX_F3_GPIO57, 527 IMX_F0_GPIO58, 528 IMX_F1_GPIO58, 529 IMX_F2_GPIO58, 530 IMX_F3_GPIO58, 531 IMX_F0_GPIO59, 532 IMX_F1_GPIO59, 533 IMX_F2_GPIO59, 534 IMX_F3_GPIO59, 535 IMX_F0_GPIO60, 536 IMX_F1_GPIO60, 537 IMX_F2_GPIO60, 538 IMX_F3_GPIO60, 539 IMX_F0_GPIO61, 540 IMX_F1_GPIO61, 541 IMX_F2_GPIO61, 542 IMX_F3_GPIO61, 543 IMX_F0_GPIO62, 544 IMX_F1_GPIO62, 545 IMX_F2_GPIO62, 546 IMX_F3_GPIO62, 547 IMX_F0_GPIO64, 548 IMX_F1_GPIO64, 549 IMX_F2_GPIO64, 550 IMX_F3_GPIO64, 551 IMX_F0_GPIO65, 552 IMX_F1_GPIO65, 553 IMX_F2_GPIO65, 554 IMX_F3_GPIO65, 555 IMX_F0_GPIO66, 556 IMX_F1_GPIO66, 557 IMX_F2_GPIO66, 558 IMX_F3_GPIO66, 559 IMX_F0_GPIO67, 560 IMX_F1_GPIO67, 561 IMX_F2_GPIO67, 562 IMX_F3_GPIO67, 563 IMX_F0_GPIO68, 564 IMX_F1_GPIO68, 565 IMX_F2_GPIO68, 566 IMX_F3_GPIO68, 567 IMX_F0_GPIO69, 568 IMX_F1_GPIO69, 569 IMX_F2_GPIO69, 570 IMX_F3_GPIO69, 571 IMX_F0_GPIO70, 572 IMX_F1_GPIO70, 573 IMX_F2_GPIO70, 574 IMX_F3_GPIO70, 575 IMX_F0_GPIO71, 576 IMX_F1_GPIO71, 577 IMX_F2_GPIO71, 578 IMX_F3_GPIO71, 579 IMX_F0_GPIO72, 580 IMX_F1_GPIO72, 581 IMX_F2_GPIO72, 582 IMX_F3_GPIO72, 583 IMX_F0_GPIO73, 584 IMX_F1_GPIO73, 585 IMX_F2_GPIO73, 586 IMX_F3_GPIO73, 587 IMX_F0_GPIO74, 588 IMX_F1_GPIO74, 589 IMX_F2_GPIO74, 590 IMX_F3_GPIO74, 591 IMX_F0_GPIO75, 592 IMX_F1_GPIO75, 593 IMX_F2_GPIO75, 594 IMX_F3_GPIO75, 595 IMX_F0_GPIO76, 596 IMX_F1_GPIO76, 597 IMX_F2_GPIO76, 598 IMX_F3_GPIO76, 599 IMX_F0_GPIO77, 600 IMX_F1_GPIO77, 601 IMX_F2_GPIO77, 602 IMX_F3_GPIO77, 603 IMX_F0_GPIO78, 604 IMX_F1_GPIO78, 605 IMX_F2_GPIO78, 606 IMX_F3_GPIO78, 607 IMX_F0_GPIO79, 608 IMX_F1_GPIO79, 609 IMX_F2_GPIO79, 610 IMX_F3_GPIO79, 611 IMX_F0_GPIO80, 612 IMX_F1_GPIO80, 613 IMX_F2_GPIO80, 614 IMX_F3_GPIO80, 615 IMX_F0_GPIO81, 616 IMX_F1_GPIO81, 617 IMX_F2_GPIO81, 618 IMX_F3_GPIO81, 619 IMX_F0_GPIO82, 620 IMX_F1_GPIO82, 621 IMX_F2_GPIO82, 622 IMX_F3_GPIO82, 623 IMX_F0_GPIO83, 624 IMX_F1_GPIO83, 625 IMX_F2_GPIO83, 626 IMX_F3_GPIO83, 627 IMX_F0_GPIO84, 628 IMX_F1_GPIO84, 629 IMX_F2_GPIO84, 630 IMX_F3_GPIO84, 631 IMX_F0_GPIO85, 632 IMX_F1_GPIO85, 633 IMX_F2_GPIO85, 634 IMX_F3_GPIO85, 635 IMX_F0_GPIO86, 636 IMX_F1_GPIO86, 637 IMX_F2_GPIO86, 638 IMX_F3_GPIO86, 639 IMX_F0_GPIO87, 640 IMX_F1_GPIO87, 641 IMX_F2_GPIO87, 642 IMX_F3_GPIO87, 643 IMX_F0_GPIO88, 644 IMX_F1_GPIO88, 645 IMX_F2_GPIO88, 646 IMX_F3_GPIO88, 647 IMX_F0_GPIO89, 648 IMX_F1_GPIO89, 649 IMX_F2_GPIO89, 650 IMX_F3_GPIO89, 651 IMX_F0_GPIO90, 652 IMX_F1_GPIO90, 653 IMX_F2_GPIO90, 654 IMX_F3_GPIO90, 655 IMX_F0_GPIO91, 656 IMX_F1_GPIO91, 657 IMX_F2_GPIO91, 658 IMX_F3_GPIO91, 659 IMX_F0_GPIO92, 660 IMX_F1_GPIO92, 661 IMX_F2_GPIO92, 662 IMX_F3_GPIO92, 663 IMX_F0_GPIO93, 664 IMX_F1_GPIO93, 665 IMX_F2_GPIO93, 666 IMX_F3_GPIO93, 667 IMX_F0_GPIO94, 668 IMX_F1_GPIO94, 669 IMX_F2_GPIO94, 670 IMX_F3_GPIO94, 671 IMX_F0_GPIO95, 672 IMX_F1_GPIO95, 673 IMX_F2_GPIO95, 674 IMX_F3_GPIO95, 675 IMX_F0_GPIO96, 676 IMX_F1_GPIO96, 677 IMX_F2_GPIO96, 678 IMX_F3_GPIO96, 679 IMX_F0_GPIO97, 680 IMX_F1_GPIO97, 681 IMX_F2_GPIO97, 682 IMX_F3_GPIO97, 683 IMX_F0_GPIO98, 684 IMX_F1_GPIO98, 685 IMX_F2_GPIO98, 686 IMX_F3_GPIO98, 687 IMX_F0_GPIO99, 688 IMX_F1_GPIO99, 689 IMX_F2_GPIO99, 690 IMX_F3_GPIO99, 691 IMX_F0_GPIO100, 692 IMX_F1_GPIO100, 693 IMX_F2_GPIO100, 694 IMX_F3_GPIO100, 695 IMX_F0_GPIO101, 696 IMX_F1_GPIO101, 697 IMX_F2_GPIO101, 698 IMX_F3_GPIO101, 699 IMX_F0_GPIO102, 700 IMX_F1_GPIO102, 701 IMX_F2_GPIO102, 702 IMX_F3_GPIO102, 703 IMX_F0_GPIO103, 704 IMX_F1_GPIO103, 705 IMX_F2_GPIO103, 706 IMX_F3_GPIO103, 707 IMX_F0_GPIO104, 708 IMX_F1_GPIO104, 709 IMX_F2_GPIO104, 710 IMX_F3_GPIO104, 711 IMX_F0_GPIO105, 712 IMX_F1_GPIO105, 713 IMX_F2_GPIO105, 714 IMX_F3_GPIO105, 715 IMX_F0_GPIO106, 716 IMX_F1_GPIO106, 717 IMX_F2_GPIO106, 718 IMX_F3_GPIO106, 719 IMX_F0_GPIO107, 720 IMX_F1_GPIO107, 721 IMX_F2_GPIO107, 722 IMX_F3_GPIO107, 723 IMX_F0_GPIO108, 724 IMX_F1_GPIO108, 725 IMX_F2_GPIO108, 726 IMX_F3_GPIO108, 727 IMX_F0_GPIO109, 728 IMX_F1_GPIO109, 729 IMX_F2_GPIO109, 730 IMX_F3_GPIO109, 731 IMX_F0_GPIO110, 732 IMX_F1_GPIO110, 733 IMX_F2_GPIO110, 734 IMX_F3_GPIO110, 735 IMX_F0_GPIO111, 736 IMX_F1_GPIO111, 737 IMX_F2_GPIO111, 738 IMX_F3_GPIO111, 739 IMX_F0_GPIO112, 740 IMX_F1_GPIO112, 741 IMX_F2_GPIO112, 742 IMX_F3_GPIO112, 743 IMX_F0_GPIO113, 744 IMX_F1_GPIO113, 745 IMX_F2_GPIO113, 746 IMX_F3_GPIO113, 747 IMX_F0_GPIO114, 748 IMX_F1_GPIO114, 749 IMX_F2_GPIO114, 750 IMX_F3_GPIO114, 751 IMX_F0_GPIO115, 752 IMX_F1_GPIO115, 753 IMX_F2_GPIO115, 754 IMX_F3_GPIO115, 755 IMX_F0_GPIO116, 756 IMX_F1_GPIO116, 757 IMX_F2_GPIO116, 758 IMX_F3_GPIO116, 759 IMX_F0_GPIO117, 760 IMX_F1_GPIO117, 761 IMX_F2_GPIO117, 762 IMX_F3_GPIO117, 763 IMX_F0_GPIO118, 764 IMX_F1_GPIO118, 765 IMX_F2_GPIO118, 766 IMX_F3_GPIO118, 767 IMX_F0_GPIO119, 768 IMX_F1_GPIO119, 769 IMX_F2_GPIO119, 770 IMX_F3_GPIO119, 771 IMX_F0_GPIO120, 772 IMX_F1_GPIO120, 773 IMX_F2_GPIO120, 774 IMX_F3_GPIO120, 775 IMX_F0_GPIO121, 776 IMX_F1_GPIO121, 777 IMX_F2_GPIO121, 778 IMX_F3_GPIO121, 779 IMX_F0_GPIO122, 780 IMX_F1_GPIO122, 781 IMX_F2_GPIO122, 782 IMX_F3_GPIO122, 783 IMX_F0_GPIO123, 784 IMX_F1_GPIO123, 785 IMX_F2_GPIO123, 786 IMX_F3_GPIO123, 787 IMX_F0_GPIO124, 788 IMX_F1_GPIO124, 789 IMX_F2_GPIO124, 790 IMX_F3_GPIO124, 791 IMX_F0_GPIO125, 792 IMX_F1_GPIO125, 793 IMX_F2_GPIO125, 794 IMX_F3_GPIO125, 795 IMX_F0_GPIO126, 796 IMX_F1_GPIO126, 797 IMX_F2_GPIO126, 798 IMX_F3_GPIO126, 799 IMX_F0_GPIO127, 800 IMX_F1_GPIO127, 801 IMX_F2_GPIO127, 802 IMX_F3_GPIO127, 803 IMX_F0_GPIO128, 804 IMX_F1_GPIO128, 805 IMX_F2_GPIO128, 806 IMX_F3_GPIO128, 807 IMX_F0_GPIO129, 808 IMX_F1_GPIO129, 809 IMX_F2_GPIO129, 810 IMX_F3_GPIO129, 811 IMX_F0_GPIO130, 812 IMX_F1_GPIO130, 813 IMX_F2_GPIO130, 814 IMX_F3_GPIO130, 815 IMX_F0_GPIO131, 816 IMX_F1_GPIO131, 817 IMX_F2_GPIO131, 818 IMX_F3_GPIO131, 819 IMX_F0_GPIO132, 820 IMX_F1_GPIO132, 821 IMX_F2_GPIO132, 822 IMX_F3_GPIO132, 823 IMX_F0_GPIO133, 824 IMX_F1_GPIO133, 825 IMX_F2_GPIO133, 826 IMX_F3_GPIO133, 827 IMX_F0_GPIO134, 828 IMX_F1_GPIO134, 829 IMX_F2_GPIO134, 830 IMX_F3_GPIO134, 831 IMX_F0_GPIO135, 832 IMX_F1_GPIO135, 833 IMX_F2_GPIO135, 834 IMX_F3_GPIO135, 835 IMX_F0_GPIO136, 836 IMX_F1_GPIO136, 837 IMX_F2_GPIO136, 838 IMX_F3_GPIO136, 839 IMX_F0_GPIO137, 840 IMX_F1_GPIO137, 841 IMX_F2_GPIO137, 842 IMX_F3_GPIO137, 843 IMX_F0_GPIO138, 844 IMX_F1_GPIO138, 845 IMX_F2_GPIO138, 846 IMX_F3_GPIO138, 847 IMX_F0_GPIO139, 848 IMX_F1_GPIO139, 849 IMX_F2_GPIO139, 850 IMX_F3_GPIO139, 851 IMX_F0_GPIO140, 852 IMX_F1_GPIO140, 853 IMX_F2_GPIO140, 854 IMX_F3_GPIO140, 855 IMX_F0_GPIO141, 856 IMX_F1_GPIO141, 857 IMX_F2_GPIO141, 858 IMX_F3_GPIO141, 859 IMX_F0_GPIO142, 860 IMX_F1_GPIO142, 861 IMX_F2_GPIO142, 862 IMX_F3_GPIO142, 863 IMX_F0_GPIO143, 864 IMX_F1_GPIO143, 865 IMX_F2_GPIO143, 866 IMX_F3_GPIO143, 867 IMX_F0_GPIO144, 868 IMX_F1_GPIO144, 869 IMX_F2_GPIO144, 870 IMX_F3_GPIO144, 871 }; 872 873 #define AMD_PINCTRL_FUNC_GRP(_number, _func) \ 874 [IMX_F##_func##_GPIO##_number] = \ 875 PINCTRL_PINGROUP("IMX_F"#_func "_GPIO"#_number, AMD_PINS(_number), 1) 876 877 static const struct pingroup kerncz_groups[] = { 878 AMD_PINCTRL_FUNC_GRP(0, 0), 879 AMD_PINCTRL_FUNC_GRP(0, 1), 880 AMD_PINCTRL_FUNC_GRP(0, 2), 881 AMD_PINCTRL_FUNC_GRP(0, 3), 882 AMD_PINCTRL_FUNC_GRP(1, 0), 883 AMD_PINCTRL_FUNC_GRP(1, 1), 884 AMD_PINCTRL_FUNC_GRP(1, 2), 885 AMD_PINCTRL_FUNC_GRP(1, 3), 886 AMD_PINCTRL_FUNC_GRP(2, 0), 887 AMD_PINCTRL_FUNC_GRP(2, 1), 888 AMD_PINCTRL_FUNC_GRP(2, 2), 889 AMD_PINCTRL_FUNC_GRP(2, 3), 890 AMD_PINCTRL_FUNC_GRP(3, 0), 891 AMD_PINCTRL_FUNC_GRP(3, 1), 892 AMD_PINCTRL_FUNC_GRP(3, 2), 893 AMD_PINCTRL_FUNC_GRP(3, 3), 894 AMD_PINCTRL_FUNC_GRP(4, 0), 895 AMD_PINCTRL_FUNC_GRP(4, 1), 896 AMD_PINCTRL_FUNC_GRP(4, 2), 897 AMD_PINCTRL_FUNC_GRP(4, 3), 898 AMD_PINCTRL_FUNC_GRP(5, 0), 899 AMD_PINCTRL_FUNC_GRP(5, 1), 900 AMD_PINCTRL_FUNC_GRP(5, 2), 901 AMD_PINCTRL_FUNC_GRP(5, 3), 902 AMD_PINCTRL_FUNC_GRP(6, 0), 903 AMD_PINCTRL_FUNC_GRP(6, 1), 904 AMD_PINCTRL_FUNC_GRP(6, 2), 905 AMD_PINCTRL_FUNC_GRP(6, 3), 906 AMD_PINCTRL_FUNC_GRP(7, 0), 907 AMD_PINCTRL_FUNC_GRP(7, 1), 908 AMD_PINCTRL_FUNC_GRP(7, 2), 909 AMD_PINCTRL_FUNC_GRP(7, 3), 910 AMD_PINCTRL_FUNC_GRP(8, 0), 911 AMD_PINCTRL_FUNC_GRP(8, 1), 912 AMD_PINCTRL_FUNC_GRP(8, 2), 913 AMD_PINCTRL_FUNC_GRP(8, 3), 914 AMD_PINCTRL_FUNC_GRP(9, 0), 915 AMD_PINCTRL_FUNC_GRP(9, 1), 916 AMD_PINCTRL_FUNC_GRP(9, 2), 917 AMD_PINCTRL_FUNC_GRP(9, 3), 918 AMD_PINCTRL_FUNC_GRP(10, 0), 919 AMD_PINCTRL_FUNC_GRP(10, 1), 920 AMD_PINCTRL_FUNC_GRP(10, 2), 921 AMD_PINCTRL_FUNC_GRP(10, 3), 922 AMD_PINCTRL_FUNC_GRP(11, 0), 923 AMD_PINCTRL_FUNC_GRP(11, 1), 924 AMD_PINCTRL_FUNC_GRP(11, 2), 925 AMD_PINCTRL_FUNC_GRP(11, 3), 926 AMD_PINCTRL_FUNC_GRP(12, 0), 927 AMD_PINCTRL_FUNC_GRP(12, 1), 928 AMD_PINCTRL_FUNC_GRP(12, 2), 929 AMD_PINCTRL_FUNC_GRP(12, 3), 930 AMD_PINCTRL_FUNC_GRP(13, 0), 931 AMD_PINCTRL_FUNC_GRP(13, 1), 932 AMD_PINCTRL_FUNC_GRP(13, 2), 933 AMD_PINCTRL_FUNC_GRP(13, 3), 934 AMD_PINCTRL_FUNC_GRP(14, 0), 935 AMD_PINCTRL_FUNC_GRP(14, 1), 936 AMD_PINCTRL_FUNC_GRP(14, 2), 937 AMD_PINCTRL_FUNC_GRP(14, 3), 938 AMD_PINCTRL_FUNC_GRP(15, 0), 939 AMD_PINCTRL_FUNC_GRP(15, 1), 940 AMD_PINCTRL_FUNC_GRP(15, 2), 941 AMD_PINCTRL_FUNC_GRP(15, 3), 942 AMD_PINCTRL_FUNC_GRP(16, 0), 943 AMD_PINCTRL_FUNC_GRP(16, 1), 944 AMD_PINCTRL_FUNC_GRP(16, 2), 945 AMD_PINCTRL_FUNC_GRP(16, 3), 946 AMD_PINCTRL_FUNC_GRP(17, 0), 947 AMD_PINCTRL_FUNC_GRP(17, 1), 948 AMD_PINCTRL_FUNC_GRP(17, 2), 949 AMD_PINCTRL_FUNC_GRP(17, 3), 950 AMD_PINCTRL_FUNC_GRP(18, 0), 951 AMD_PINCTRL_FUNC_GRP(18, 1), 952 AMD_PINCTRL_FUNC_GRP(18, 2), 953 AMD_PINCTRL_FUNC_GRP(18, 3), 954 AMD_PINCTRL_FUNC_GRP(19, 0), 955 AMD_PINCTRL_FUNC_GRP(19, 1), 956 AMD_PINCTRL_FUNC_GRP(19, 2), 957 AMD_PINCTRL_FUNC_GRP(19, 3), 958 AMD_PINCTRL_FUNC_GRP(20, 0), 959 AMD_PINCTRL_FUNC_GRP(20, 1), 960 AMD_PINCTRL_FUNC_GRP(20, 2), 961 AMD_PINCTRL_FUNC_GRP(20, 3), 962 AMD_PINCTRL_FUNC_GRP(21, 0), 963 AMD_PINCTRL_FUNC_GRP(21, 1), 964 AMD_PINCTRL_FUNC_GRP(21, 2), 965 AMD_PINCTRL_FUNC_GRP(21, 3), 966 AMD_PINCTRL_FUNC_GRP(22, 0), 967 AMD_PINCTRL_FUNC_GRP(22, 1), 968 AMD_PINCTRL_FUNC_GRP(22, 2), 969 AMD_PINCTRL_FUNC_GRP(22, 3), 970 AMD_PINCTRL_FUNC_GRP(23, 0), 971 AMD_PINCTRL_FUNC_GRP(23, 1), 972 AMD_PINCTRL_FUNC_GRP(23, 2), 973 AMD_PINCTRL_FUNC_GRP(23, 3), 974 AMD_PINCTRL_FUNC_GRP(24, 0), 975 AMD_PINCTRL_FUNC_GRP(24, 1), 976 AMD_PINCTRL_FUNC_GRP(24, 2), 977 AMD_PINCTRL_FUNC_GRP(24, 3), 978 AMD_PINCTRL_FUNC_GRP(25, 0), 979 AMD_PINCTRL_FUNC_GRP(25, 1), 980 AMD_PINCTRL_FUNC_GRP(25, 2), 981 AMD_PINCTRL_FUNC_GRP(25, 3), 982 AMD_PINCTRL_FUNC_GRP(26, 0), 983 AMD_PINCTRL_FUNC_GRP(26, 1), 984 AMD_PINCTRL_FUNC_GRP(26, 2), 985 AMD_PINCTRL_FUNC_GRP(26, 3), 986 AMD_PINCTRL_FUNC_GRP(27, 0), 987 AMD_PINCTRL_FUNC_GRP(27, 1), 988 AMD_PINCTRL_FUNC_GRP(27, 2), 989 AMD_PINCTRL_FUNC_GRP(27, 3), 990 AMD_PINCTRL_FUNC_GRP(28, 0), 991 AMD_PINCTRL_FUNC_GRP(28, 1), 992 AMD_PINCTRL_FUNC_GRP(28, 2), 993 AMD_PINCTRL_FUNC_GRP(28, 3), 994 AMD_PINCTRL_FUNC_GRP(29, 0), 995 AMD_PINCTRL_FUNC_GRP(29, 1), 996 AMD_PINCTRL_FUNC_GRP(29, 2), 997 AMD_PINCTRL_FUNC_GRP(29, 3), 998 AMD_PINCTRL_FUNC_GRP(30, 0), 999 AMD_PINCTRL_FUNC_GRP(30, 1), 1000 AMD_PINCTRL_FUNC_GRP(30, 2), 1001 AMD_PINCTRL_FUNC_GRP(30, 3), 1002 AMD_PINCTRL_FUNC_GRP(31, 0), 1003 AMD_PINCTRL_FUNC_GRP(31, 1), 1004 AMD_PINCTRL_FUNC_GRP(31, 2), 1005 AMD_PINCTRL_FUNC_GRP(31, 3), 1006 AMD_PINCTRL_FUNC_GRP(32, 0), 1007 AMD_PINCTRL_FUNC_GRP(32, 1), 1008 AMD_PINCTRL_FUNC_GRP(32, 2), 1009 AMD_PINCTRL_FUNC_GRP(32, 3), 1010 AMD_PINCTRL_FUNC_GRP(33, 0), 1011 AMD_PINCTRL_FUNC_GRP(33, 1), 1012 AMD_PINCTRL_FUNC_GRP(33, 2), 1013 AMD_PINCTRL_FUNC_GRP(33, 3), 1014 AMD_PINCTRL_FUNC_GRP(34, 0), 1015 AMD_PINCTRL_FUNC_GRP(34, 1), 1016 AMD_PINCTRL_FUNC_GRP(34, 2), 1017 AMD_PINCTRL_FUNC_GRP(34, 3), 1018 AMD_PINCTRL_FUNC_GRP(35, 0), 1019 AMD_PINCTRL_FUNC_GRP(35, 1), 1020 AMD_PINCTRL_FUNC_GRP(35, 2), 1021 AMD_PINCTRL_FUNC_GRP(35, 3), 1022 AMD_PINCTRL_FUNC_GRP(36, 0), 1023 AMD_PINCTRL_FUNC_GRP(36, 1), 1024 AMD_PINCTRL_FUNC_GRP(36, 2), 1025 AMD_PINCTRL_FUNC_GRP(36, 3), 1026 AMD_PINCTRL_FUNC_GRP(37, 0), 1027 AMD_PINCTRL_FUNC_GRP(37, 1), 1028 AMD_PINCTRL_FUNC_GRP(37, 2), 1029 AMD_PINCTRL_FUNC_GRP(37, 3), 1030 AMD_PINCTRL_FUNC_GRP(38, 0), 1031 AMD_PINCTRL_FUNC_GRP(38, 1), 1032 AMD_PINCTRL_FUNC_GRP(38, 2), 1033 AMD_PINCTRL_FUNC_GRP(38, 3), 1034 AMD_PINCTRL_FUNC_GRP(39, 0), 1035 AMD_PINCTRL_FUNC_GRP(39, 1), 1036 AMD_PINCTRL_FUNC_GRP(39, 2), 1037 AMD_PINCTRL_FUNC_GRP(39, 3), 1038 AMD_PINCTRL_FUNC_GRP(40, 0), 1039 AMD_PINCTRL_FUNC_GRP(40, 1), 1040 AMD_PINCTRL_FUNC_GRP(40, 2), 1041 AMD_PINCTRL_FUNC_GRP(40, 3), 1042 AMD_PINCTRL_FUNC_GRP(41, 0), 1043 AMD_PINCTRL_FUNC_GRP(41, 1), 1044 AMD_PINCTRL_FUNC_GRP(41, 2), 1045 AMD_PINCTRL_FUNC_GRP(41, 3), 1046 AMD_PINCTRL_FUNC_GRP(42, 0), 1047 AMD_PINCTRL_FUNC_GRP(42, 1), 1048 AMD_PINCTRL_FUNC_GRP(42, 2), 1049 AMD_PINCTRL_FUNC_GRP(42, 3), 1050 AMD_PINCTRL_FUNC_GRP(43, 0), 1051 AMD_PINCTRL_FUNC_GRP(43, 1), 1052 AMD_PINCTRL_FUNC_GRP(43, 2), 1053 AMD_PINCTRL_FUNC_GRP(43, 3), 1054 AMD_PINCTRL_FUNC_GRP(44, 0), 1055 AMD_PINCTRL_FUNC_GRP(44, 1), 1056 AMD_PINCTRL_FUNC_GRP(44, 2), 1057 AMD_PINCTRL_FUNC_GRP(44, 3), 1058 AMD_PINCTRL_FUNC_GRP(45, 0), 1059 AMD_PINCTRL_FUNC_GRP(45, 1), 1060 AMD_PINCTRL_FUNC_GRP(45, 2), 1061 AMD_PINCTRL_FUNC_GRP(45, 3), 1062 AMD_PINCTRL_FUNC_GRP(46, 0), 1063 AMD_PINCTRL_FUNC_GRP(46, 1), 1064 AMD_PINCTRL_FUNC_GRP(46, 2), 1065 AMD_PINCTRL_FUNC_GRP(46, 3), 1066 AMD_PINCTRL_FUNC_GRP(47, 0), 1067 AMD_PINCTRL_FUNC_GRP(47, 1), 1068 AMD_PINCTRL_FUNC_GRP(47, 2), 1069 AMD_PINCTRL_FUNC_GRP(47, 3), 1070 AMD_PINCTRL_FUNC_GRP(48, 0), 1071 AMD_PINCTRL_FUNC_GRP(48, 1), 1072 AMD_PINCTRL_FUNC_GRP(48, 2), 1073 AMD_PINCTRL_FUNC_GRP(48, 3), 1074 AMD_PINCTRL_FUNC_GRP(49, 0), 1075 AMD_PINCTRL_FUNC_GRP(49, 1), 1076 AMD_PINCTRL_FUNC_GRP(49, 2), 1077 AMD_PINCTRL_FUNC_GRP(49, 3), 1078 AMD_PINCTRL_FUNC_GRP(50, 0), 1079 AMD_PINCTRL_FUNC_GRP(50, 1), 1080 AMD_PINCTRL_FUNC_GRP(50, 2), 1081 AMD_PINCTRL_FUNC_GRP(50, 3), 1082 AMD_PINCTRL_FUNC_GRP(51, 0), 1083 AMD_PINCTRL_FUNC_GRP(51, 1), 1084 AMD_PINCTRL_FUNC_GRP(51, 2), 1085 AMD_PINCTRL_FUNC_GRP(51, 3), 1086 AMD_PINCTRL_FUNC_GRP(52, 0), 1087 AMD_PINCTRL_FUNC_GRP(52, 1), 1088 AMD_PINCTRL_FUNC_GRP(52, 2), 1089 AMD_PINCTRL_FUNC_GRP(52, 3), 1090 AMD_PINCTRL_FUNC_GRP(53, 0), 1091 AMD_PINCTRL_FUNC_GRP(53, 1), 1092 AMD_PINCTRL_FUNC_GRP(53, 2), 1093 AMD_PINCTRL_FUNC_GRP(53, 3), 1094 AMD_PINCTRL_FUNC_GRP(54, 0), 1095 AMD_PINCTRL_FUNC_GRP(54, 1), 1096 AMD_PINCTRL_FUNC_GRP(54, 2), 1097 AMD_PINCTRL_FUNC_GRP(54, 3), 1098 AMD_PINCTRL_FUNC_GRP(55, 0), 1099 AMD_PINCTRL_FUNC_GRP(55, 1), 1100 AMD_PINCTRL_FUNC_GRP(55, 2), 1101 AMD_PINCTRL_FUNC_GRP(55, 3), 1102 AMD_PINCTRL_FUNC_GRP(56, 0), 1103 AMD_PINCTRL_FUNC_GRP(56, 1), 1104 AMD_PINCTRL_FUNC_GRP(56, 2), 1105 AMD_PINCTRL_FUNC_GRP(56, 3), 1106 AMD_PINCTRL_FUNC_GRP(57, 0), 1107 AMD_PINCTRL_FUNC_GRP(57, 1), 1108 AMD_PINCTRL_FUNC_GRP(57, 2), 1109 AMD_PINCTRL_FUNC_GRP(57, 3), 1110 AMD_PINCTRL_FUNC_GRP(58, 0), 1111 AMD_PINCTRL_FUNC_GRP(58, 1), 1112 AMD_PINCTRL_FUNC_GRP(58, 2), 1113 AMD_PINCTRL_FUNC_GRP(58, 3), 1114 AMD_PINCTRL_FUNC_GRP(59, 0), 1115 AMD_PINCTRL_FUNC_GRP(59, 1), 1116 AMD_PINCTRL_FUNC_GRP(59, 2), 1117 AMD_PINCTRL_FUNC_GRP(59, 3), 1118 AMD_PINCTRL_FUNC_GRP(60, 0), 1119 AMD_PINCTRL_FUNC_GRP(60, 1), 1120 AMD_PINCTRL_FUNC_GRP(60, 2), 1121 AMD_PINCTRL_FUNC_GRP(60, 3), 1122 AMD_PINCTRL_FUNC_GRP(61, 0), 1123 AMD_PINCTRL_FUNC_GRP(61, 1), 1124 AMD_PINCTRL_FUNC_GRP(61, 2), 1125 AMD_PINCTRL_FUNC_GRP(61, 3), 1126 AMD_PINCTRL_FUNC_GRP(62, 0), 1127 AMD_PINCTRL_FUNC_GRP(62, 1), 1128 AMD_PINCTRL_FUNC_GRP(62, 2), 1129 AMD_PINCTRL_FUNC_GRP(62, 3), 1130 AMD_PINCTRL_FUNC_GRP(64, 0), 1131 AMD_PINCTRL_FUNC_GRP(64, 1), 1132 AMD_PINCTRL_FUNC_GRP(64, 2), 1133 AMD_PINCTRL_FUNC_GRP(64, 3), 1134 AMD_PINCTRL_FUNC_GRP(65, 0), 1135 AMD_PINCTRL_FUNC_GRP(65, 1), 1136 AMD_PINCTRL_FUNC_GRP(65, 2), 1137 AMD_PINCTRL_FUNC_GRP(65, 3), 1138 AMD_PINCTRL_FUNC_GRP(66, 0), 1139 AMD_PINCTRL_FUNC_GRP(66, 1), 1140 AMD_PINCTRL_FUNC_GRP(66, 2), 1141 AMD_PINCTRL_FUNC_GRP(66, 3), 1142 AMD_PINCTRL_FUNC_GRP(67, 0), 1143 AMD_PINCTRL_FUNC_GRP(67, 1), 1144 AMD_PINCTRL_FUNC_GRP(67, 2), 1145 AMD_PINCTRL_FUNC_GRP(67, 3), 1146 AMD_PINCTRL_FUNC_GRP(68, 0), 1147 AMD_PINCTRL_FUNC_GRP(68, 1), 1148 AMD_PINCTRL_FUNC_GRP(68, 2), 1149 AMD_PINCTRL_FUNC_GRP(68, 3), 1150 AMD_PINCTRL_FUNC_GRP(69, 0), 1151 AMD_PINCTRL_FUNC_GRP(69, 1), 1152 AMD_PINCTRL_FUNC_GRP(69, 2), 1153 AMD_PINCTRL_FUNC_GRP(69, 3), 1154 AMD_PINCTRL_FUNC_GRP(70, 0), 1155 AMD_PINCTRL_FUNC_GRP(70, 1), 1156 AMD_PINCTRL_FUNC_GRP(70, 2), 1157 AMD_PINCTRL_FUNC_GRP(70, 3), 1158 AMD_PINCTRL_FUNC_GRP(71, 0), 1159 AMD_PINCTRL_FUNC_GRP(71, 1), 1160 AMD_PINCTRL_FUNC_GRP(71, 2), 1161 AMD_PINCTRL_FUNC_GRP(71, 3), 1162 AMD_PINCTRL_FUNC_GRP(72, 0), 1163 AMD_PINCTRL_FUNC_GRP(72, 1), 1164 AMD_PINCTRL_FUNC_GRP(72, 2), 1165 AMD_PINCTRL_FUNC_GRP(72, 3), 1166 AMD_PINCTRL_FUNC_GRP(73, 0), 1167 AMD_PINCTRL_FUNC_GRP(73, 1), 1168 AMD_PINCTRL_FUNC_GRP(73, 2), 1169 AMD_PINCTRL_FUNC_GRP(73, 3), 1170 AMD_PINCTRL_FUNC_GRP(74, 0), 1171 AMD_PINCTRL_FUNC_GRP(74, 1), 1172 AMD_PINCTRL_FUNC_GRP(74, 2), 1173 AMD_PINCTRL_FUNC_GRP(74, 3), 1174 AMD_PINCTRL_FUNC_GRP(75, 0), 1175 AMD_PINCTRL_FUNC_GRP(75, 1), 1176 AMD_PINCTRL_FUNC_GRP(75, 2), 1177 AMD_PINCTRL_FUNC_GRP(75, 3), 1178 AMD_PINCTRL_FUNC_GRP(76, 0), 1179 AMD_PINCTRL_FUNC_GRP(76, 1), 1180 AMD_PINCTRL_FUNC_GRP(76, 2), 1181 AMD_PINCTRL_FUNC_GRP(76, 3), 1182 AMD_PINCTRL_FUNC_GRP(77, 0), 1183 AMD_PINCTRL_FUNC_GRP(77, 1), 1184 AMD_PINCTRL_FUNC_GRP(77, 2), 1185 AMD_PINCTRL_FUNC_GRP(77, 3), 1186 AMD_PINCTRL_FUNC_GRP(78, 0), 1187 AMD_PINCTRL_FUNC_GRP(78, 1), 1188 AMD_PINCTRL_FUNC_GRP(78, 2), 1189 AMD_PINCTRL_FUNC_GRP(78, 3), 1190 AMD_PINCTRL_FUNC_GRP(79, 0), 1191 AMD_PINCTRL_FUNC_GRP(79, 1), 1192 AMD_PINCTRL_FUNC_GRP(79, 2), 1193 AMD_PINCTRL_FUNC_GRP(79, 3), 1194 AMD_PINCTRL_FUNC_GRP(80, 0), 1195 AMD_PINCTRL_FUNC_GRP(80, 1), 1196 AMD_PINCTRL_FUNC_GRP(80, 2), 1197 AMD_PINCTRL_FUNC_GRP(80, 3), 1198 AMD_PINCTRL_FUNC_GRP(81, 0), 1199 AMD_PINCTRL_FUNC_GRP(81, 1), 1200 AMD_PINCTRL_FUNC_GRP(81, 2), 1201 AMD_PINCTRL_FUNC_GRP(81, 3), 1202 AMD_PINCTRL_FUNC_GRP(82, 0), 1203 AMD_PINCTRL_FUNC_GRP(82, 1), 1204 AMD_PINCTRL_FUNC_GRP(82, 2), 1205 AMD_PINCTRL_FUNC_GRP(82, 3), 1206 AMD_PINCTRL_FUNC_GRP(83, 0), 1207 AMD_PINCTRL_FUNC_GRP(83, 1), 1208 AMD_PINCTRL_FUNC_GRP(83, 2), 1209 AMD_PINCTRL_FUNC_GRP(83, 3), 1210 AMD_PINCTRL_FUNC_GRP(84, 0), 1211 AMD_PINCTRL_FUNC_GRP(84, 1), 1212 AMD_PINCTRL_FUNC_GRP(84, 2), 1213 AMD_PINCTRL_FUNC_GRP(84, 3), 1214 AMD_PINCTRL_FUNC_GRP(85, 0), 1215 AMD_PINCTRL_FUNC_GRP(85, 1), 1216 AMD_PINCTRL_FUNC_GRP(85, 2), 1217 AMD_PINCTRL_FUNC_GRP(85, 3), 1218 AMD_PINCTRL_FUNC_GRP(86, 0), 1219 AMD_PINCTRL_FUNC_GRP(86, 1), 1220 AMD_PINCTRL_FUNC_GRP(86, 2), 1221 AMD_PINCTRL_FUNC_GRP(86, 3), 1222 AMD_PINCTRL_FUNC_GRP(87, 0), 1223 AMD_PINCTRL_FUNC_GRP(87, 1), 1224 AMD_PINCTRL_FUNC_GRP(87, 2), 1225 AMD_PINCTRL_FUNC_GRP(87, 3), 1226 AMD_PINCTRL_FUNC_GRP(88, 0), 1227 AMD_PINCTRL_FUNC_GRP(88, 1), 1228 AMD_PINCTRL_FUNC_GRP(88, 2), 1229 AMD_PINCTRL_FUNC_GRP(88, 3), 1230 AMD_PINCTRL_FUNC_GRP(89, 0), 1231 AMD_PINCTRL_FUNC_GRP(89, 1), 1232 AMD_PINCTRL_FUNC_GRP(89, 2), 1233 AMD_PINCTRL_FUNC_GRP(89, 3), 1234 AMD_PINCTRL_FUNC_GRP(90, 0), 1235 AMD_PINCTRL_FUNC_GRP(90, 1), 1236 AMD_PINCTRL_FUNC_GRP(90, 2), 1237 AMD_PINCTRL_FUNC_GRP(90, 3), 1238 AMD_PINCTRL_FUNC_GRP(91, 0), 1239 AMD_PINCTRL_FUNC_GRP(91, 1), 1240 AMD_PINCTRL_FUNC_GRP(91, 2), 1241 AMD_PINCTRL_FUNC_GRP(91, 3), 1242 AMD_PINCTRL_FUNC_GRP(92, 0), 1243 AMD_PINCTRL_FUNC_GRP(92, 1), 1244 AMD_PINCTRL_FUNC_GRP(92, 2), 1245 AMD_PINCTRL_FUNC_GRP(92, 3), 1246 AMD_PINCTRL_FUNC_GRP(93, 0), 1247 AMD_PINCTRL_FUNC_GRP(93, 1), 1248 AMD_PINCTRL_FUNC_GRP(93, 2), 1249 AMD_PINCTRL_FUNC_GRP(93, 3), 1250 AMD_PINCTRL_FUNC_GRP(94, 0), 1251 AMD_PINCTRL_FUNC_GRP(94, 1), 1252 AMD_PINCTRL_FUNC_GRP(94, 2), 1253 AMD_PINCTRL_FUNC_GRP(94, 3), 1254 AMD_PINCTRL_FUNC_GRP(95, 0), 1255 AMD_PINCTRL_FUNC_GRP(95, 1), 1256 AMD_PINCTRL_FUNC_GRP(95, 2), 1257 AMD_PINCTRL_FUNC_GRP(95, 3), 1258 AMD_PINCTRL_FUNC_GRP(96, 0), 1259 AMD_PINCTRL_FUNC_GRP(96, 1), 1260 AMD_PINCTRL_FUNC_GRP(96, 2), 1261 AMD_PINCTRL_FUNC_GRP(96, 3), 1262 AMD_PINCTRL_FUNC_GRP(97, 0), 1263 AMD_PINCTRL_FUNC_GRP(97, 1), 1264 AMD_PINCTRL_FUNC_GRP(97, 2), 1265 AMD_PINCTRL_FUNC_GRP(97, 3), 1266 AMD_PINCTRL_FUNC_GRP(98, 0), 1267 AMD_PINCTRL_FUNC_GRP(98, 1), 1268 AMD_PINCTRL_FUNC_GRP(98, 2), 1269 AMD_PINCTRL_FUNC_GRP(98, 3), 1270 AMD_PINCTRL_FUNC_GRP(99, 0), 1271 AMD_PINCTRL_FUNC_GRP(99, 1), 1272 AMD_PINCTRL_FUNC_GRP(99, 2), 1273 AMD_PINCTRL_FUNC_GRP(99, 3), 1274 AMD_PINCTRL_FUNC_GRP(100, 0), 1275 AMD_PINCTRL_FUNC_GRP(100, 1), 1276 AMD_PINCTRL_FUNC_GRP(100, 2), 1277 AMD_PINCTRL_FUNC_GRP(100, 3), 1278 AMD_PINCTRL_FUNC_GRP(101, 0), 1279 AMD_PINCTRL_FUNC_GRP(101, 1), 1280 AMD_PINCTRL_FUNC_GRP(101, 2), 1281 AMD_PINCTRL_FUNC_GRP(101, 3), 1282 AMD_PINCTRL_FUNC_GRP(102, 0), 1283 AMD_PINCTRL_FUNC_GRP(102, 1), 1284 AMD_PINCTRL_FUNC_GRP(102, 2), 1285 AMD_PINCTRL_FUNC_GRP(102, 3), 1286 AMD_PINCTRL_FUNC_GRP(103, 0), 1287 AMD_PINCTRL_FUNC_GRP(103, 1), 1288 AMD_PINCTRL_FUNC_GRP(103, 2), 1289 AMD_PINCTRL_FUNC_GRP(103, 3), 1290 AMD_PINCTRL_FUNC_GRP(104, 0), 1291 AMD_PINCTRL_FUNC_GRP(104, 1), 1292 AMD_PINCTRL_FUNC_GRP(104, 2), 1293 AMD_PINCTRL_FUNC_GRP(104, 3), 1294 AMD_PINCTRL_FUNC_GRP(105, 0), 1295 AMD_PINCTRL_FUNC_GRP(105, 1), 1296 AMD_PINCTRL_FUNC_GRP(105, 2), 1297 AMD_PINCTRL_FUNC_GRP(105, 3), 1298 AMD_PINCTRL_FUNC_GRP(106, 0), 1299 AMD_PINCTRL_FUNC_GRP(106, 1), 1300 AMD_PINCTRL_FUNC_GRP(106, 2), 1301 AMD_PINCTRL_FUNC_GRP(106, 3), 1302 AMD_PINCTRL_FUNC_GRP(107, 0), 1303 AMD_PINCTRL_FUNC_GRP(107, 1), 1304 AMD_PINCTRL_FUNC_GRP(107, 2), 1305 AMD_PINCTRL_FUNC_GRP(107, 3), 1306 AMD_PINCTRL_FUNC_GRP(108, 0), 1307 AMD_PINCTRL_FUNC_GRP(108, 1), 1308 AMD_PINCTRL_FUNC_GRP(108, 2), 1309 AMD_PINCTRL_FUNC_GRP(108, 3), 1310 AMD_PINCTRL_FUNC_GRP(109, 0), 1311 AMD_PINCTRL_FUNC_GRP(109, 1), 1312 AMD_PINCTRL_FUNC_GRP(109, 2), 1313 AMD_PINCTRL_FUNC_GRP(109, 3), 1314 AMD_PINCTRL_FUNC_GRP(110, 0), 1315 AMD_PINCTRL_FUNC_GRP(110, 1), 1316 AMD_PINCTRL_FUNC_GRP(110, 2), 1317 AMD_PINCTRL_FUNC_GRP(110, 3), 1318 AMD_PINCTRL_FUNC_GRP(111, 0), 1319 AMD_PINCTRL_FUNC_GRP(111, 1), 1320 AMD_PINCTRL_FUNC_GRP(111, 2), 1321 AMD_PINCTRL_FUNC_GRP(111, 3), 1322 AMD_PINCTRL_FUNC_GRP(112, 0), 1323 AMD_PINCTRL_FUNC_GRP(112, 1), 1324 AMD_PINCTRL_FUNC_GRP(112, 2), 1325 AMD_PINCTRL_FUNC_GRP(112, 3), 1326 AMD_PINCTRL_FUNC_GRP(113, 0), 1327 AMD_PINCTRL_FUNC_GRP(113, 1), 1328 AMD_PINCTRL_FUNC_GRP(113, 2), 1329 AMD_PINCTRL_FUNC_GRP(113, 3), 1330 AMD_PINCTRL_FUNC_GRP(114, 0), 1331 AMD_PINCTRL_FUNC_GRP(114, 1), 1332 AMD_PINCTRL_FUNC_GRP(114, 2), 1333 AMD_PINCTRL_FUNC_GRP(114, 3), 1334 AMD_PINCTRL_FUNC_GRP(115, 0), 1335 AMD_PINCTRL_FUNC_GRP(115, 1), 1336 AMD_PINCTRL_FUNC_GRP(115, 2), 1337 AMD_PINCTRL_FUNC_GRP(115, 3), 1338 AMD_PINCTRL_FUNC_GRP(116, 0), 1339 AMD_PINCTRL_FUNC_GRP(116, 1), 1340 AMD_PINCTRL_FUNC_GRP(116, 2), 1341 AMD_PINCTRL_FUNC_GRP(116, 3), 1342 AMD_PINCTRL_FUNC_GRP(117, 0), 1343 AMD_PINCTRL_FUNC_GRP(117, 1), 1344 AMD_PINCTRL_FUNC_GRP(117, 2), 1345 AMD_PINCTRL_FUNC_GRP(117, 3), 1346 AMD_PINCTRL_FUNC_GRP(118, 0), 1347 AMD_PINCTRL_FUNC_GRP(118, 1), 1348 AMD_PINCTRL_FUNC_GRP(118, 2), 1349 AMD_PINCTRL_FUNC_GRP(118, 3), 1350 AMD_PINCTRL_FUNC_GRP(119, 0), 1351 AMD_PINCTRL_FUNC_GRP(119, 1), 1352 AMD_PINCTRL_FUNC_GRP(119, 2), 1353 AMD_PINCTRL_FUNC_GRP(119, 3), 1354 AMD_PINCTRL_FUNC_GRP(120, 0), 1355 AMD_PINCTRL_FUNC_GRP(120, 1), 1356 AMD_PINCTRL_FUNC_GRP(120, 2), 1357 AMD_PINCTRL_FUNC_GRP(120, 3), 1358 AMD_PINCTRL_FUNC_GRP(121, 0), 1359 AMD_PINCTRL_FUNC_GRP(121, 1), 1360 AMD_PINCTRL_FUNC_GRP(121, 2), 1361 AMD_PINCTRL_FUNC_GRP(121, 3), 1362 AMD_PINCTRL_FUNC_GRP(122, 0), 1363 AMD_PINCTRL_FUNC_GRP(122, 1), 1364 AMD_PINCTRL_FUNC_GRP(122, 2), 1365 AMD_PINCTRL_FUNC_GRP(122, 3), 1366 AMD_PINCTRL_FUNC_GRP(123, 0), 1367 AMD_PINCTRL_FUNC_GRP(123, 1), 1368 AMD_PINCTRL_FUNC_GRP(123, 2), 1369 AMD_PINCTRL_FUNC_GRP(123, 3), 1370 AMD_PINCTRL_FUNC_GRP(124, 0), 1371 AMD_PINCTRL_FUNC_GRP(124, 1), 1372 AMD_PINCTRL_FUNC_GRP(124, 2), 1373 AMD_PINCTRL_FUNC_GRP(124, 3), 1374 AMD_PINCTRL_FUNC_GRP(125, 0), 1375 AMD_PINCTRL_FUNC_GRP(125, 1), 1376 AMD_PINCTRL_FUNC_GRP(125, 2), 1377 AMD_PINCTRL_FUNC_GRP(125, 3), 1378 AMD_PINCTRL_FUNC_GRP(126, 0), 1379 AMD_PINCTRL_FUNC_GRP(126, 1), 1380 AMD_PINCTRL_FUNC_GRP(126, 2), 1381 AMD_PINCTRL_FUNC_GRP(126, 3), 1382 AMD_PINCTRL_FUNC_GRP(127, 0), 1383 AMD_PINCTRL_FUNC_GRP(127, 1), 1384 AMD_PINCTRL_FUNC_GRP(127, 2), 1385 AMD_PINCTRL_FUNC_GRP(127, 3), 1386 AMD_PINCTRL_FUNC_GRP(128, 0), 1387 AMD_PINCTRL_FUNC_GRP(128, 1), 1388 AMD_PINCTRL_FUNC_GRP(128, 2), 1389 AMD_PINCTRL_FUNC_GRP(128, 3), 1390 AMD_PINCTRL_FUNC_GRP(129, 0), 1391 AMD_PINCTRL_FUNC_GRP(129, 1), 1392 AMD_PINCTRL_FUNC_GRP(129, 2), 1393 AMD_PINCTRL_FUNC_GRP(129, 3), 1394 AMD_PINCTRL_FUNC_GRP(130, 0), 1395 AMD_PINCTRL_FUNC_GRP(130, 1), 1396 AMD_PINCTRL_FUNC_GRP(130, 2), 1397 AMD_PINCTRL_FUNC_GRP(130, 3), 1398 AMD_PINCTRL_FUNC_GRP(131, 0), 1399 AMD_PINCTRL_FUNC_GRP(131, 1), 1400 AMD_PINCTRL_FUNC_GRP(131, 2), 1401 AMD_PINCTRL_FUNC_GRP(131, 3), 1402 AMD_PINCTRL_FUNC_GRP(132, 0), 1403 AMD_PINCTRL_FUNC_GRP(132, 1), 1404 AMD_PINCTRL_FUNC_GRP(132, 2), 1405 AMD_PINCTRL_FUNC_GRP(132, 3), 1406 AMD_PINCTRL_FUNC_GRP(133, 0), 1407 AMD_PINCTRL_FUNC_GRP(133, 1), 1408 AMD_PINCTRL_FUNC_GRP(133, 2), 1409 AMD_PINCTRL_FUNC_GRP(133, 3), 1410 AMD_PINCTRL_FUNC_GRP(134, 0), 1411 AMD_PINCTRL_FUNC_GRP(134, 1), 1412 AMD_PINCTRL_FUNC_GRP(134, 2), 1413 AMD_PINCTRL_FUNC_GRP(134, 3), 1414 AMD_PINCTRL_FUNC_GRP(135, 0), 1415 AMD_PINCTRL_FUNC_GRP(135, 1), 1416 AMD_PINCTRL_FUNC_GRP(135, 2), 1417 AMD_PINCTRL_FUNC_GRP(135, 3), 1418 AMD_PINCTRL_FUNC_GRP(136, 0), 1419 AMD_PINCTRL_FUNC_GRP(136, 1), 1420 AMD_PINCTRL_FUNC_GRP(136, 2), 1421 AMD_PINCTRL_FUNC_GRP(136, 3), 1422 AMD_PINCTRL_FUNC_GRP(137, 0), 1423 AMD_PINCTRL_FUNC_GRP(137, 1), 1424 AMD_PINCTRL_FUNC_GRP(137, 2), 1425 AMD_PINCTRL_FUNC_GRP(137, 3), 1426 AMD_PINCTRL_FUNC_GRP(138, 0), 1427 AMD_PINCTRL_FUNC_GRP(138, 1), 1428 AMD_PINCTRL_FUNC_GRP(138, 2), 1429 AMD_PINCTRL_FUNC_GRP(138, 3), 1430 AMD_PINCTRL_FUNC_GRP(139, 0), 1431 AMD_PINCTRL_FUNC_GRP(139, 1), 1432 AMD_PINCTRL_FUNC_GRP(139, 2), 1433 AMD_PINCTRL_FUNC_GRP(139, 3), 1434 AMD_PINCTRL_FUNC_GRP(140, 0), 1435 AMD_PINCTRL_FUNC_GRP(140, 1), 1436 AMD_PINCTRL_FUNC_GRP(140, 2), 1437 AMD_PINCTRL_FUNC_GRP(140, 3), 1438 AMD_PINCTRL_FUNC_GRP(141, 0), 1439 AMD_PINCTRL_FUNC_GRP(141, 1), 1440 AMD_PINCTRL_FUNC_GRP(141, 2), 1441 AMD_PINCTRL_FUNC_GRP(141, 3), 1442 AMD_PINCTRL_FUNC_GRP(142, 0), 1443 AMD_PINCTRL_FUNC_GRP(142, 1), 1444 AMD_PINCTRL_FUNC_GRP(142, 2), 1445 AMD_PINCTRL_FUNC_GRP(142, 3), 1446 AMD_PINCTRL_FUNC_GRP(143, 0), 1447 AMD_PINCTRL_FUNC_GRP(143, 1), 1448 AMD_PINCTRL_FUNC_GRP(143, 2), 1449 AMD_PINCTRL_FUNC_GRP(143, 3), 1450 AMD_PINCTRL_FUNC_GRP(144, 0), 1451 AMD_PINCTRL_FUNC_GRP(144, 1), 1452 AMD_PINCTRL_FUNC_GRP(144, 2), 1453 AMD_PINCTRL_FUNC_GRP(144, 3), 1454 1455 PINCTRL_PINGROUP("i2c0", AMD_PINS(145, 146), 2), 1456 PINCTRL_PINGROUP("i2c1", AMD_PINS(147, 148), 2), 1457 PINCTRL_PINGROUP("i2c2", AMD_PINS(113, 114), 2), 1458 PINCTRL_PINGROUP("i2c3", AMD_PINS(19, 20), 2), 1459 PINCTRL_PINGROUP("uart0", AMD_PINS(135, 136, 137, 138, 139), 5), 1460 PINCTRL_PINGROUP("uart1", AMD_PINS(140, 141, 142, 143, 144), 5), 1461 }; 1462 1463 #define AMD_PMUX_FUNC(_number) { \ 1464 .name = "iomux_gpio_"#_number, \ 1465 .groups = { \ 1466 "IMX_F0_GPIO"#_number, "IMX_F1_GPIO"#_number, \ 1467 "IMX_F2_GPIO"#_number, "IMX_F3_GPIO"#_number, \ 1468 }, \ 1469 .index = _number, \ 1470 .ngroups = NSELECTS, \ 1471 } 1472 1473 static const struct amd_function pmx_functions[] = { 1474 AMD_PMUX_FUNC(0), 1475 AMD_PMUX_FUNC(1), 1476 AMD_PMUX_FUNC(2), 1477 AMD_PMUX_FUNC(3), 1478 AMD_PMUX_FUNC(4), 1479 AMD_PMUX_FUNC(5), 1480 AMD_PMUX_FUNC(6), 1481 AMD_PMUX_FUNC(7), 1482 AMD_PMUX_FUNC(8), 1483 AMD_PMUX_FUNC(9), 1484 AMD_PMUX_FUNC(10), 1485 AMD_PMUX_FUNC(11), 1486 AMD_PMUX_FUNC(12), 1487 AMD_PMUX_FUNC(13), 1488 AMD_PMUX_FUNC(14), 1489 AMD_PMUX_FUNC(15), 1490 AMD_PMUX_FUNC(16), 1491 AMD_PMUX_FUNC(17), 1492 AMD_PMUX_FUNC(18), 1493 AMD_PMUX_FUNC(19), 1494 AMD_PMUX_FUNC(20), 1495 AMD_PMUX_FUNC(21), 1496 AMD_PMUX_FUNC(22), 1497 AMD_PMUX_FUNC(23), 1498 AMD_PMUX_FUNC(24), 1499 AMD_PMUX_FUNC(25), 1500 AMD_PMUX_FUNC(26), 1501 AMD_PMUX_FUNC(27), 1502 AMD_PMUX_FUNC(28), 1503 AMD_PMUX_FUNC(29), 1504 AMD_PMUX_FUNC(30), 1505 AMD_PMUX_FUNC(31), 1506 AMD_PMUX_FUNC(32), 1507 AMD_PMUX_FUNC(33), 1508 AMD_PMUX_FUNC(34), 1509 AMD_PMUX_FUNC(35), 1510 AMD_PMUX_FUNC(36), 1511 AMD_PMUX_FUNC(37), 1512 AMD_PMUX_FUNC(38), 1513 AMD_PMUX_FUNC(39), 1514 AMD_PMUX_FUNC(40), 1515 AMD_PMUX_FUNC(41), 1516 AMD_PMUX_FUNC(42), 1517 AMD_PMUX_FUNC(43), 1518 AMD_PMUX_FUNC(44), 1519 AMD_PMUX_FUNC(45), 1520 AMD_PMUX_FUNC(46), 1521 AMD_PMUX_FUNC(47), 1522 AMD_PMUX_FUNC(48), 1523 AMD_PMUX_FUNC(49), 1524 AMD_PMUX_FUNC(50), 1525 AMD_PMUX_FUNC(51), 1526 AMD_PMUX_FUNC(52), 1527 AMD_PMUX_FUNC(53), 1528 AMD_PMUX_FUNC(54), 1529 AMD_PMUX_FUNC(55), 1530 AMD_PMUX_FUNC(56), 1531 AMD_PMUX_FUNC(57), 1532 AMD_PMUX_FUNC(58), 1533 AMD_PMUX_FUNC(59), 1534 AMD_PMUX_FUNC(60), 1535 AMD_PMUX_FUNC(61), 1536 AMD_PMUX_FUNC(62), 1537 AMD_PMUX_FUNC(64), 1538 AMD_PMUX_FUNC(65), 1539 AMD_PMUX_FUNC(66), 1540 AMD_PMUX_FUNC(67), 1541 AMD_PMUX_FUNC(68), 1542 AMD_PMUX_FUNC(69), 1543 AMD_PMUX_FUNC(70), 1544 AMD_PMUX_FUNC(71), 1545 AMD_PMUX_FUNC(72), 1546 AMD_PMUX_FUNC(73), 1547 AMD_PMUX_FUNC(74), 1548 AMD_PMUX_FUNC(75), 1549 AMD_PMUX_FUNC(76), 1550 AMD_PMUX_FUNC(77), 1551 AMD_PMUX_FUNC(78), 1552 AMD_PMUX_FUNC(79), 1553 AMD_PMUX_FUNC(80), 1554 AMD_PMUX_FUNC(81), 1555 AMD_PMUX_FUNC(82), 1556 AMD_PMUX_FUNC(83), 1557 AMD_PMUX_FUNC(84), 1558 AMD_PMUX_FUNC(85), 1559 AMD_PMUX_FUNC(86), 1560 AMD_PMUX_FUNC(87), 1561 AMD_PMUX_FUNC(88), 1562 AMD_PMUX_FUNC(89), 1563 AMD_PMUX_FUNC(90), 1564 AMD_PMUX_FUNC(91), 1565 AMD_PMUX_FUNC(92), 1566 AMD_PMUX_FUNC(93), 1567 AMD_PMUX_FUNC(94), 1568 AMD_PMUX_FUNC(95), 1569 AMD_PMUX_FUNC(96), 1570 AMD_PMUX_FUNC(97), 1571 AMD_PMUX_FUNC(98), 1572 AMD_PMUX_FUNC(99), 1573 AMD_PMUX_FUNC(100), 1574 AMD_PMUX_FUNC(101), 1575 AMD_PMUX_FUNC(102), 1576 AMD_PMUX_FUNC(103), 1577 AMD_PMUX_FUNC(104), 1578 AMD_PMUX_FUNC(105), 1579 AMD_PMUX_FUNC(106), 1580 AMD_PMUX_FUNC(107), 1581 AMD_PMUX_FUNC(108), 1582 AMD_PMUX_FUNC(109), 1583 AMD_PMUX_FUNC(110), 1584 AMD_PMUX_FUNC(111), 1585 AMD_PMUX_FUNC(112), 1586 AMD_PMUX_FUNC(113), 1587 AMD_PMUX_FUNC(114), 1588 AMD_PMUX_FUNC(115), 1589 AMD_PMUX_FUNC(116), 1590 AMD_PMUX_FUNC(117), 1591 AMD_PMUX_FUNC(118), 1592 AMD_PMUX_FUNC(119), 1593 AMD_PMUX_FUNC(120), 1594 AMD_PMUX_FUNC(121), 1595 AMD_PMUX_FUNC(122), 1596 AMD_PMUX_FUNC(123), 1597 AMD_PMUX_FUNC(124), 1598 AMD_PMUX_FUNC(125), 1599 AMD_PMUX_FUNC(126), 1600 AMD_PMUX_FUNC(127), 1601 AMD_PMUX_FUNC(128), 1602 AMD_PMUX_FUNC(129), 1603 AMD_PMUX_FUNC(130), 1604 AMD_PMUX_FUNC(131), 1605 AMD_PMUX_FUNC(132), 1606 AMD_PMUX_FUNC(133), 1607 AMD_PMUX_FUNC(134), 1608 AMD_PMUX_FUNC(135), 1609 AMD_PMUX_FUNC(136), 1610 AMD_PMUX_FUNC(137), 1611 AMD_PMUX_FUNC(138), 1612 AMD_PMUX_FUNC(139), 1613 AMD_PMUX_FUNC(140), 1614 AMD_PMUX_FUNC(141), 1615 AMD_PMUX_FUNC(142), 1616 AMD_PMUX_FUNC(143), 1617 AMD_PMUX_FUNC(144), 1618 }; 1619 1620 #endif 1621