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