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