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