1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119 |
- /*
- * Copyright (c) 2018-2020, Arm Limited and Contributors. All rights reserved.
- * Copyright (c) 2022-2023, Advanced Micro Devices, Inc. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
- /*
- * ZynqMP system level PM-API functions for pin control.
- */
- #include <string.h>
- #include <arch_helpers.h>
- #include <plat/common/platform.h>
- #include "pm_api_pinctrl.h"
- #include "pm_client.h"
- #include "pm_common.h"
- #include "pm_ipi.h"
- #include "zynqmp_pm_api_sys.h"
- struct pinctrl_function {
- char name[FUNCTION_NAME_LEN];
- uint16_t group_base;
- uint8_t group_size;
- uint8_t regval;
- };
- /* Max groups for one pin */
- #define MAX_PIN_GROUPS (13U)
- struct zynqmp_pin_group {
- uint16_t (*groups)[];
- };
- static struct pinctrl_function pinctrl_functions[MAX_FUNCTION] = {
- [PINCTRL_FUNC_CAN0] = {
- .name = "can0",
- .regval = 0x20,
- .group_base = PINCTRL_GRP_CAN0_0,
- .group_size = PINCTRL_GRP_CAN0_18 - PINCTRL_GRP_CAN0_0 + 1U,
- },
- [PINCTRL_FUNC_CAN1] = {
- .name = "can1",
- .regval = 0x20,
- .group_base = PINCTRL_GRP_CAN1_0,
- .group_size = PINCTRL_GRP_CAN1_19 - PINCTRL_GRP_CAN1_0 + 1U,
- },
- [PINCTRL_FUNC_ETHERNET0] = {
- .name = "ethernet0",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_ETHERNET0_0,
- .group_size = PINCTRL_GRP_ETHERNET0_0 - PINCTRL_GRP_ETHERNET0_0 + 1U,
- },
- [PINCTRL_FUNC_ETHERNET1] = {
- .name = "ethernet1",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_ETHERNET1_0,
- .group_size = PINCTRL_GRP_ETHERNET1_0 - PINCTRL_GRP_ETHERNET1_0 + 1U,
- },
- [PINCTRL_FUNC_ETHERNET2] = {
- .name = "ethernet2",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_ETHERNET2_0,
- .group_size = PINCTRL_GRP_ETHERNET2_0 - PINCTRL_GRP_ETHERNET2_0 + 1U,
- },
- [PINCTRL_FUNC_ETHERNET3] = {
- .name = "ethernet3",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_ETHERNET3_0,
- .group_size = PINCTRL_GRP_ETHERNET3_0 - PINCTRL_GRP_ETHERNET3_0 + 1U,
- },
- [PINCTRL_FUNC_GEMTSU0] = {
- .name = "gemtsu0",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_GEMTSU0_0,
- .group_size = PINCTRL_GRP_GEMTSU0_2 - PINCTRL_GRP_GEMTSU0_0 + 1U,
- },
- [PINCTRL_FUNC_GPIO0] = {
- .name = "gpio0",
- .regval = 0x00,
- .group_base = PINCTRL_GRP_GPIO0_0,
- .group_size = PINCTRL_GRP_GPIO0_77 - PINCTRL_GRP_GPIO0_0 + 1U,
- },
- [PINCTRL_FUNC_I2C0] = {
- .name = "i2c0",
- .regval = 0x40,
- .group_base = PINCTRL_GRP_I2C0_0,
- .group_size = PINCTRL_GRP_I2C0_18 - PINCTRL_GRP_I2C0_0 + 1U,
- },
- [PINCTRL_FUNC_I2C1] = {
- .name = "i2c1",
- .regval = 0x40,
- .group_base = PINCTRL_GRP_I2C1_0,
- .group_size = PINCTRL_GRP_I2C1_19 - PINCTRL_GRP_I2C1_0 + 1U,
- },
- [PINCTRL_FUNC_MDIO0] = {
- .name = "mdio0",
- .regval = 0x60,
- .group_base = PINCTRL_GRP_MDIO0_0,
- .group_size = PINCTRL_GRP_MDIO0_0 - PINCTRL_GRP_MDIO0_0 + 1U,
- },
- [PINCTRL_FUNC_MDIO1] = {
- .name = "mdio1",
- .regval = 0x80,
- .group_base = PINCTRL_GRP_MDIO1_0,
- .group_size = PINCTRL_GRP_MDIO1_1 - PINCTRL_GRP_MDIO1_0 + 1U,
- },
- [PINCTRL_FUNC_MDIO2] = {
- .name = "mdio2",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_MDIO2_0,
- .group_size = PINCTRL_GRP_MDIO2_0 - PINCTRL_GRP_MDIO2_0 + 1U,
- },
- [PINCTRL_FUNC_MDIO3] = {
- .name = "mdio3",
- .regval = 0xc0,
- .group_base = PINCTRL_GRP_MDIO3_0,
- .group_size = PINCTRL_GRP_MDIO3_0 - PINCTRL_GRP_MDIO3_0 + 1U,
- },
- [PINCTRL_FUNC_QSPI0] = {
- .name = "qspi0",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_QSPI0_0,
- .group_size = PINCTRL_GRP_QSPI0_0 - PINCTRL_GRP_QSPI0_0 + 1U,
- },
- [PINCTRL_FUNC_QSPI_FBCLK] = {
- .name = "qspi_fbclk",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_QSPI_FBCLK,
- .group_size = PINCTRL_GRP_QSPI_FBCLK - PINCTRL_GRP_QSPI_FBCLK + 1U,
- },
- [PINCTRL_FUNC_QSPI_SS] = {
- .name = "qspi_ss",
- .regval = 0x02,
- .group_base = PINCTRL_GRP_QSPI_SS,
- .group_size = PINCTRL_GRP_QSPI_SS - PINCTRL_GRP_QSPI_SS + 1U,
- },
- [PINCTRL_FUNC_SPI0] = {
- .name = "spi0",
- .regval = 0x80,
- .group_base = PINCTRL_GRP_SPI0_0,
- .group_size = PINCTRL_GRP_SPI0_5 - PINCTRL_GRP_SPI0_0 + 1U,
- },
- [PINCTRL_FUNC_SPI1] = {
- .name = "spi1",
- .regval = 0x80,
- .group_base = PINCTRL_GRP_SPI1_0,
- .group_size = PINCTRL_GRP_SPI1_5 - PINCTRL_GRP_SPI1_0 + 1U,
- },
- [PINCTRL_FUNC_SPI0_SS] = {
- .name = "spi0_ss",
- .regval = 0x80,
- .group_base = PINCTRL_GRP_SPI0_0_SS0,
- .group_size = PINCTRL_GRP_SPI0_5_SS2 - PINCTRL_GRP_SPI0_0_SS0 + 1U,
- },
- [PINCTRL_FUNC_SPI1_SS] = {
- .name = "spi1_ss",
- .regval = 0x80,
- .group_base = PINCTRL_GRP_SPI1_0_SS0,
- .group_size = PINCTRL_GRP_SPI1_5_SS2 - PINCTRL_GRP_SPI1_0_SS0 + 1U,
- },
- [PINCTRL_FUNC_SDIO0] = {
- .name = "sdio0",
- .regval = 0x08,
- .group_base = PINCTRL_GRP_SDIO0_0,
- .group_size = PINCTRL_GRP_SDIO0_1BIT_2_7 - PINCTRL_GRP_SDIO0_0 + 1U,
- },
- [PINCTRL_FUNC_SDIO0_PC] = {
- .name = "sdio0_pc",
- .regval = 0x08,
- .group_base = PINCTRL_GRP_SDIO0_0_PC,
- .group_size = PINCTRL_GRP_SDIO0_2_PC - PINCTRL_GRP_SDIO0_0_PC + 1U,
- },
- [PINCTRL_FUNC_SDIO0_CD] = {
- .name = "sdio0_cd",
- .regval = 0x08,
- .group_base = PINCTRL_GRP_SDIO0_0_CD,
- .group_size = PINCTRL_GRP_SDIO0_2_CD - PINCTRL_GRP_SDIO0_0_CD + 1U,
- },
- [PINCTRL_FUNC_SDIO0_WP] = {
- .name = "sdio0_wp",
- .regval = 0x08,
- .group_base = PINCTRL_GRP_SDIO0_0_WP,
- .group_size = PINCTRL_GRP_SDIO0_2_WP - PINCTRL_GRP_SDIO0_0_WP + 1U,
- },
- [PINCTRL_FUNC_SDIO1] = {
- .name = "sdio1",
- .regval = 0x10,
- .group_base = PINCTRL_GRP_SDIO1_0,
- .group_size = PINCTRL_GRP_SDIO1_1BIT_1_3 - PINCTRL_GRP_SDIO1_0 + 1U,
- },
- [PINCTRL_FUNC_SDIO1_PC] = {
- .name = "sdio1_pc",
- .regval = 0x10,
- .group_base = PINCTRL_GRP_SDIO1_0_PC,
- .group_size = PINCTRL_GRP_SDIO1_1_PC - PINCTRL_GRP_SDIO1_0_PC + 1U,
- },
- [PINCTRL_FUNC_SDIO1_CD] = {
- .name = "sdio1_cd",
- .regval = 0x10,
- .group_base = PINCTRL_GRP_SDIO1_0_CD,
- .group_size = PINCTRL_GRP_SDIO1_1_CD - PINCTRL_GRP_SDIO1_0_CD + 1U,
- },
- [PINCTRL_FUNC_SDIO1_WP] = {
- .name = "sdio1_wp",
- .regval = 0x10,
- .group_base = PINCTRL_GRP_SDIO1_0_WP,
- .group_size = PINCTRL_GRP_SDIO1_1_WP - PINCTRL_GRP_SDIO1_0_WP + 1U,
- },
- [PINCTRL_FUNC_NAND0] = {
- .name = "nand0",
- .regval = 0x04,
- .group_base = PINCTRL_GRP_NAND0_0,
- .group_size = PINCTRL_GRP_NAND0_0 - PINCTRL_GRP_NAND0_0 + 1U,
- },
- [PINCTRL_FUNC_NAND0_CE] = {
- .name = "nand0_ce",
- .regval = 0x04,
- .group_base = PINCTRL_GRP_NAND0_0_CE,
- .group_size = PINCTRL_GRP_NAND0_1_CE - PINCTRL_GRP_NAND0_0_CE + 1U,
- },
- [PINCTRL_FUNC_NAND0_RB] = {
- .name = "nand0_rb",
- .regval = 0x04,
- .group_base = PINCTRL_GRP_NAND0_0_RB,
- .group_size = PINCTRL_GRP_NAND0_1_RB - PINCTRL_GRP_NAND0_0_RB + 1U,
- },
- [PINCTRL_FUNC_NAND0_DQS] = {
- .name = "nand0_dqs",
- .regval = 0x04,
- .group_base = PINCTRL_GRP_NAND0_0_DQS,
- .group_size = PINCTRL_GRP_NAND0_1_DQS - PINCTRL_GRP_NAND0_0_DQS + 1U,
- },
- [PINCTRL_FUNC_TTC0_CLK] = {
- .name = "ttc0_clk",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC0_0_CLK,
- .group_size = PINCTRL_GRP_TTC0_8_CLK - PINCTRL_GRP_TTC0_0_CLK + 1U,
- },
- [PINCTRL_FUNC_TTC0_WAV] = {
- .name = "ttc0_wav",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC0_0_WAV,
- .group_size = PINCTRL_GRP_TTC0_8_WAV - PINCTRL_GRP_TTC0_0_WAV + 1U,
- },
- [PINCTRL_FUNC_TTC1_CLK] = {
- .name = "ttc1_clk",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC1_0_CLK,
- .group_size = PINCTRL_GRP_TTC1_8_CLK - PINCTRL_GRP_TTC1_0_CLK + 1U,
- },
- [PINCTRL_FUNC_TTC1_WAV] = {
- .name = "ttc1_wav",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC1_0_WAV,
- .group_size = PINCTRL_GRP_TTC1_8_WAV - PINCTRL_GRP_TTC1_0_WAV + 1U,
- },
- [PINCTRL_FUNC_TTC2_CLK] = {
- .name = "ttc2_clk",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC2_0_CLK,
- .group_size = PINCTRL_GRP_TTC2_8_CLK - PINCTRL_GRP_TTC2_0_CLK + 1U,
- },
- [PINCTRL_FUNC_TTC2_WAV] = {
- .name = "ttc2_wav",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC2_0_WAV,
- .group_size = PINCTRL_GRP_TTC2_8_WAV - PINCTRL_GRP_TTC2_0_WAV + 1U,
- },
- [PINCTRL_FUNC_TTC3_CLK] = {
- .name = "ttc3_clk",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC3_0_CLK,
- .group_size = PINCTRL_GRP_TTC3_8_CLK - PINCTRL_GRP_TTC3_0_CLK + 1U,
- },
- [PINCTRL_FUNC_TTC3_WAV] = {
- .name = "ttc3_wav",
- .regval = 0xa0,
- .group_base = PINCTRL_GRP_TTC3_0_WAV,
- .group_size = PINCTRL_GRP_TTC3_8_WAV - PINCTRL_GRP_TTC3_0_WAV + 1U,
- },
- [PINCTRL_FUNC_UART0] = {
- .name = "uart0",
- .regval = 0xc0,
- .group_base = PINCTRL_GRP_UART0_0,
- .group_size = PINCTRL_GRP_UART0_18 - PINCTRL_GRP_UART0_0 + 1U,
- },
- [PINCTRL_FUNC_UART1] = {
- .name = "uart1",
- .regval = 0xc0,
- .group_base = PINCTRL_GRP_UART1_0,
- .group_size = PINCTRL_GRP_UART1_18 - PINCTRL_GRP_UART1_0 + 1U,
- },
- [PINCTRL_FUNC_USB0] = {
- .name = "usb0",
- .regval = 0x04,
- .group_base = PINCTRL_GRP_USB0_0,
- .group_size = PINCTRL_GRP_USB0_0 - PINCTRL_GRP_USB0_0 + 1U,
- },
- [PINCTRL_FUNC_USB1] = {
- .name = "usb1",
- .regval = 0x04,
- .group_base = PINCTRL_GRP_USB1_0,
- .group_size = PINCTRL_GRP_USB1_0 - PINCTRL_GRP_USB1_0 + 1U,
- },
- [PINCTRL_FUNC_SWDT0_CLK] = {
- .name = "swdt0_clk",
- .regval = 0x60,
- .group_base = PINCTRL_GRP_SWDT0_0_CLK,
- .group_size = PINCTRL_GRP_SWDT0_12_CLK - PINCTRL_GRP_SWDT0_0_CLK + 1U,
- },
- [PINCTRL_FUNC_SWDT0_RST] = {
- .name = "swdt0_rst",
- .regval = 0x60,
- .group_base = PINCTRL_GRP_SWDT0_0_RST,
- .group_size = PINCTRL_GRP_SWDT0_12_RST - PINCTRL_GRP_SWDT0_0_RST + 1U,
- },
- [PINCTRL_FUNC_SWDT1_CLK] = {
- .name = "swdt1_clk",
- .regval = 0x60,
- .group_base = PINCTRL_GRP_SWDT1_0_CLK,
- .group_size = PINCTRL_GRP_SWDT1_12_CLK - PINCTRL_GRP_SWDT1_0_CLK + 1U,
- },
- [PINCTRL_FUNC_SWDT1_RST] = {
- .name = "swdt1_rst",
- .regval = 0x60,
- .group_base = PINCTRL_GRP_SWDT1_0_RST,
- .group_size = PINCTRL_GRP_SWDT1_12_RST - PINCTRL_GRP_SWDT1_0_RST + 1U,
- },
- [PINCTRL_FUNC_PMU0] = {
- .name = "pmu0",
- .regval = 0x08,
- .group_base = PINCTRL_GRP_PMU0_0,
- .group_size = PINCTRL_GRP_PMU0_11 - PINCTRL_GRP_PMU0_0 + 1U,
- },
- [PINCTRL_FUNC_PCIE0] = {
- .name = "pcie0",
- .regval = 0x04,
- .group_base = PINCTRL_GRP_PCIE0_0,
- .group_size = PINCTRL_GRP_PCIE0_7 - PINCTRL_GRP_PCIE0_0 + 1U,
- },
- [PINCTRL_FUNC_CSU0] = {
- .name = "csu0",
- .regval = 0x18,
- .group_base = PINCTRL_GRP_CSU0_0,
- .group_size = PINCTRL_GRP_CSU0_11 - PINCTRL_GRP_CSU0_0 + 1U,
- },
- [PINCTRL_FUNC_DPAUX0] = {
- .name = "dpaux0",
- .regval = 0x18,
- .group_base = PINCTRL_GRP_DPAUX0_0,
- .group_size = PINCTRL_GRP_DPAUX0_3 - PINCTRL_GRP_DPAUX0_0 + 1U,
- },
- [PINCTRL_FUNC_PJTAG0] = {
- .name = "pjtag0",
- .regval = 0x60,
- .group_base = PINCTRL_GRP_PJTAG0_0,
- .group_size = PINCTRL_GRP_PJTAG0_5 - PINCTRL_GRP_PJTAG0_0 + 1U,
- },
- [PINCTRL_FUNC_TRACE0] = {
- .name = "trace0",
- .regval = 0xe0,
- .group_base = PINCTRL_GRP_TRACE0_0,
- .group_size = PINCTRL_GRP_TRACE0_2 - PINCTRL_GRP_TRACE0_0 + 1U,
- },
- [PINCTRL_FUNC_TRACE0_CLK] = {
- .name = "trace0_clk",
- .regval = 0xe0,
- .group_base = PINCTRL_GRP_TRACE0_0_CLK,
- .group_size = PINCTRL_GRP_TRACE0_2_CLK - PINCTRL_GRP_TRACE0_0_CLK + 1U,
- },
- [PINCTRL_FUNC_TESTSCAN0] = {
- .name = "testscan0",
- .regval = 0x10,
- .group_base = PINCTRL_GRP_TESTSCAN0_0,
- .group_size = PINCTRL_GRP_TESTSCAN0_0 - PINCTRL_GRP_TESTSCAN0_0 + 1U,
- },
- };
- static struct zynqmp_pin_group zynqmp_pin_groups[MAX_PIN] = {
- [PINCTRL_PIN_0] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_0,
- PINCTRL_GRP_CAN1_0,
- PINCTRL_GRP_I2C1_0,
- PINCTRL_GRP_PJTAG0_0,
- PINCTRL_GRP_SPI0_0,
- PINCTRL_GRP_TTC3_0_CLK,
- PINCTRL_GRP_UART1_0,
- PINCTRL_GRP_TRACE0_0_CLK,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_1] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_1,
- PINCTRL_GRP_CAN1_0,
- PINCTRL_GRP_I2C1_0,
- PINCTRL_GRP_PJTAG0_0,
- PINCTRL_GRP_SPI0_0_SS2,
- PINCTRL_GRP_TTC3_0_WAV,
- PINCTRL_GRP_UART1_0,
- PINCTRL_GRP_TRACE0_0_CLK,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_2] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_2,
- PINCTRL_GRP_CAN0_0,
- PINCTRL_GRP_I2C0_0,
- PINCTRL_GRP_PJTAG0_0,
- PINCTRL_GRP_SPI0_0_SS1,
- PINCTRL_GRP_TTC2_0_CLK,
- PINCTRL_GRP_UART0_0,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_3] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_3,
- PINCTRL_GRP_CAN0_0,
- PINCTRL_GRP_I2C0_0,
- PINCTRL_GRP_PJTAG0_0,
- PINCTRL_GRP_SPI0_0_SS0,
- PINCTRL_GRP_TTC2_0_WAV,
- PINCTRL_GRP_UART0_0,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_4] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_4,
- PINCTRL_GRP_CAN1_1,
- PINCTRL_GRP_I2C1_1,
- PINCTRL_GRP_SWDT1_0_CLK,
- PINCTRL_GRP_SPI0_0,
- PINCTRL_GRP_TTC1_0_CLK,
- PINCTRL_GRP_UART1_1,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_5] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI_SS,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_5,
- PINCTRL_GRP_CAN1_1,
- PINCTRL_GRP_I2C1_1,
- PINCTRL_GRP_SWDT1_0_RST,
- PINCTRL_GRP_SPI0_0,
- PINCTRL_GRP_TTC1_0_WAV,
- PINCTRL_GRP_UART1_1,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_6] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI_FBCLK,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_6,
- PINCTRL_GRP_CAN0_1,
- PINCTRL_GRP_I2C0_1,
- PINCTRL_GRP_SWDT0_0_CLK,
- PINCTRL_GRP_SPI1_0,
- PINCTRL_GRP_TTC0_0_CLK,
- PINCTRL_GRP_UART0_1,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_7] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI_SS,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_7,
- PINCTRL_GRP_CAN0_1,
- PINCTRL_GRP_I2C0_1,
- PINCTRL_GRP_SWDT0_0_RST,
- PINCTRL_GRP_SPI1_0_SS2,
- PINCTRL_GRP_TTC0_0_WAV,
- PINCTRL_GRP_UART0_1,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_8] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_8,
- PINCTRL_GRP_CAN1_2,
- PINCTRL_GRP_I2C1_2,
- PINCTRL_GRP_SWDT1_1_CLK,
- PINCTRL_GRP_SPI1_0_SS1,
- PINCTRL_GRP_TTC3_1_CLK,
- PINCTRL_GRP_UART1_2,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_9] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_NAND0_0_CE,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_9,
- PINCTRL_GRP_CAN1_2,
- PINCTRL_GRP_I2C1_2,
- PINCTRL_GRP_SWDT1_1_RST,
- PINCTRL_GRP_SPI1_0_SS0,
- PINCTRL_GRP_TTC3_1_WAV,
- PINCTRL_GRP_UART1_2,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_10] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_NAND0_0_RB,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_10,
- PINCTRL_GRP_CAN0_2,
- PINCTRL_GRP_I2C0_2,
- PINCTRL_GRP_SWDT0_1_CLK,
- PINCTRL_GRP_SPI1_0,
- PINCTRL_GRP_TTC2_1_CLK,
- PINCTRL_GRP_UART0_2,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_11] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_NAND0_0_RB,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_11,
- PINCTRL_GRP_CAN0_2,
- PINCTRL_GRP_I2C0_2,
- PINCTRL_GRP_SWDT0_1_RST,
- PINCTRL_GRP_SPI1_0,
- PINCTRL_GRP_TTC2_1_WAV,
- PINCTRL_GRP_UART0_2,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_12] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_QSPI0_0,
- PINCTRL_GRP_NAND0_0_DQS,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_12,
- PINCTRL_GRP_CAN1_3,
- PINCTRL_GRP_I2C1_3,
- PINCTRL_GRP_PJTAG0_1,
- PINCTRL_GRP_SPI0_1,
- PINCTRL_GRP_TTC1_1_CLK,
- PINCTRL_GRP_UART1_3,
- PINCTRL_GRP_TRACE0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_13] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_13,
- PINCTRL_GRP_CAN1_3,
- PINCTRL_GRP_I2C1_3,
- PINCTRL_GRP_PJTAG0_1,
- PINCTRL_GRP_SPI0_1_SS2,
- PINCTRL_GRP_TTC1_1_WAV,
- PINCTRL_GRP_UART1_3,
- PINCTRL_GRP_TRACE0_0,
- PINCTRL_GRP_SDIO0_4BIT_0_0,
- PINCTRL_GRP_SDIO0_1BIT_0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_14] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_14,
- PINCTRL_GRP_CAN0_3,
- PINCTRL_GRP_I2C0_3,
- PINCTRL_GRP_PJTAG0_1,
- PINCTRL_GRP_SPI0_1_SS1,
- PINCTRL_GRP_TTC0_1_CLK,
- PINCTRL_GRP_UART0_3,
- PINCTRL_GRP_TRACE0_0,
- PINCTRL_GRP_SDIO0_4BIT_0_0,
- PINCTRL_GRP_SDIO0_1BIT_0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_15] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_15,
- PINCTRL_GRP_CAN0_3,
- PINCTRL_GRP_I2C0_3,
- PINCTRL_GRP_PJTAG0_1,
- PINCTRL_GRP_SPI0_1_SS0,
- PINCTRL_GRP_TTC0_1_WAV,
- PINCTRL_GRP_UART0_3,
- PINCTRL_GRP_TRACE0_0,
- PINCTRL_GRP_SDIO0_4BIT_0_0,
- PINCTRL_GRP_SDIO0_1BIT_0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_16] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_16,
- PINCTRL_GRP_CAN1_4,
- PINCTRL_GRP_I2C1_4,
- PINCTRL_GRP_SWDT1_2_CLK,
- PINCTRL_GRP_SPI0_1,
- PINCTRL_GRP_TTC3_2_CLK,
- PINCTRL_GRP_UART1_4,
- PINCTRL_GRP_TRACE0_0,
- PINCTRL_GRP_SDIO0_4BIT_0_0,
- PINCTRL_GRP_SDIO0_1BIT_0_3,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_17] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_17,
- PINCTRL_GRP_CAN1_4,
- PINCTRL_GRP_I2C1_4,
- PINCTRL_GRP_SWDT1_2_RST,
- PINCTRL_GRP_SPI0_1,
- PINCTRL_GRP_TTC3_2_WAV,
- PINCTRL_GRP_UART1_4,
- PINCTRL_GRP_TRACE0_0,
- PINCTRL_GRP_SDIO0_4BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_4,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_18] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_0,
- PINCTRL_GRP_GPIO0_18,
- PINCTRL_GRP_CAN0_4,
- PINCTRL_GRP_I2C0_4,
- PINCTRL_GRP_SWDT0_2_CLK,
- PINCTRL_GRP_SPI1_1,
- PINCTRL_GRP_TTC2_2_CLK,
- PINCTRL_GRP_UART0_4,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_5,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_19] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_1,
- PINCTRL_GRP_GPIO0_19,
- PINCTRL_GRP_CAN0_4,
- PINCTRL_GRP_I2C0_4,
- PINCTRL_GRP_SWDT0_2_RST,
- PINCTRL_GRP_SPI1_1_SS2,
- PINCTRL_GRP_TTC2_2_WAV,
- PINCTRL_GRP_UART0_4,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_6,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_20] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_2,
- PINCTRL_GRP_GPIO0_20,
- PINCTRL_GRP_CAN1_5,
- PINCTRL_GRP_I2C1_5,
- PINCTRL_GRP_SWDT1_3_CLK,
- PINCTRL_GRP_SPI1_1_SS1,
- PINCTRL_GRP_TTC1_2_CLK,
- PINCTRL_GRP_UART1_5,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_21] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_3,
- PINCTRL_GRP_GPIO0_21,
- PINCTRL_GRP_CAN1_5,
- PINCTRL_GRP_I2C1_5,
- PINCTRL_GRP_SWDT1_3_RST,
- PINCTRL_GRP_SPI1_1_SS0,
- PINCTRL_GRP_TTC1_2_WAV,
- PINCTRL_GRP_UART1_5,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_0_0,
- PINCTRL_GRP_SDIO0_4BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_0,
- PINCTRL_GRP_SDIO0_1BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_2,
- PINCTRL_GRP_SDIO0_1BIT_0_3,
- PINCTRL_GRP_SDIO0_1BIT_0_4,
- PINCTRL_GRP_SDIO0_1BIT_0_5,
- PINCTRL_GRP_SDIO0_1BIT_0_6,
- PINCTRL_GRP_SDIO0_1BIT_0_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_22] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_4,
- PINCTRL_GRP_GPIO0_22,
- PINCTRL_GRP_CAN0_5,
- PINCTRL_GRP_I2C0_5,
- PINCTRL_GRP_SWDT0_3_CLK,
- PINCTRL_GRP_SPI1_1,
- PINCTRL_GRP_TTC0_2_CLK,
- PINCTRL_GRP_UART0_5,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_0_0,
- PINCTRL_GRP_SDIO0_4BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_0,
- PINCTRL_GRP_SDIO0_1BIT_0_1,
- PINCTRL_GRP_SDIO0_1BIT_0_2,
- PINCTRL_GRP_SDIO0_1BIT_0_3,
- PINCTRL_GRP_SDIO0_1BIT_0_4,
- PINCTRL_GRP_SDIO0_1BIT_0_5,
- PINCTRL_GRP_SDIO0_1BIT_0_6,
- PINCTRL_GRP_SDIO0_1BIT_0_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_23] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0_PC,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_5,
- PINCTRL_GRP_GPIO0_23,
- PINCTRL_GRP_CAN0_5,
- PINCTRL_GRP_I2C0_5,
- PINCTRL_GRP_SWDT0_3_RST,
- PINCTRL_GRP_SPI1_1,
- PINCTRL_GRP_TTC0_2_WAV,
- PINCTRL_GRP_UART0_5,
- PINCTRL_GRP_RESERVED,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_24] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0_CD,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_6,
- PINCTRL_GRP_GPIO0_24,
- PINCTRL_GRP_CAN1_6,
- PINCTRL_GRP_I2C1_6,
- PINCTRL_GRP_SWDT1_4_CLK,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TTC3_3_CLK,
- PINCTRL_GRP_UART1_6,
- PINCTRL_GRP_RESERVED,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_25] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_NAND0_0,
- PINCTRL_GRP_SDIO0_0_WP,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_7,
- PINCTRL_GRP_GPIO0_25,
- PINCTRL_GRP_CAN1_6,
- PINCTRL_GRP_I2C1_6,
- PINCTRL_GRP_SWDT1_4_RST,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_TTC3_3_WAV,
- PINCTRL_GRP_UART1_6,
- PINCTRL_GRP_RESERVED,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_26] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_GEMTSU0_0,
- PINCTRL_GRP_NAND0_1_CE,
- PINCTRL_GRP_PMU0_0,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_8,
- PINCTRL_GRP_GPIO0_26,
- PINCTRL_GRP_CAN0_6,
- PINCTRL_GRP_I2C0_6,
- PINCTRL_GRP_PJTAG0_2,
- PINCTRL_GRP_SPI0_2,
- PINCTRL_GRP_TTC2_3_CLK,
- PINCTRL_GRP_UART0_6,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_27] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_NAND0_1_RB,
- PINCTRL_GRP_PMU0_1,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_0,
- PINCTRL_GRP_GPIO0_27,
- PINCTRL_GRP_CAN0_6,
- PINCTRL_GRP_I2C0_6,
- PINCTRL_GRP_PJTAG0_2,
- PINCTRL_GRP_SPI0_2_SS2,
- PINCTRL_GRP_TTC2_3_WAV,
- PINCTRL_GRP_UART0_6,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_28] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_NAND0_1_RB,
- PINCTRL_GRP_PMU0_2,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_0,
- PINCTRL_GRP_GPIO0_28,
- PINCTRL_GRP_CAN1_7,
- PINCTRL_GRP_I2C1_7,
- PINCTRL_GRP_PJTAG0_2,
- PINCTRL_GRP_SPI0_2_SS1,
- PINCTRL_GRP_TTC1_3_CLK,
- PINCTRL_GRP_UART1_7,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_29] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_0,
- PINCTRL_GRP_PMU0_3,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_1,
- PINCTRL_GRP_GPIO0_29,
- PINCTRL_GRP_CAN1_7,
- PINCTRL_GRP_I2C1_7,
- PINCTRL_GRP_PJTAG0_2,
- PINCTRL_GRP_SPI0_2_SS0,
- PINCTRL_GRP_TTC1_3_WAV,
- PINCTRL_GRP_UART1_7,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_30] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_1,
- PINCTRL_GRP_PMU0_4,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_1,
- PINCTRL_GRP_GPIO0_30,
- PINCTRL_GRP_CAN0_7,
- PINCTRL_GRP_I2C0_7,
- PINCTRL_GRP_SWDT0_4_CLK,
- PINCTRL_GRP_SPI0_2,
- PINCTRL_GRP_TTC0_3_CLK,
- PINCTRL_GRP_UART0_7,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_31] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_2,
- PINCTRL_GRP_PMU0_5,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_9,
- PINCTRL_GRP_GPIO0_31,
- PINCTRL_GRP_CAN0_7,
- PINCTRL_GRP_I2C0_7,
- PINCTRL_GRP_SWDT0_4_RST,
- PINCTRL_GRP_SPI0_2,
- PINCTRL_GRP_TTC0_3_WAV,
- PINCTRL_GRP_UART0_7,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_32] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_NAND0_1_DQS,
- PINCTRL_GRP_PMU0_6,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_10,
- PINCTRL_GRP_GPIO0_32,
- PINCTRL_GRP_CAN1_8,
- PINCTRL_GRP_I2C1_8,
- PINCTRL_GRP_SWDT1_5_CLK,
- PINCTRL_GRP_SPI1_2,
- PINCTRL_GRP_TTC3_4_CLK,
- PINCTRL_GRP_UART1_8,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_33] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_3,
- PINCTRL_GRP_PMU0_7,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_CSU0_11,
- PINCTRL_GRP_GPIO0_33,
- PINCTRL_GRP_CAN1_8,
- PINCTRL_GRP_I2C1_8,
- PINCTRL_GRP_SWDT1_5_RST,
- PINCTRL_GRP_SPI1_2_SS2,
- PINCTRL_GRP_TTC3_4_WAV,
- PINCTRL_GRP_UART1_8,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_34] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_4,
- PINCTRL_GRP_PMU0_8,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_2,
- PINCTRL_GRP_GPIO0_34,
- PINCTRL_GRP_CAN0_8,
- PINCTRL_GRP_I2C0_8,
- PINCTRL_GRP_SWDT0_5_CLK,
- PINCTRL_GRP_SPI1_2_SS1,
- PINCTRL_GRP_TTC2_4_CLK,
- PINCTRL_GRP_UART0_8,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_35] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_5,
- PINCTRL_GRP_PMU0_9,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_2,
- PINCTRL_GRP_GPIO0_35,
- PINCTRL_GRP_CAN0_8,
- PINCTRL_GRP_I2C0_8,
- PINCTRL_GRP_SWDT0_5_RST,
- PINCTRL_GRP_SPI1_2_SS0,
- PINCTRL_GRP_TTC2_4_WAV,
- PINCTRL_GRP_UART0_8,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_36] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_6,
- PINCTRL_GRP_PMU0_10,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_3,
- PINCTRL_GRP_GPIO0_36,
- PINCTRL_GRP_CAN1_9,
- PINCTRL_GRP_I2C1_9,
- PINCTRL_GRP_SWDT1_6_CLK,
- PINCTRL_GRP_SPI1_2,
- PINCTRL_GRP_TTC1_4_CLK,
- PINCTRL_GRP_UART1_9,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_37] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET0_0,
- PINCTRL_GRP_PCIE0_7,
- PINCTRL_GRP_PMU0_11,
- PINCTRL_GRP_TESTSCAN0_0,
- PINCTRL_GRP_DPAUX0_3,
- PINCTRL_GRP_GPIO0_37,
- PINCTRL_GRP_CAN1_9,
- PINCTRL_GRP_I2C1_9,
- PINCTRL_GRP_SWDT1_6_RST,
- PINCTRL_GRP_SPI1_2,
- PINCTRL_GRP_TTC1_4_WAV,
- PINCTRL_GRP_UART1_9,
- PINCTRL_GRP_TRACE0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_38] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_38,
- PINCTRL_GRP_CAN0_9,
- PINCTRL_GRP_I2C0_9,
- PINCTRL_GRP_PJTAG0_3,
- PINCTRL_GRP_SPI0_3,
- PINCTRL_GRP_TTC0_4_CLK,
- PINCTRL_GRP_UART0_9,
- PINCTRL_GRP_TRACE0_1_CLK,
- PINCTRL_GRP_SDIO0_4BIT_1_0,
- PINCTRL_GRP_SDIO0_4BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_0,
- PINCTRL_GRP_SDIO0_1BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_2,
- PINCTRL_GRP_SDIO0_1BIT_1_3,
- PINCTRL_GRP_SDIO0_1BIT_1_4,
- PINCTRL_GRP_SDIO0_1BIT_1_5,
- PINCTRL_GRP_SDIO0_1BIT_1_6,
- PINCTRL_GRP_SDIO0_1BIT_1_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_39] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1_CD,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_39,
- PINCTRL_GRP_CAN0_9,
- PINCTRL_GRP_I2C0_9,
- PINCTRL_GRP_PJTAG0_3,
- PINCTRL_GRP_SPI0_3_SS2,
- PINCTRL_GRP_TTC0_4_WAV,
- PINCTRL_GRP_UART0_9,
- PINCTRL_GRP_TRACE0_1_CLK,
- PINCTRL_GRP_SDIO1_4BIT_0_0,
- PINCTRL_GRP_SDIO1_1BIT_0_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_40] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_40,
- PINCTRL_GRP_CAN1_10,
- PINCTRL_GRP_I2C1_10,
- PINCTRL_GRP_PJTAG0_3,
- PINCTRL_GRP_SPI0_3_SS1,
- PINCTRL_GRP_TTC3_5_CLK,
- PINCTRL_GRP_UART1_10,
- PINCTRL_GRP_TRACE0_1,
- PINCTRL_GRP_SDIO0_4BIT_1_0,
- PINCTRL_GRP_SDIO0_4BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_0,
- PINCTRL_GRP_SDIO0_1BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_2,
- PINCTRL_GRP_SDIO0_1BIT_1_3,
- PINCTRL_GRP_SDIO0_1BIT_1_4,
- PINCTRL_GRP_SDIO0_1BIT_1_5,
- PINCTRL_GRP_SDIO0_1BIT_1_6,
- PINCTRL_GRP_SDIO0_1BIT_1_7,
- PINCTRL_GRP_SDIO1_4BIT_0_0,
- PINCTRL_GRP_SDIO1_1BIT_0_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_41] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_41,
- PINCTRL_GRP_CAN1_10,
- PINCTRL_GRP_I2C1_10,
- PINCTRL_GRP_PJTAG0_3,
- PINCTRL_GRP_SPI0_3_SS0,
- PINCTRL_GRP_TTC3_5_WAV,
- PINCTRL_GRP_UART1_10,
- PINCTRL_GRP_TRACE0_1,
- PINCTRL_GRP_SDIO0_4BIT_1_0,
- PINCTRL_GRP_SDIO0_1BIT_1_0,
- PINCTRL_GRP_SDIO1_4BIT_0_0,
- PINCTRL_GRP_SDIO1_1BIT_0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_42] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_42,
- PINCTRL_GRP_CAN0_10,
- PINCTRL_GRP_I2C0_10,
- PINCTRL_GRP_SWDT0_6_CLK,
- PINCTRL_GRP_SPI0_3,
- PINCTRL_GRP_TTC2_5_CLK,
- PINCTRL_GRP_UART0_10,
- PINCTRL_GRP_TRACE0_1,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO0_4BIT_1_0,
- PINCTRL_GRP_SDIO0_1BIT_1_1,
- PINCTRL_GRP_SDIO1_4BIT_0_0,
- PINCTRL_GRP_SDIO1_1BIT_0_3,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_43] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0_PC,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_43,
- PINCTRL_GRP_CAN0_10,
- PINCTRL_GRP_I2C0_10,
- PINCTRL_GRP_SWDT0_6_RST,
- PINCTRL_GRP_SPI0_3,
- PINCTRL_GRP_TTC2_5_WAV,
- PINCTRL_GRP_UART0_10,
- PINCTRL_GRP_TRACE0_1,
- PINCTRL_GRP_SDIO0_4BIT_1_0,
- PINCTRL_GRP_SDIO0_1BIT_1_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_44] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0_WP,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_44,
- PINCTRL_GRP_CAN1_11,
- PINCTRL_GRP_I2C1_11,
- PINCTRL_GRP_SWDT1_7_CLK,
- PINCTRL_GRP_SPI1_3,
- PINCTRL_GRP_TTC1_5_CLK,
- PINCTRL_GRP_UART1_11,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_1_0,
- PINCTRL_GRP_SDIO0_1BIT_1_3,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_45] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0_CD,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_45,
- PINCTRL_GRP_CAN1_11,
- PINCTRL_GRP_I2C1_11,
- PINCTRL_GRP_SWDT1_7_RST,
- PINCTRL_GRP_SPI1_3_SS2,
- PINCTRL_GRP_TTC1_5_WAV,
- PINCTRL_GRP_UART1_11,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_4,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_46] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_46,
- PINCTRL_GRP_CAN0_11,
- PINCTRL_GRP_I2C0_11,
- PINCTRL_GRP_SWDT0_7_CLK,
- PINCTRL_GRP_SPI1_3_SS1,
- PINCTRL_GRP_TTC0_5_CLK,
- PINCTRL_GRP_UART0_11,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_5,
- PINCTRL_GRP_SDIO1_4BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_4,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_47] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_47,
- PINCTRL_GRP_CAN0_11,
- PINCTRL_GRP_I2C0_11,
- PINCTRL_GRP_SWDT0_7_RST,
- PINCTRL_GRP_SPI1_3_SS0,
- PINCTRL_GRP_TTC0_5_WAV,
- PINCTRL_GRP_UART0_11,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_6,
- PINCTRL_GRP_SDIO1_4BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_5,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_48] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_48,
- PINCTRL_GRP_CAN1_12,
- PINCTRL_GRP_I2C1_12,
- PINCTRL_GRP_SWDT1_8_CLK,
- PINCTRL_GRP_SPI1_3,
- PINCTRL_GRP_TTC3_6_CLK,
- PINCTRL_GRP_UART1_12,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_1_1,
- PINCTRL_GRP_SDIO0_1BIT_1_7,
- PINCTRL_GRP_SDIO1_4BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_6,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_49] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1_PC,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_49,
- PINCTRL_GRP_CAN1_12,
- PINCTRL_GRP_I2C1_12,
- PINCTRL_GRP_SWDT1_8_RST,
- PINCTRL_GRP_SPI1_3,
- PINCTRL_GRP_TTC3_6_WAV,
- PINCTRL_GRP_UART1_12,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO1_4BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_50] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_GEMTSU0_1,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_1_WP,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_50,
- PINCTRL_GRP_CAN0_12,
- PINCTRL_GRP_I2C0_12,
- PINCTRL_GRP_SWDT0_8_CLK,
- PINCTRL_GRP_MDIO1_0,
- PINCTRL_GRP_TTC2_6_CLK,
- PINCTRL_GRP_UART0_12,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO1_4BIT_0_0,
- PINCTRL_GRP_SDIO1_4BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_0,
- PINCTRL_GRP_SDIO1_1BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_2,
- PINCTRL_GRP_SDIO1_1BIT_0_3,
- PINCTRL_GRP_SDIO1_1BIT_0_4,
- PINCTRL_GRP_SDIO1_1BIT_0_5,
- PINCTRL_GRP_SDIO1_1BIT_0_6,
- PINCTRL_GRP_SDIO1_1BIT_0_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_51] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_GEMTSU0_2,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_51,
- PINCTRL_GRP_CAN0_12,
- PINCTRL_GRP_I2C0_12,
- PINCTRL_GRP_SWDT0_8_RST,
- PINCTRL_GRP_MDIO1_0,
- PINCTRL_GRP_TTC2_6_WAV,
- PINCTRL_GRP_UART0_12,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO1_4BIT_0_0,
- PINCTRL_GRP_SDIO1_4BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_0,
- PINCTRL_GRP_SDIO1_1BIT_0_1,
- PINCTRL_GRP_SDIO1_1BIT_0_2,
- PINCTRL_GRP_SDIO1_1BIT_0_3,
- PINCTRL_GRP_SDIO1_1BIT_0_4,
- PINCTRL_GRP_SDIO1_1BIT_0_5,
- PINCTRL_GRP_SDIO1_1BIT_0_6,
- PINCTRL_GRP_SDIO1_1BIT_0_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_52] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_52,
- PINCTRL_GRP_CAN1_13,
- PINCTRL_GRP_I2C1_13,
- PINCTRL_GRP_PJTAG0_4,
- PINCTRL_GRP_SPI0_4,
- PINCTRL_GRP_TTC1_6_CLK,
- PINCTRL_GRP_UART1_13,
- PINCTRL_GRP_TRACE0_2_CLK,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_53] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_53,
- PINCTRL_GRP_CAN1_13,
- PINCTRL_GRP_I2C1_13,
- PINCTRL_GRP_PJTAG0_4,
- PINCTRL_GRP_SPI0_4_SS2,
- PINCTRL_GRP_TTC1_6_WAV,
- PINCTRL_GRP_UART1_13,
- PINCTRL_GRP_TRACE0_2_CLK,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_54] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_54,
- PINCTRL_GRP_CAN0_13,
- PINCTRL_GRP_I2C0_13,
- PINCTRL_GRP_PJTAG0_4,
- PINCTRL_GRP_SPI0_4_SS1,
- PINCTRL_GRP_TTC0_6_CLK,
- PINCTRL_GRP_UART0_13,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_55] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_55,
- PINCTRL_GRP_CAN0_13,
- PINCTRL_GRP_I2C0_13,
- PINCTRL_GRP_PJTAG0_4,
- PINCTRL_GRP_SPI0_4_SS0,
- PINCTRL_GRP_TTC0_6_WAV,
- PINCTRL_GRP_UART0_13,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_56] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_56,
- PINCTRL_GRP_CAN1_14,
- PINCTRL_GRP_I2C1_14,
- PINCTRL_GRP_SWDT1_9_CLK,
- PINCTRL_GRP_SPI0_4,
- PINCTRL_GRP_TTC3_7_CLK,
- PINCTRL_GRP_UART1_14,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_57] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_57,
- PINCTRL_GRP_CAN1_14,
- PINCTRL_GRP_I2C1_14,
- PINCTRL_GRP_SWDT1_9_RST,
- PINCTRL_GRP_SPI0_4,
- PINCTRL_GRP_TTC3_7_WAV,
- PINCTRL_GRP_UART1_14,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_58] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_58,
- PINCTRL_GRP_CAN0_14,
- PINCTRL_GRP_I2C0_14,
- PINCTRL_GRP_PJTAG0_5,
- PINCTRL_GRP_SPI1_4,
- PINCTRL_GRP_TTC2_7_CLK,
- PINCTRL_GRP_UART0_14,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_59] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_59,
- PINCTRL_GRP_CAN0_14,
- PINCTRL_GRP_I2C0_14,
- PINCTRL_GRP_PJTAG0_5,
- PINCTRL_GRP_SPI1_4_SS2,
- PINCTRL_GRP_TTC2_7_WAV,
- PINCTRL_GRP_UART0_14,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_60] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_60,
- PINCTRL_GRP_CAN1_15,
- PINCTRL_GRP_I2C1_15,
- PINCTRL_GRP_PJTAG0_5,
- PINCTRL_GRP_SPI1_4_SS1,
- PINCTRL_GRP_TTC1_7_CLK,
- PINCTRL_GRP_UART1_15,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_61] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_61,
- PINCTRL_GRP_CAN1_15,
- PINCTRL_GRP_I2C1_15,
- PINCTRL_GRP_PJTAG0_5,
- PINCTRL_GRP_SPI1_4_SS0,
- PINCTRL_GRP_TTC1_7_WAV,
- PINCTRL_GRP_UART1_15,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_62] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_62,
- PINCTRL_GRP_CAN0_15,
- PINCTRL_GRP_I2C0_15,
- PINCTRL_GRP_SWDT0_9_CLK,
- PINCTRL_GRP_SPI1_4,
- PINCTRL_GRP_TTC0_7_CLK,
- PINCTRL_GRP_UART0_15,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_63] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET2_0,
- PINCTRL_GRP_USB0_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_63,
- PINCTRL_GRP_CAN0_15,
- PINCTRL_GRP_I2C0_15,
- PINCTRL_GRP_SWDT0_9_RST,
- PINCTRL_GRP_SPI1_4,
- PINCTRL_GRP_TTC0_7_WAV,
- PINCTRL_GRP_UART0_15,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_64] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_64,
- PINCTRL_GRP_CAN1_16,
- PINCTRL_GRP_I2C1_16,
- PINCTRL_GRP_SWDT1_10_CLK,
- PINCTRL_GRP_SPI0_5,
- PINCTRL_GRP_TTC3_8_CLK,
- PINCTRL_GRP_UART1_16,
- PINCTRL_GRP_TRACE0_2,
- PINCTRL_GRP_SDIO0_4BIT_2_0,
- PINCTRL_GRP_SDIO0_4BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_0,
- PINCTRL_GRP_SDIO0_1BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_2,
- PINCTRL_GRP_SDIO0_1BIT_2_3,
- PINCTRL_GRP_SDIO0_1BIT_2_4,
- PINCTRL_GRP_SDIO0_1BIT_2_5,
- PINCTRL_GRP_SDIO0_1BIT_2_6,
- PINCTRL_GRP_SDIO0_1BIT_2_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_65] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2_CD,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_65,
- PINCTRL_GRP_CAN1_16,
- PINCTRL_GRP_I2C1_16,
- PINCTRL_GRP_SWDT1_10_RST,
- PINCTRL_GRP_SPI0_5_SS2,
- PINCTRL_GRP_TTC3_8_WAV,
- PINCTRL_GRP_UART1_16,
- PINCTRL_GRP_TRACE0_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_66] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_66,
- PINCTRL_GRP_CAN0_16,
- PINCTRL_GRP_I2C0_16,
- PINCTRL_GRP_SWDT0_10_CLK,
- PINCTRL_GRP_SPI0_5_SS1,
- PINCTRL_GRP_TTC2_8_CLK,
- PINCTRL_GRP_UART0_16,
- PINCTRL_GRP_TRACE0_2,
- PINCTRL_GRP_SDIO0_4BIT_2_0,
- PINCTRL_GRP_SDIO0_4BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_0,
- PINCTRL_GRP_SDIO0_1BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_2,
- PINCTRL_GRP_SDIO0_1BIT_2_3,
- PINCTRL_GRP_SDIO0_1BIT_2_4,
- PINCTRL_GRP_SDIO0_1BIT_2_5,
- PINCTRL_GRP_SDIO0_1BIT_2_6,
- PINCTRL_GRP_SDIO0_1BIT_2_7,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_67] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_67,
- PINCTRL_GRP_CAN0_16,
- PINCTRL_GRP_I2C0_16,
- PINCTRL_GRP_SWDT0_10_RST,
- PINCTRL_GRP_SPI0_5_SS0,
- PINCTRL_GRP_TTC2_8_WAV,
- PINCTRL_GRP_UART0_16,
- PINCTRL_GRP_TRACE0_2,
- PINCTRL_GRP_SDIO0_4BIT_2_0,
- PINCTRL_GRP_SDIO0_1BIT_2_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_68] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_68,
- PINCTRL_GRP_CAN1_17,
- PINCTRL_GRP_I2C1_17,
- PINCTRL_GRP_SWDT1_11_CLK,
- PINCTRL_GRP_SPI0_5,
- PINCTRL_GRP_TTC1_8_CLK,
- PINCTRL_GRP_UART1_17,
- PINCTRL_GRP_TRACE0_2,
- PINCTRL_GRP_SDIO0_4BIT_2_0,
- PINCTRL_GRP_SDIO0_1BIT_2_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_69] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_SDIO1_1_WP,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_69,
- PINCTRL_GRP_CAN1_17,
- PINCTRL_GRP_I2C1_17,
- PINCTRL_GRP_SWDT1_11_RST,
- PINCTRL_GRP_SPI0_5,
- PINCTRL_GRP_TTC1_8_WAV,
- PINCTRL_GRP_UART1_17,
- PINCTRL_GRP_TRACE0_2,
- PINCTRL_GRP_SDIO0_4BIT_2_0,
- PINCTRL_GRP_SDIO0_1BIT_2_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_70] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_SDIO1_1_PC,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_70,
- PINCTRL_GRP_CAN0_17,
- PINCTRL_GRP_I2C0_17,
- PINCTRL_GRP_SWDT0_11_CLK,
- PINCTRL_GRP_SPI1_5,
- PINCTRL_GRP_TTC0_8_CLK,
- PINCTRL_GRP_UART0_17,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_2_0,
- PINCTRL_GRP_SDIO0_1BIT_2_3,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_71] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_SDIO1_4BIT_1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_71,
- PINCTRL_GRP_CAN0_17,
- PINCTRL_GRP_I2C0_17,
- PINCTRL_GRP_SWDT0_11_RST,
- PINCTRL_GRP_SPI1_5_SS2,
- PINCTRL_GRP_TTC0_8_WAV,
- PINCTRL_GRP_UART0_17,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_SDIO0_4BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_4,
- PINCTRL_GRP_SDIO1_1BIT_1_0,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_72] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_SDIO1_4BIT_1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_72,
- PINCTRL_GRP_CAN1_18,
- PINCTRL_GRP_I2C1_18,
- PINCTRL_GRP_SWDT1_12_CLK,
- PINCTRL_GRP_SPI1_5_SS1,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_UART1_18,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_5,
- PINCTRL_GRP_SDIO1_1BIT_1_1,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_73] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_SDIO1_4BIT_1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_73,
- PINCTRL_GRP_CAN1_18,
- PINCTRL_GRP_I2C1_18,
- PINCTRL_GRP_SWDT1_12_RST,
- PINCTRL_GRP_SPI1_5_SS0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_UART1_18,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_6,
- PINCTRL_GRP_SDIO1_1BIT_1_2,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_74] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2,
- PINCTRL_GRP_SDIO1_4BIT_1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_74,
- PINCTRL_GRP_CAN0_18,
- PINCTRL_GRP_I2C0_18,
- PINCTRL_GRP_SWDT0_12_CLK,
- PINCTRL_GRP_SPI1_5,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_UART0_18,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_4BIT_2_1,
- PINCTRL_GRP_SDIO0_1BIT_2_7,
- PINCTRL_GRP_SDIO1_1BIT_1_3,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_75] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_ETHERNET3_0,
- PINCTRL_GRP_USB1_0,
- PINCTRL_GRP_SDIO0_2_PC,
- PINCTRL_GRP_SDIO1_4BIT_1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_75,
- PINCTRL_GRP_CAN0_18,
- PINCTRL_GRP_I2C0_18,
- PINCTRL_GRP_SWDT0_12_RST,
- PINCTRL_GRP_SPI1_5,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_UART0_18,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO1_1BIT_1_0,
- PINCTRL_GRP_SDIO1_1BIT_1_1,
- PINCTRL_GRP_SDIO1_1BIT_1_2,
- PINCTRL_GRP_SDIO1_1BIT_1_3,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_76] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO0_2_WP,
- PINCTRL_GRP_SDIO1_4BIT_1_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_76,
- PINCTRL_GRP_CAN1_19,
- PINCTRL_GRP_I2C1_19,
- PINCTRL_GRP_MDIO0_0,
- PINCTRL_GRP_MDIO1_1,
- PINCTRL_GRP_MDIO2_0,
- PINCTRL_GRP_MDIO3_0,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO1_1BIT_1_0,
- PINCTRL_GRP_SDIO1_1BIT_1_1,
- PINCTRL_GRP_SDIO1_1BIT_1_2,
- PINCTRL_GRP_SDIO1_1BIT_1_3,
- END_OF_GROUPS,
- }),
- },
- [PINCTRL_PIN_77] = {
- .groups = &((uint16_t []) {
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_SDIO1_1_CD,
- PINCTRL_GRP_RESERVED,
- PINCTRL_GRP_GPIO0_77,
- PINCTRL_GRP_CAN1_19,
- PINCTRL_GRP_I2C1_19,
- PINCTRL_GRP_MDIO0_0,
- PINCTRL_GRP_MDIO1_1,
- PINCTRL_GRP_MDIO2_0,
- PINCTRL_GRP_MDIO3_0,
- PINCTRL_GRP_RESERVED,
- END_OF_GROUPS,
- }),
- },
- };
- /**
- * pm_api_pinctrl_get_num_pins() - PM call to request number of pins.
- * @npins: Number of pins.
- *
- * This function is used by master to get number of pins.
- *
- * Return: Returns success.
- *
- */
- enum pm_ret_status pm_api_pinctrl_get_num_pins(uint32_t *npins)
- {
- *npins = MAX_PIN;
- return PM_RET_SUCCESS;
- }
- /**
- * pm_api_pinctrl_get_num_functions() - PM call to request number of functions.
- * @nfuncs: Number of functions.
- *
- * This function is used by master to get number of functions.
- *
- * Return: Returns success.
- *
- */
- enum pm_ret_status pm_api_pinctrl_get_num_functions(uint32_t *nfuncs)
- {
- *nfuncs = MAX_FUNCTION;
- return PM_RET_SUCCESS;
- }
- /**
- * pm_api_pinctrl_get_num_func_groups() - PM call to request number of
- * function groups.
- * @fid: Function Id.
- * @ngroups: Number of function groups.
- *
- * This function is used by master to get number of function groups.
- *
- * Return: Returns success.
- *
- */
- enum pm_ret_status pm_api_pinctrl_get_num_func_groups(uint32_t fid,
- uint32_t *ngroups)
- {
- if (fid >= MAX_FUNCTION) {
- return PM_RET_ERROR_ARGS;
- }
- *ngroups = pinctrl_functions[fid].group_size;
- return PM_RET_SUCCESS;
- }
- /**
- * pm_api_pinctrl_get_function_name() - PM call to request a function name.
- * @fid: Function ID.
- * @name: Name of function (max 16 bytes).
- *
- * This function is used by master to get name of function specified
- * by given function ID.
- *
- */
- void pm_api_pinctrl_get_function_name(uint32_t fid, char *name)
- {
- if (fid >= MAX_FUNCTION) {
- (void)memcpy(name, END_OF_FUNCTION, FUNCTION_NAME_LEN);
- } else {
- (void)memcpy(name, pinctrl_functions[fid].name, FUNCTION_NAME_LEN);
- }
- }
- /**
- * pm_api_pinctrl_get_function_groups() - PM call to request first 6 function
- * groups of function Id.
- * @fid: Function ID.
- * @index: Index of next function groups.
- * @groups: Function groups.
- *
- * This function is used by master to get function groups specified
- * by given function Id. This API will return 6 function groups with
- * a single response. To get other function groups, master should call
- * same API in loop with new function groups index till error is returned.
- *
- * E.g First call should have index 0 which will return function groups
- * 0, 1, 2, 3, 4 and 5. Next call, index should be 6 which will return
- * function groups 6, 7, 8, 9, 10 and 11 and so on.
- *
- * Return: Returns status, either success or error+reason.
- *
- */
- enum pm_ret_status pm_api_pinctrl_get_function_groups(uint32_t fid,
- uint32_t index,
- uint16_t *groups)
- {
- uint16_t grps;
- uint16_t end_of_grp_offset;
- uint16_t i;
- if (fid >= MAX_FUNCTION) {
- return PM_RET_ERROR_ARGS;
- }
- (void)memset(groups, END_OF_GROUPS, GROUPS_PAYLOAD_LEN);
- grps = pinctrl_functions[fid].group_base;
- end_of_grp_offset = grps + pinctrl_functions[fid].group_size;
- for (i = 0U; i < NUM_GROUPS_PER_RESP; i++) {
- if ((grps + index + i) >= end_of_grp_offset) {
- break;
- }
- groups[i] = (grps + index + i);
- }
- return PM_RET_SUCCESS;
- }
- /**
- * pm_api_pinctrl_get_pin_groups() - PM call to request first 6 pin
- * groups of pin.
- * @pin: Pin.
- * @index: Index of next pin groups.
- * @groups: pin groups.
- *
- * This function is used by master to get pin groups specified
- * by given pin Id. This API will return 6 pin groups with
- * a single response. To get other pin groups, master should call
- * same API in loop with new pin groups index till error is returned.
- *
- * E.g First call should have index 0 which will return pin groups
- * 0, 1, 2, 3, 4 and 5. Next call, index should be 6 which will return
- * pin groups 6, 7, 8, 9, 10 and 11 and so on.
- *
- * Return: Returns status, either success or error+reason.
- *
- */
- enum pm_ret_status pm_api_pinctrl_get_pin_groups(uint32_t pin,
- uint32_t index,
- uint16_t *groups)
- {
- uint32_t i;
- const uint16_t *grps;
- if (pin >= MAX_PIN) {
- return PM_RET_ERROR_ARGS;
- }
- (void)memset(groups, END_OF_GROUPS, GROUPS_PAYLOAD_LEN);
- grps = *zynqmp_pin_groups[pin].groups;
- if (grps == NULL) {
- return PM_RET_SUCCESS;
- }
- /* Skip groups till index */
- for (i = 0; i < index; i++) {
- if (grps[i] == (uint16_t)END_OF_GROUPS) {
- return PM_RET_SUCCESS;
- }
- }
- for (i = 0; i < NUM_GROUPS_PER_RESP; i++) {
- groups[i] = grps[index + i];
- if (groups[i] == (uint16_t)END_OF_GROUPS) {
- break;
- }
- }
- return PM_RET_SUCCESS;
- }
|