| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342 |
- // SPDX-License-Identifier: GPL-2.0
- /*
- * Copyright (c) 2018,2020 The Linux Foundation. All rights reserved.
- * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
- */
- #include <linux/clk-provider.h>
- #include <linux/interconnect-provider.h>
- #include <linux/kernel.h>
- #include <linux/module.h>
- #include <linux/of.h>
- #include <linux/platform_device.h>
- #include <linux/regmap.h>
- #include <dt-bindings/clock/qcom,ipq5424-gcc.h>
- #include <dt-bindings/interconnect/qcom,ipq5424.h>
- #include <dt-bindings/reset/qcom,ipq5424-gcc.h>
- #include "clk-alpha-pll.h"
- #include "clk-branch.h"
- #include "clk-rcg.h"
- #include "clk-regmap.h"
- #include "clk-regmap-divider.h"
- #include "clk-regmap-mux.h"
- #include "clk-regmap-phy-mux.h"
- #include "common.h"
- #include "reset.h"
- enum {
- DT_XO,
- DT_SLEEP_CLK,
- DT_PCIE30_PHY0_PIPE_CLK,
- DT_PCIE30_PHY1_PIPE_CLK,
- DT_PCIE30_PHY2_PIPE_CLK,
- DT_PCIE30_PHY3_PIPE_CLK,
- DT_USB_PCIE_WRAPPER_PIPE_CLK,
- };
- enum {
- P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC,
- P_GPLL0_OUT_AUX,
- P_GPLL0_OUT_MAIN,
- P_GPLL2_OUT_AUX,
- P_GPLL2_OUT_MAIN,
- P_GPLL4_OUT_AUX,
- P_GPLL4_OUT_MAIN,
- P_SLEEP_CLK,
- P_XO,
- P_USB3PHY_0_PIPE,
- };
- static const struct clk_parent_data gcc_parent_data_xo = { .index = DT_XO };
- static struct clk_alpha_pll gpll0 = {
- .offset = 0x20000,
- .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT_EVO],
- .clkr = {
- .enable_reg = 0xb000,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gpll0",
- .parent_data = &gcc_parent_data_xo,
- .num_parents = 1,
- .ops = &clk_alpha_pll_ops,
- },
- },
- };
- static struct clk_fixed_factor gpll0_div2 = {
- .mult = 1,
- .div = 2,
- .hw.init = &(const struct clk_init_data) {
- .name = "gpll0_div2",
- .parent_hws = (const struct clk_hw *[]) {
- &gpll0.clkr.hw
- },
- .num_parents = 1,
- .ops = &clk_fixed_factor_ops,
- },
- };
- static struct clk_alpha_pll_postdiv gpll0_out_aux = {
- .offset = 0x20000,
- .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
- .width = 4,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gpll0_out_aux",
- .parent_hws = (const struct clk_hw *[]) {
- &gpll0.clkr.hw
- },
- .num_parents = 1,
- .ops = &clk_alpha_pll_postdiv_ro_ops,
- },
- };
- static struct clk_alpha_pll gpll2 = {
- .offset = 0x21000,
- .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_NSS_HUAYRA],
- .clkr = {
- .enable_reg = 0xb000,
- .enable_mask = BIT(1),
- .hw.init = &(const struct clk_init_data) {
- .name = "gpll2",
- .parent_data = &gcc_parent_data_xo,
- .num_parents = 1,
- .ops = &clk_alpha_pll_ops,
- },
- },
- };
- static const struct clk_div_table post_div_table_gpll2_out_main[] = {
- { 0x1, 2 },
- { }
- };
- static struct clk_alpha_pll_postdiv gpll2_out_main = {
- .offset = 0x21000,
- .post_div_table = post_div_table_gpll2_out_main,
- .num_post_div = ARRAY_SIZE(post_div_table_gpll2_out_main),
- .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_NSS_HUAYRA],
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gpll2_out_main",
- .parent_hws = (const struct clk_hw*[]) {
- &gpll2.clkr.hw,
- },
- .num_parents = 1,
- .ops = &clk_alpha_pll_postdiv_ro_ops,
- },
- };
- static struct clk_alpha_pll gpll4 = {
- .offset = 0x22000,
- .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT_EVO],
- .clkr = {
- .enable_reg = 0xb000,
- .enable_mask = BIT(2),
- .hw.init = &(const struct clk_init_data) {
- .name = "gpll4",
- .parent_data = &gcc_parent_data_xo,
- .num_parents = 1,
- .ops = &clk_alpha_pll_ops,
- /*
- * There are no consumers for this GPLL in kernel yet,
- * (will be added soon), so the clock framework
- * disables this source. But some of the clocks
- * initialized by boot loaders uses this source. So we
- * need to keep this clock ON. Add the
- * CLK_IGNORE_UNUSED flag so the clock will not be
- * disabled. Once the consumer in kernel is added, we
- * can get rid of this flag.
- */
- .flags = CLK_IGNORE_UNUSED,
- },
- },
- };
- static const struct parent_map gcc_parent_map_xo[] = {
- { P_XO, 0 },
- };
- static const struct parent_map gcc_parent_map_0[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_MAIN, 1 },
- { P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 4 },
- };
- static const struct clk_parent_data gcc_parent_data_0[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll0_div2.hw },
- };
- static const struct parent_map gcc_parent_map_1[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_MAIN, 1 },
- };
- static const struct clk_parent_data gcc_parent_data_1[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- };
- static const struct parent_map gcc_parent_map_2[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_MAIN, 1 },
- { P_GPLL4_OUT_MAIN, 2 },
- };
- static const struct clk_parent_data gcc_parent_data_2[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll4.clkr.hw },
- };
- static const struct parent_map gcc_parent_map_3[] = {
- { P_XO, 0 },
- { P_GPLL4_OUT_MAIN, 1 },
- { P_GPLL0_OUT_AUX, 2 },
- { P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 4 },
- };
- static const struct clk_parent_data gcc_parent_data_3[] = {
- { .index = DT_XO },
- { .hw = &gpll4.clkr.hw },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll0_div2.hw },
- };
- static const struct parent_map gcc_parent_map_4[] = {
- { P_XO, 0 },
- };
- static const struct clk_parent_data gcc_parent_data_4[] = {
- { .index = DT_XO },
- };
- static const struct parent_map gcc_parent_map_5[] = {
- { P_XO, 0 },
- { P_GPLL4_OUT_AUX, 1 },
- { P_GPLL0_OUT_MAIN, 3 },
- { P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 4 },
- };
- static const struct clk_parent_data gcc_parent_data_5[] = {
- { .index = DT_XO },
- { .hw = &gpll4.clkr.hw },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll0_div2.hw },
- };
- static const struct parent_map gcc_parent_map_6[] = {
- { P_SLEEP_CLK, 6 },
- };
- static const struct clk_parent_data gcc_parent_data_6[] = {
- { .index = DT_SLEEP_CLK },
- };
- static const struct parent_map gcc_parent_map_7[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_MAIN, 1 },
- { P_GPLL0_OUT_AUX, 2 },
- { P_SLEEP_CLK, 6 },
- };
- static const struct clk_parent_data gcc_parent_data_7[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll0.clkr.hw },
- { .index = DT_SLEEP_CLK },
- };
- static const struct parent_map gcc_parent_map_8[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_MAIN, 1 },
- { P_GPLL2_OUT_MAIN, 2 },
- { P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 4 },
- };
- static const struct clk_parent_data gcc_parent_data_8[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll2_out_main.clkr.hw },
- { .hw = &gpll0_div2.hw },
- };
- static const struct parent_map gcc_parent_map_9[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_MAIN, 1 },
- { P_GPLL4_OUT_MAIN, 2 },
- { P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 4 },
- };
- static const struct clk_parent_data gcc_parent_data_9[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll4.clkr.hw },
- { .hw = &gpll0_div2.hw },
- };
- static const struct parent_map gcc_parent_map_10[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_AUX, 2 },
- { P_SLEEP_CLK, 6 },
- };
- static const struct clk_parent_data gcc_parent_data_10[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- { .index = DT_SLEEP_CLK },
- };
- static const struct parent_map gcc_parent_map_11[] = {
- { P_XO, 0 },
- { P_GPLL0_OUT_MAIN, 1 },
- { P_GPLL2_OUT_AUX, 2 },
- };
- static const struct clk_parent_data gcc_parent_data_11[] = {
- { .index = DT_XO },
- { .hw = &gpll0.clkr.hw },
- { .hw = &gpll2.clkr.hw },
- };
- static const struct freq_tbl ftbl_gcc_adss_pwm_clk_src[] = {
- F(24000000, P_XO, 1, 0, 0),
- F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_adss_pwm_clk_src = {
- .cmd_rcgr = 0x1c004,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .freq_tbl = ftbl_gcc_adss_pwm_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_adss_pwm_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_nss_ts_clk_src[] = {
- F(24000000, P_XO, 1, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_xo_clk_src = {
- .cmd_rcgr = 0x34004,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_xo,
- .freq_tbl = ftbl_gcc_nss_ts_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_xo_clk_src",
- .parent_data = &gcc_parent_data_xo,
- .num_parents = 1,
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_branch gcc_xo_clk = {
- .halt_reg = 0x34018,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x34018,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_xo_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_xo_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_fixed_factor gcc_xo_div4_clk_src = {
- .mult = 1,
- .div = 4,
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_xo_div4_clk_src",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_xo_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_fixed_factor_ops,
- },
- };
- static struct clk_rcg2 gcc_nss_ts_clk_src = {
- .cmd_rcgr = 0x17088,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_4,
- .freq_tbl = ftbl_gcc_nss_ts_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_nss_ts_clk_src",
- .parent_data = gcc_parent_data_4,
- .num_parents = ARRAY_SIZE(gcc_parent_data_4),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_pcie0_axi_m_clk_src[] = {
- F(240000000, P_GPLL4_OUT_MAIN, 5, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_pcie0_axi_m_clk_src = {
- .cmd_rcgr = 0x28018,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie0_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_axi_m_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie0_axi_s_clk_src = {
- .cmd_rcgr = 0x28020,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie0_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_axi_s_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie1_axi_m_clk_src = {
- .cmd_rcgr = 0x29018,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie0_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_axi_m_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie1_axi_s_clk_src = {
- .cmd_rcgr = 0x29020,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie0_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_axi_s_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_pcie2_axi_m_clk_src[] = {
- F(266666667, P_GPLL4_OUT_MAIN, 4.5, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_pcie2_axi_m_clk_src = {
- .cmd_rcgr = 0x2a018,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie2_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_axi_m_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie2_axi_s_clk_src = {
- .cmd_rcgr = 0x2a020,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie0_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_axi_s_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie3_axi_m_clk_src = {
- .cmd_rcgr = 0x2b018,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie2_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_axi_m_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie3_axi_s_clk_src = {
- .cmd_rcgr = 0x2b020,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_2,
- .freq_tbl = ftbl_gcc_pcie0_axi_m_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_axi_s_clk_src",
- .parent_data = gcc_parent_data_2,
- .num_parents = ARRAY_SIZE(gcc_parent_data_2),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_pcie_aux_clk_src[] = {
- F(20000000, P_GPLL0_OUT_MAIN, 10, 1, 4),
- { }
- };
- static struct clk_rcg2 gcc_pcie_aux_clk_src = {
- .cmd_rcgr = 0x28004,
- .mnd_width = 16,
- .hid_width = 5,
- .parent_map = gcc_parent_map_7,
- .freq_tbl = ftbl_gcc_pcie_aux_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie_aux_clk_src",
- .parent_data = gcc_parent_data_7,
- .num_parents = ARRAY_SIZE(gcc_parent_data_7),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_qupv3_i2c0_clk_src[] = {
- F(4800000, P_XO, 5, 0, 0),
- F(9600000, P_XO, 2.5, 0, 0),
- F(24000000, P_XO, 1, 0, 0),
- F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
- F(64000000, P_GPLL0_OUT_MAIN, 12.5, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_qupv3_i2c0_clk_src = {
- .cmd_rcgr = 0x2018,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_qupv3_i2c0_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_i2c0_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_qupv3_i2c1_clk_src = {
- .cmd_rcgr = 0x3018,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_qupv3_i2c0_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_i2c1_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_qupv3_spi0_clk_src[] = {
- F(960000, P_XO, 10, 2, 5),
- F(4800000, P_XO, 5, 0, 0),
- F(9600000, P_XO, 2, 4, 5),
- F(16000000, P_GPLL0_OUT_MAIN, 10, 1, 5),
- F(24000000, P_XO, 1, 0, 0),
- F(25000000, P_GPLL0_OUT_MAIN, 16, 1, 2),
- F(32000000, P_GPLL0_OUT_MAIN, 10, 2, 5),
- F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_qupv3_spi0_clk_src = {
- .cmd_rcgr = 0x4004,
- .mnd_width = 8,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_qupv3_spi0_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_spi0_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_qupv3_spi1_clk_src = {
- .cmd_rcgr = 0x5004,
- .mnd_width = 8,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_qupv3_spi0_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_spi1_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_qupv3_uart0_clk_src[] = {
- F(3686400, P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 1, 144, 15625),
- F(7372800, P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 1, 288, 15625),
- F(14745600, P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 1, 576, 15625),
- F(24000000, P_XO, 1, 0, 0),
- F(25000000, P_GPLL0_OUT_MAIN, 16, 1, 2),
- F(32000000, P_GPLL0_OUT_MAIN, 1, 1, 25),
- F(40000000, P_GPLL0_OUT_MAIN, 1, 1, 20),
- F(46400000, P_GPLL0_OUT_MAIN, 1, 29, 500),
- F(48000000, P_GPLL0_OUT_MAIN, 1, 3, 50),
- F(51200000, P_GPLL0_OUT_MAIN, 1, 8, 125),
- F(56000000, P_GPLL0_OUT_MAIN, 1, 7, 100),
- F(58982400, P_GPLL0_OUT_MAIN, 1, 1152, 15625),
- F(60000000, P_GPLL0_OUT_MAIN, 1, 3, 40),
- F(64000000, P_GPLL0_OUT_MAIN, 12.5, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_qupv3_uart0_clk_src = {
- .cmd_rcgr = 0x202c,
- .mnd_width = 16,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_qupv3_uart0_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_uart0_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_qupv3_uart1_clk_src = {
- .cmd_rcgr = 0x302c,
- .mnd_width = 16,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_qupv3_uart0_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_uart1_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_sdcc1_apps_clk_src[] = {
- F(144000, P_XO, 16, 12, 125),
- F(400000, P_XO, 12, 1, 5),
- F(24000000, P_GPLL2_OUT_MAIN, 12, 1, 2),
- F(48000000, P_GPLL2_OUT_MAIN, 12, 0, 0),
- F(96000000, P_GPLL2_OUT_MAIN, 6, 0, 0),
- F(177777778, P_GPLL0_OUT_MAIN, 4.5, 0, 0),
- F(192000000, P_GPLL2_OUT_MAIN, 3, 0, 0),
- F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
- .cmd_rcgr = 0x33004,
- .mnd_width = 8,
- .hid_width = 5,
- .parent_map = gcc_parent_map_8,
- .freq_tbl = ftbl_gcc_sdcc1_apps_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_sdcc1_apps_clk_src",
- .parent_data = gcc_parent_data_8,
- .num_parents = ARRAY_SIZE(gcc_parent_data_8),
- .ops = &clk_rcg2_floor_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_sdcc1_ice_core_clk_src[] = {
- F(300000000, P_GPLL4_OUT_MAIN, 4, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
- .cmd_rcgr = 0x33018,
- .mnd_width = 8,
- .hid_width = 5,
- .parent_map = gcc_parent_map_9,
- .freq_tbl = ftbl_gcc_sdcc1_ice_core_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_sdcc1_ice_core_clk_src",
- .parent_data = gcc_parent_data_9,
- .num_parents = ARRAY_SIZE(gcc_parent_data_9),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_uniphy_sys_clk_src = {
- .cmd_rcgr = 0x17090,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_4,
- .freq_tbl = ftbl_gcc_nss_ts_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_uniphy_sys_clk_src",
- .parent_data = &gcc_parent_data_xo,
- .num_parents = 1,
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_usb0_aux_clk_src = {
- .cmd_rcgr = 0x2c018,
- .mnd_width = 16,
- .hid_width = 5,
- .parent_map = gcc_parent_map_10,
- .freq_tbl = ftbl_gcc_nss_ts_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_aux_clk_src",
- .parent_data = gcc_parent_data_10,
- .num_parents = ARRAY_SIZE(gcc_parent_data_10),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_usb0_master_clk_src[] = {
- F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_usb0_master_clk_src = {
- .cmd_rcgr = 0x2c004,
- .mnd_width = 8,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_usb0_master_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_master_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_usb0_mock_utmi_clk_src[] = {
- F(24000000, P_XO, 1, 0, 0),
- F(60000000, P_GPLL4_OUT_AUX, 10, 1, 2),
- { }
- };
- static struct clk_rcg2 gcc_usb0_mock_utmi_clk_src = {
- .cmd_rcgr = 0x2c02c,
- .mnd_width = 8,
- .hid_width = 5,
- .parent_map = gcc_parent_map_5,
- .freq_tbl = ftbl_gcc_usb0_mock_utmi_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_mock_utmi_clk_src",
- .parent_data = gcc_parent_data_5,
- .num_parents = ARRAY_SIZE(gcc_parent_data_5),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_usb1_mock_utmi_clk_src = {
- .cmd_rcgr = 0x3c004,
- .mnd_width = 8,
- .hid_width = 5,
- .parent_map = gcc_parent_map_5,
- .freq_tbl = ftbl_gcc_usb0_mock_utmi_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb1_mock_utmi_clk_src",
- .parent_data = gcc_parent_data_5,
- .num_parents = ARRAY_SIZE(gcc_parent_data_5),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_wcss_ahb_clk_src[] = {
- F(24000000, P_XO, 1, 0, 0),
- F(133333333, P_GPLL0_OUT_MAIN, 6, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_wcss_ahb_clk_src = {
- .cmd_rcgr = 0x25030,
- .freq_tbl = ftbl_gcc_wcss_ahb_clk_src,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_wcss_ahb_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_qdss_at_clk_src[] = {
- F(240000000, P_GPLL4_OUT_MAIN, 5, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_qdss_at_clk_src = {
- .cmd_rcgr = 0x2d004,
- .freq_tbl = ftbl_gcc_qdss_at_clk_src,
- .hid_width = 5,
- .parent_map = gcc_parent_map_3,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qdss_at_clk_src",
- .parent_data = gcc_parent_data_3,
- .num_parents = ARRAY_SIZE(gcc_parent_data_3),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_qdss_tsctr_clk_src[] = {
- F(600000000, P_GPLL4_OUT_MAIN, 2, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_qdss_tsctr_clk_src = {
- .cmd_rcgr = 0x2d01c,
- .freq_tbl = ftbl_gcc_qdss_tsctr_clk_src,
- .hid_width = 5,
- .parent_map = gcc_parent_map_3,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qdss_tsctr_clk_src",
- .parent_data = gcc_parent_data_3,
- .num_parents = ARRAY_SIZE(gcc_parent_data_3),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_fixed_factor gcc_qdss_tsctr_div2_clk_src = {
- .mult = 1,
- .div = 2,
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qdss_tsctr_div2_clk_src",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_qdss_tsctr_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_fixed_factor_ops,
- },
- };
- static struct clk_fixed_factor gcc_qdss_dap_sync_clk_src = {
- .mult = 1,
- .div = 4,
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qdss_dap_sync_clk_src",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_qdss_tsctr_clk_src.clkr.hw
- },
- .num_parents = 1,
- .ops = &clk_fixed_factor_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_system_noc_bfdcd_clk_src[] = {
- F(24000000, P_XO, 1, 0, 0),
- F(133333333, P_GPLL0_OUT_MAIN, 6, 0, 0),
- F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
- F(266666667, P_GPLL4_OUT_MAIN, 4.5, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_system_noc_bfdcd_clk_src = {
- .cmd_rcgr = 0x2e004,
- .freq_tbl = ftbl_gcc_system_noc_bfdcd_clk_src,
- .hid_width = 5,
- .parent_map = gcc_parent_map_9,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_system_noc_bfdcd_clk_src",
- .parent_data = gcc_parent_data_9,
- .num_parents = ARRAY_SIZE(gcc_parent_data_9),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_pcnoc_bfdcd_clk_src[] = {
- F(24000000, P_XO, 1, 0, 0),
- F(50000000, P_GPLL0_OUT_MAIN, 16, 0, 0),
- F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_pcnoc_bfdcd_clk_src = {
- .cmd_rcgr = 0x31004,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_0,
- .freq_tbl = ftbl_gcc_pcnoc_bfdcd_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcnoc_bfdcd_clk_src",
- .parent_data = gcc_parent_data_0,
- .num_parents = ARRAY_SIZE(gcc_parent_data_0),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_lpass_sway_clk_src[] = {
- F(133333333, P_GPLL0_OUT_MAIN, 6, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_lpass_sway_clk_src = {
- .cmd_rcgr = 0x27004,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .freq_tbl = ftbl_gcc_lpass_sway_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_lpass_sway_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_lpass_axim_clk_src = {
- .cmd_rcgr = 0x2700c,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .freq_tbl = ftbl_gcc_lpass_sway_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_lpass_axim_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_fixed_factor gcc_eud_at_div_clk_src = {
- .mult = 1,
- .div = 6,
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_eud_at_div_clk_src",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_qdss_at_clk_src.clkr.hw },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_fixed_factor_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_sleep_clk_src[] = {
- F(32000, P_SLEEP_CLK, 1, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_sleep_clk_src = {
- .cmd_rcgr = 0x3400c,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_6,
- .freq_tbl = ftbl_gcc_sleep_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_sleep_clk_src",
- .parent_data = gcc_parent_data_6,
- .num_parents = ARRAY_SIZE(gcc_parent_data_6),
- .ops = &clk_rcg2_ops,
- },
- };
- static const struct freq_tbl ftbl_gcc_qpic_io_macro_clk_src[] = {
- F(24000000, P_XO, 1, 0, 0),
- F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
- F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
- F(320000000, P_GPLL0_OUT_MAIN, 2.5, 0, 0),
- F(400000000, P_GPLL0_OUT_MAIN, 2, 0, 0),
- { }
- };
- static struct clk_rcg2 gcc_qpic_io_macro_clk_src = {
- .cmd_rcgr = 0x32004,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_11,
- .freq_tbl = ftbl_gcc_qpic_io_macro_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qpic_io_macro_clk_src",
- .parent_data = gcc_parent_data_11,
- .num_parents = ARRAY_SIZE(gcc_parent_data_11),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_qpic_clk_src = {
- .cmd_rcgr = 0x32020,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_11,
- .freq_tbl = ftbl_gcc_qpic_io_macro_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qpic_clk_src",
- .parent_data = gcc_parent_data_11,
- .num_parents = ARRAY_SIZE(gcc_parent_data_11),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie0_rchng_clk_src = {
- .cmd_rcgr = 0x28028,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .freq_tbl = ftbl_gcc_adss_pwm_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_rchng_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie1_rchng_clk_src = {
- .cmd_rcgr = 0x29028,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .freq_tbl = ftbl_gcc_adss_pwm_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_rchng_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie2_rchng_clk_src = {
- .cmd_rcgr = 0x2a028,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .freq_tbl = ftbl_gcc_adss_pwm_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_rchng_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_rcg2 gcc_pcie3_rchng_clk_src = {
- .cmd_rcgr = 0x2b028,
- .mnd_width = 0,
- .hid_width = 5,
- .parent_map = gcc_parent_map_1,
- .freq_tbl = ftbl_gcc_adss_pwm_clk_src,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_rchng_clk_src",
- .parent_data = gcc_parent_data_1,
- .num_parents = ARRAY_SIZE(gcc_parent_data_1),
- .ops = &clk_rcg2_ops,
- },
- };
- static struct clk_regmap_div gcc_qupv3_i2c0_div_clk_src = {
- .reg = 0x2020,
- .shift = 0,
- .width = 2,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_i2c0_div_clk_src",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_i2c0_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_regmap_div_ro_ops,
- },
- };
- static struct clk_regmap_div gcc_qupv3_i2c1_div_clk_src = {
- .reg = 0x3020,
- .shift = 0,
- .width = 2,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_i2c1_div_clk_src",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_i2c1_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_regmap_div_ro_ops,
- },
- };
- static struct clk_regmap_div gcc_usb0_mock_utmi_div_clk_src = {
- .reg = 0x2c040,
- .shift = 0,
- .width = 2,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_mock_utmi_div_clk_src",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_usb0_mock_utmi_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_regmap_div_ro_ops,
- },
- };
- static struct clk_regmap_div gcc_usb1_mock_utmi_div_clk_src = {
- .reg = 0x3c018,
- .shift = 0,
- .width = 2,
- .clkr.hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb1_mock_utmi_div_clk_src",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_usb1_mock_utmi_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_regmap_div_ro_ops,
- },
- };
- static struct clk_branch gcc_adss_pwm_clk = {
- .halt_reg = 0x1c00c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x1c00c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_adss_pwm_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_adss_pwm_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cnoc_pcie0_1lane_s_clk = {
- .halt_reg = 0x31088,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x31088,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cnoc_pcie0_1lane_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie0_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cnoc_pcie1_1lane_s_clk = {
- .halt_reg = 0x3108c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3108c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cnoc_pcie1_1lane_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie1_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cnoc_pcie2_2lane_s_clk = {
- .halt_reg = 0x31090,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x31090,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cnoc_pcie2_2lane_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie2_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cnoc_pcie3_2lane_s_clk = {
- .halt_reg = 0x31094,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x31094,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cnoc_pcie3_2lane_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie3_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cnoc_usb_clk = {
- .halt_reg = 0x310a8,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x310a8,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cnoc_usb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_usb0_master_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_mdio_ahb_clk = {
- .halt_reg = 0x17040,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17040,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_mdio_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nss_ts_clk = {
- .halt_reg = 0x17018,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x17018,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nss_ts_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_nss_ts_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nsscc_clk = {
- .halt_reg = 0x17034,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17034,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nsscc_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nsscfg_clk = {
- .halt_reg = 0x1702c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x1702c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nsscfg_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_atb_clk = {
- .halt_reg = 0x17014,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17014,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_atb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qdss_at_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_nsscc_clk = {
- .halt_reg = 0x17030,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17030,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_nsscc_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_pcnoc_1_clk = {
- .halt_reg = 0x17080,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17080,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_pcnoc_1_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_qosgen_ref_clk = {
- .halt_reg = 0x1701c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x1701c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_qosgen_ref_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_xo_div4_clk_src.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_snoc_1_clk = {
- .halt_reg = 0x1707c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x1707c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_snoc_1_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_system_noc_bfdcd_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_snoc_clk = {
- .halt_reg = 0x17028,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17028,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_snoc_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_system_noc_bfdcd_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_timeout_ref_clk = {
- .halt_reg = 0x17020,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17020,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_timeout_ref_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_xo_div4_clk_src.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_nssnoc_xo_dcd_clk = {
- .halt_reg = 0x17074,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x17074,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_nssnoc_xo_dcd_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_xo_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie0_ahb_clk = {
- .halt_reg = 0x28030,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x28030,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie0_aux_clk = {
- .halt_reg = 0x28070,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x28070,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_aux_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie_aux_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie0_axi_m_clk = {
- .halt_reg = 0x28038,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x28038,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_axi_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie0_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_anoc_pcie0_1lane_m_clk = {
- .halt_reg = 0x2e07c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2e07c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_anoc_pcie0_1lane_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie0_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie0_axi_s_bridge_clk = {
- .halt_reg = 0x28048,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x28048,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_axi_s_bridge_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie0_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie0_axi_s_clk = {
- .halt_reg = 0x28040,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x28040,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_axi_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie0_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_regmap_phy_mux gcc_pcie0_pipe_clk_src = {
- .reg = 0x28064,
- .clkr = {
- .hw.init = &(const struct clk_init_data) {
- .name = "pcie0_pipe_clk_src",
- .parent_data = &(const struct clk_parent_data) {
- .index = DT_PCIE30_PHY0_PIPE_CLK,
- },
- .num_parents = 1,
- .ops = &clk_regmap_phy_mux_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie0_pipe_clk = {
- .halt_reg = 0x28068,
- .halt_check = BRANCH_HALT_DELAY,
- .clkr = {
- .enable_reg = 0x28068,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_pipe_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie0_pipe_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie1_ahb_clk = {
- .halt_reg = 0x29030,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x29030,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie1_aux_clk = {
- .halt_reg = 0x29074,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x29074,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_aux_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie_aux_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie1_axi_m_clk = {
- .halt_reg = 0x29038,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x29038,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_axi_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie1_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_anoc_pcie1_1lane_m_clk = {
- .halt_reg = 0x2e084,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2e084,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_anoc_pcie1_1lane_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie1_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie1_axi_s_bridge_clk = {
- .halt_reg = 0x29048,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x29048,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_axi_s_bridge_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie1_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie1_axi_s_clk = {
- .halt_reg = 0x29040,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x29040,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_axi_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie1_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_regmap_phy_mux gcc_pcie1_pipe_clk_src = {
- .reg = 0x29064,
- .clkr = {
- .hw.init = &(const struct clk_init_data) {
- .name = "pcie1_pipe_clk_src",
- .parent_data = &(const struct clk_parent_data) {
- .index = DT_PCIE30_PHY1_PIPE_CLK,
- },
- .num_parents = 1,
- .ops = &clk_regmap_phy_mux_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie1_pipe_clk = {
- .halt_reg = 0x29068,
- .halt_check = BRANCH_HALT_DELAY,
- .clkr = {
- .enable_reg = 0x29068,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_pipe_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie1_pipe_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie2_ahb_clk = {
- .halt_reg = 0x2a030,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2a030,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie2_aux_clk = {
- .halt_reg = 0x2a078,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2a078,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_aux_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie_aux_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie2_axi_m_clk = {
- .halt_reg = 0x2a038,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2a038,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_axi_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie2_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_anoc_pcie2_2lane_m_clk = {
- .halt_reg = 0x2e080,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2e080,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_anoc_pcie2_2lane_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie2_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie2_axi_s_bridge_clk = {
- .halt_reg = 0x2a048,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2a048,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_axi_s_bridge_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie2_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie2_axi_s_clk = {
- .halt_reg = 0x2a040,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2a040,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_axi_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie2_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_regmap_phy_mux gcc_pcie2_pipe_clk_src = {
- .reg = 0x2a064,
- .clkr = {
- .hw.init = &(const struct clk_init_data) {
- .name = "pcie2_pipe_clk_src",
- .parent_data = &(const struct clk_parent_data) {
- .index = DT_PCIE30_PHY2_PIPE_CLK,
- },
- .num_parents = 1,
- .ops = &clk_regmap_phy_mux_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie2_pipe_clk = {
- .halt_reg = 0x2a068,
- .halt_check = BRANCH_HALT_DELAY,
- .clkr = {
- .enable_reg = 0x2a068,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_pipe_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie2_pipe_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie3_ahb_clk = {
- .halt_reg = 0x2b030,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2b030,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie3_aux_clk = {
- .halt_reg = 0x2b07c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2b07c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_aux_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie_aux_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie3_axi_m_clk = {
- .halt_reg = 0x2b038,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2b038,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_axi_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie3_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_anoc_pcie3_2lane_m_clk = {
- .halt_reg = 0x2e090,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2e090,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_anoc_pcie3_2lane_m_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie3_axi_m_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie3_axi_s_bridge_clk = {
- .halt_reg = 0x2b048,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2b048,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_axi_s_bridge_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie3_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie3_axi_s_clk = {
- .halt_reg = 0x2b040,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2b040,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_axi_s_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcie3_axi_s_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_regmap_phy_mux gcc_pcie3_pipe_clk_src = {
- .reg = 0x2b064,
- .clkr = {
- .hw.init = &(const struct clk_init_data) {
- .name = "pcie3_pipe_clk_src",
- .parent_data = &(const struct clk_parent_data) {
- .index = DT_PCIE30_PHY3_PIPE_CLK,
- },
- .num_parents = 1,
- .ops = &clk_regmap_phy_mux_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie3_pipe_clk = {
- .halt_reg = 0x2b068,
- .halt_check = BRANCH_HALT_DELAY,
- .clkr = {
- .enable_reg = 0x2b068,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_pipe_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie3_pipe_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_prng_ahb_clk = {
- .halt_reg = 0x13024,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0xb004,
- .enable_mask = BIT(10),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_prng_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_ahb_mst_clk = {
- .halt_reg = 0x1014,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0xb004,
- .enable_mask = BIT(14),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_ahb_mst_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_ahb_slv_clk = {
- .halt_reg = 0x102c,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0xb004,
- .enable_mask = BIT(4),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_ahb_slv_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_i2c0_clk = {
- .halt_reg = 0x2024,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2024,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_i2c0_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_i2c0_div_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_i2c1_clk = {
- .halt_reg = 0x3024,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3024,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_i2c1_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_i2c1_div_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_spi0_clk = {
- .halt_reg = 0x4020,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x4020,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_spi0_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_spi0_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_spi1_clk = {
- .halt_reg = 0x5020,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x5020,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_spi1_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_spi1_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_uart0_clk = {
- .halt_reg = 0x2040,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2040,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_uart0_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_uart0_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qupv3_uart1_clk = {
- .halt_reg = 0x3040,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3040,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qupv3_uart1_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qupv3_uart1_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_sdcc1_ahb_clk = {
- .halt_reg = 0x3303c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3303c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_sdcc1_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_sdcc1_apps_clk = {
- .halt_reg = 0x3302c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3302c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_sdcc1_apps_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_sdcc1_apps_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_sdcc1_ice_core_clk = {
- .halt_reg = 0x33034,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x33034,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_sdcc1_ice_core_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_sdcc1_ice_core_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_uniphy0_ahb_clk = {
- .halt_reg = 0x1704c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x1704c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_uniphy0_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_uniphy0_sys_clk = {
- .halt_reg = 0x17048,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x17048,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_uniphy0_sys_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_uniphy_sys_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_uniphy1_ahb_clk = {
- .halt_reg = 0x1705c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x1705c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_uniphy1_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_uniphy1_sys_clk = {
- .halt_reg = 0x17058,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x17058,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_uniphy1_sys_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_uniphy_sys_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_uniphy2_ahb_clk = {
- .halt_reg = 0x1706c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x1706c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_uniphy2_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_uniphy2_sys_clk = {
- .halt_reg = 0x17068,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x17068,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_uniphy2_sys_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_uniphy_sys_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb0_aux_clk = {
- .halt_reg = 0x2c04c,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x2c04c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_aux_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_usb0_aux_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb0_master_clk = {
- .halt_reg = 0x2c044,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x2c044,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_master_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_usb0_master_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb0_mock_utmi_clk = {
- .halt_reg = 0x2c050,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x2c050,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_mock_utmi_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_usb0_mock_utmi_div_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb1_mock_utmi_clk = {
- .halt_reg = 0x3c024,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x3c024,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb1_mock_utmi_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_usb1_mock_utmi_div_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb0_phy_cfg_ahb_clk = {
- .halt_reg = 0x2c05c,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x2c05c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_phy_cfg_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb1_phy_cfg_ahb_clk = {
- .halt_reg = 0x3c01c,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x3c01c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb1_phy_cfg_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb1_master_clk = {
- .halt_reg = 0x3c028,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x3c028,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb1_master_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_regmap_phy_mux gcc_usb0_pipe_clk_src = {
- .reg = 0x2c074,
- .clkr = {
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_pipe_clk_src",
- .parent_data = &(const struct clk_parent_data) {
- .index = DT_USB_PCIE_WRAPPER_PIPE_CLK,
- },
- .num_parents = 1,
- .ops = &clk_regmap_phy_mux_ops,
- },
- },
- };
- static struct clk_branch gcc_usb0_pipe_clk = {
- .halt_reg = 0x2c054,
- .halt_check = BRANCH_HALT_DELAY,
- .clkr = {
- .enable_reg = 0x2c054,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_pipe_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_usb0_pipe_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb0_sleep_clk = {
- .halt_reg = 0x2c058,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x2c058,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_sleep_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_sleep_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb1_sleep_clk = {
- .halt_reg = 0x3c020,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x3c020,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb1_sleep_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_sleep_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cmn_12gpll_ahb_clk = {
- .halt_reg = 0x3a004,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3a004,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cmn_12gpll_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cmn_12gpll_sys_clk = {
- .halt_reg = 0x3a008,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3a008,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cmn_12gpll_sys_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_uniphy_sys_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_lpass_sway_clk = {
- .halt_reg = 0x27014,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x27014,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_lpass_sway_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_lpass_sway_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_cnoc_lpass_cfg_clk = {
- .halt_reg = 0x2e028,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x2e028,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_cnoc_lpass_cfg_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_lpass_sway_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_lpass_core_axim_clk = {
- .halt_reg = 0x27018,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x27018,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_lpass_core_axim_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_lpass_axim_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_snoc_lpass_clk = {
- .halt_reg = 0x31020,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x31020,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_snoc_lpass_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_lpass_axim_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_usb0_eud_at_clk = {
- .halt_reg = 0x30004,
- .halt_check = BRANCH_HALT_VOTED,
- .clkr = {
- .enable_reg = 0x30004,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_usb0_eud_at_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_eud_at_div_clk_src.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qpic_ahb_clk = {
- .halt_reg = 0x32010,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x32010,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qpic_ahb_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_pcnoc_bfdcd_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qpic_clk = {
- .halt_reg = 0x32028,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x32028,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qpic_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qpic_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qpic_io_macro_clk = {
- .halt_reg = 0x3200c,
- .halt_check = BRANCH_HALT,
- .clkr = {
- .enable_reg = 0x3200c,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qpic_io_macro_clk",
- .parent_hws = (const struct clk_hw*[]) {
- &gcc_qpic_io_macro_clk_src.clkr.hw,
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qdss_dap_clk = {
- .halt_reg = 0x2d058,
- .clkr = {
- .enable_reg = 0x2d058,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qdss_dap_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_qdss_dap_sync_clk_src.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_qdss_at_clk = {
- .halt_reg = 0x2d034,
- .clkr = {
- .enable_reg = 0x2d034,
- .enable_mask = BIT(0),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_qdss_at_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_qdss_at_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie0_rchng_clk = {
- .halt_reg = 0x28028,
- .clkr = {
- .enable_reg = 0x28028,
- .enable_mask = BIT(1),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie0_rchng_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie0_rchng_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie1_rchng_clk = {
- .halt_reg = 0x29028,
- .clkr = {
- .enable_reg = 0x29028,
- .enable_mask = BIT(1),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie1_rchng_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie1_rchng_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie2_rchng_clk = {
- .halt_reg = 0x2a028,
- .clkr = {
- .enable_reg = 0x2a028,
- .enable_mask = BIT(1),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie2_rchng_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie2_rchng_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_branch gcc_pcie3_rchng_clk = {
- .halt_reg = 0x2b028,
- .clkr = {
- .enable_reg = 0x2b028,
- .enable_mask = BIT(1),
- .hw.init = &(const struct clk_init_data) {
- .name = "gcc_pcie3_rchng_clk",
- .parent_hws = (const struct clk_hw *[]) {
- &gcc_pcie3_rchng_clk_src.clkr.hw
- },
- .num_parents = 1,
- .flags = CLK_SET_RATE_PARENT,
- .ops = &clk_branch2_ops,
- },
- },
- };
- static struct clk_regmap *gcc_ipq5424_clocks[] = {
- [GCC_ADSS_PWM_CLK] = &gcc_adss_pwm_clk.clkr,
- [GCC_ADSS_PWM_CLK_SRC] = &gcc_adss_pwm_clk_src.clkr,
- [GCC_CNOC_PCIE0_1LANE_S_CLK] = &gcc_cnoc_pcie0_1lane_s_clk.clkr,
- [GCC_CNOC_PCIE1_1LANE_S_CLK] = &gcc_cnoc_pcie1_1lane_s_clk.clkr,
- [GCC_CNOC_PCIE2_2LANE_S_CLK] = &gcc_cnoc_pcie2_2lane_s_clk.clkr,
- [GCC_CNOC_PCIE3_2LANE_S_CLK] = &gcc_cnoc_pcie3_2lane_s_clk.clkr,
- [GCC_CNOC_USB_CLK] = &gcc_cnoc_usb_clk.clkr,
- [GCC_MDIO_AHB_CLK] = &gcc_mdio_ahb_clk.clkr,
- [GCC_NSS_TS_CLK] = &gcc_nss_ts_clk.clkr,
- [GCC_NSS_TS_CLK_SRC] = &gcc_nss_ts_clk_src.clkr,
- [GCC_NSSCC_CLK] = &gcc_nsscc_clk.clkr,
- [GCC_NSSCFG_CLK] = &gcc_nsscfg_clk.clkr,
- [GCC_NSSNOC_ATB_CLK] = &gcc_nssnoc_atb_clk.clkr,
- [GCC_NSSNOC_NSSCC_CLK] = &gcc_nssnoc_nsscc_clk.clkr,
- [GCC_NSSNOC_PCNOC_1_CLK] = &gcc_nssnoc_pcnoc_1_clk.clkr,
- [GCC_NSSNOC_QOSGEN_REF_CLK] = &gcc_nssnoc_qosgen_ref_clk.clkr,
- [GCC_NSSNOC_SNOC_1_CLK] = &gcc_nssnoc_snoc_1_clk.clkr,
- [GCC_NSSNOC_SNOC_CLK] = &gcc_nssnoc_snoc_clk.clkr,
- [GCC_NSSNOC_TIMEOUT_REF_CLK] = &gcc_nssnoc_timeout_ref_clk.clkr,
- [GCC_NSSNOC_XO_DCD_CLK] = &gcc_nssnoc_xo_dcd_clk.clkr,
- [GCC_PCIE0_AHB_CLK] = &gcc_pcie0_ahb_clk.clkr,
- [GCC_PCIE0_AUX_CLK] = &gcc_pcie0_aux_clk.clkr,
- [GCC_PCIE0_AXI_M_CLK] = &gcc_pcie0_axi_m_clk.clkr,
- [GCC_PCIE0_AXI_M_CLK_SRC] = &gcc_pcie0_axi_m_clk_src.clkr,
- [GCC_PCIE0_AXI_S_BRIDGE_CLK] = &gcc_pcie0_axi_s_bridge_clk.clkr,
- [GCC_PCIE0_AXI_S_CLK] = &gcc_pcie0_axi_s_clk.clkr,
- [GCC_PCIE0_AXI_S_CLK_SRC] = &gcc_pcie0_axi_s_clk_src.clkr,
- [GCC_PCIE0_PIPE_CLK] = &gcc_pcie0_pipe_clk.clkr,
- [GCC_ANOC_PCIE0_1LANE_M_CLK] = &gcc_anoc_pcie0_1lane_m_clk.clkr,
- [GCC_PCIE0_PIPE_CLK_SRC] = &gcc_pcie0_pipe_clk_src.clkr,
- [GCC_PCIE0_RCHNG_CLK_SRC] = &gcc_pcie0_rchng_clk_src.clkr,
- [GCC_PCIE0_RCHNG_CLK] = &gcc_pcie0_rchng_clk.clkr,
- [GCC_PCIE1_AHB_CLK] = &gcc_pcie1_ahb_clk.clkr,
- [GCC_PCIE1_AUX_CLK] = &gcc_pcie1_aux_clk.clkr,
- [GCC_PCIE1_AXI_M_CLK] = &gcc_pcie1_axi_m_clk.clkr,
- [GCC_PCIE1_AXI_M_CLK_SRC] = &gcc_pcie1_axi_m_clk_src.clkr,
- [GCC_PCIE1_AXI_S_BRIDGE_CLK] = &gcc_pcie1_axi_s_bridge_clk.clkr,
- [GCC_PCIE1_AXI_S_CLK] = &gcc_pcie1_axi_s_clk.clkr,
- [GCC_PCIE1_AXI_S_CLK_SRC] = &gcc_pcie1_axi_s_clk_src.clkr,
- [GCC_PCIE1_PIPE_CLK] = &gcc_pcie1_pipe_clk.clkr,
- [GCC_ANOC_PCIE1_1LANE_M_CLK] = &gcc_anoc_pcie1_1lane_m_clk.clkr,
- [GCC_PCIE1_PIPE_CLK_SRC] = &gcc_pcie1_pipe_clk_src.clkr,
- [GCC_PCIE1_RCHNG_CLK_SRC] = &gcc_pcie1_rchng_clk_src.clkr,
- [GCC_PCIE1_RCHNG_CLK] = &gcc_pcie1_rchng_clk.clkr,
- [GCC_PCIE2_AHB_CLK] = &gcc_pcie2_ahb_clk.clkr,
- [GCC_PCIE2_AUX_CLK] = &gcc_pcie2_aux_clk.clkr,
- [GCC_PCIE2_AXI_M_CLK] = &gcc_pcie2_axi_m_clk.clkr,
- [GCC_PCIE2_AXI_M_CLK_SRC] = &gcc_pcie2_axi_m_clk_src.clkr,
- [GCC_PCIE2_AXI_S_BRIDGE_CLK] = &gcc_pcie2_axi_s_bridge_clk.clkr,
- [GCC_PCIE2_AXI_S_CLK] = &gcc_pcie2_axi_s_clk.clkr,
- [GCC_PCIE2_AXI_S_CLK_SRC] = &gcc_pcie2_axi_s_clk_src.clkr,
- [GCC_PCIE2_PIPE_CLK] = &gcc_pcie2_pipe_clk.clkr,
- [GCC_ANOC_PCIE2_2LANE_M_CLK] = &gcc_anoc_pcie2_2lane_m_clk.clkr,
- [GCC_PCIE2_PIPE_CLK_SRC] = &gcc_pcie2_pipe_clk_src.clkr,
- [GCC_PCIE2_RCHNG_CLK_SRC] = &gcc_pcie2_rchng_clk_src.clkr,
- [GCC_PCIE2_RCHNG_CLK] = &gcc_pcie2_rchng_clk.clkr,
- [GCC_PCIE3_AHB_CLK] = &gcc_pcie3_ahb_clk.clkr,
- [GCC_PCIE3_AUX_CLK] = &gcc_pcie3_aux_clk.clkr,
- [GCC_PCIE3_AXI_M_CLK] = &gcc_pcie3_axi_m_clk.clkr,
- [GCC_PCIE3_AXI_M_CLK_SRC] = &gcc_pcie3_axi_m_clk_src.clkr,
- [GCC_PCIE3_AXI_S_BRIDGE_CLK] = &gcc_pcie3_axi_s_bridge_clk.clkr,
- [GCC_PCIE3_AXI_S_CLK] = &gcc_pcie3_axi_s_clk.clkr,
- [GCC_PCIE3_AXI_S_CLK_SRC] = &gcc_pcie3_axi_s_clk_src.clkr,
- [GCC_PCIE3_PIPE_CLK] = &gcc_pcie3_pipe_clk.clkr,
- [GCC_ANOC_PCIE3_2LANE_M_CLK] = &gcc_anoc_pcie3_2lane_m_clk.clkr,
- [GCC_PCIE3_PIPE_CLK_SRC] = &gcc_pcie3_pipe_clk_src.clkr,
- [GCC_PCIE3_RCHNG_CLK_SRC] = &gcc_pcie3_rchng_clk_src.clkr,
- [GCC_PCIE3_RCHNG_CLK] = &gcc_pcie3_rchng_clk.clkr,
- [GCC_PCIE_AUX_CLK_SRC] = &gcc_pcie_aux_clk_src.clkr,
- [GCC_PRNG_AHB_CLK] = &gcc_prng_ahb_clk.clkr,
- [GCC_QUPV3_AHB_MST_CLK] = &gcc_qupv3_ahb_mst_clk.clkr,
- [GCC_QUPV3_AHB_SLV_CLK] = &gcc_qupv3_ahb_slv_clk.clkr,
- [GCC_QUPV3_I2C0_CLK] = &gcc_qupv3_i2c0_clk.clkr,
- [GCC_QUPV3_I2C0_CLK_SRC] = &gcc_qupv3_i2c0_clk_src.clkr,
- [GCC_QUPV3_I2C0_DIV_CLK_SRC] = &gcc_qupv3_i2c0_div_clk_src.clkr,
- [GCC_QUPV3_I2C1_CLK] = &gcc_qupv3_i2c1_clk.clkr,
- [GCC_QUPV3_I2C1_CLK_SRC] = &gcc_qupv3_i2c1_clk_src.clkr,
- [GCC_QUPV3_I2C1_DIV_CLK_SRC] = &gcc_qupv3_i2c1_div_clk_src.clkr,
- [GCC_QUPV3_SPI0_CLK] = &gcc_qupv3_spi0_clk.clkr,
- [GCC_QUPV3_SPI0_CLK_SRC] = &gcc_qupv3_spi0_clk_src.clkr,
- [GCC_QUPV3_SPI1_CLK] = &gcc_qupv3_spi1_clk.clkr,
- [GCC_QUPV3_SPI1_CLK_SRC] = &gcc_qupv3_spi1_clk_src.clkr,
- [GCC_QUPV3_UART0_CLK] = &gcc_qupv3_uart0_clk.clkr,
- [GCC_QUPV3_UART0_CLK_SRC] = &gcc_qupv3_uart0_clk_src.clkr,
- [GCC_QUPV3_UART1_CLK] = &gcc_qupv3_uart1_clk.clkr,
- [GCC_QUPV3_UART1_CLK_SRC] = &gcc_qupv3_uart1_clk_src.clkr,
- [GCC_SDCC1_AHB_CLK] = &gcc_sdcc1_ahb_clk.clkr,
- [GCC_SDCC1_APPS_CLK] = &gcc_sdcc1_apps_clk.clkr,
- [GCC_SDCC1_APPS_CLK_SRC] = &gcc_sdcc1_apps_clk_src.clkr,
- [GCC_SDCC1_ICE_CORE_CLK] = &gcc_sdcc1_ice_core_clk.clkr,
- [GCC_SDCC1_ICE_CORE_CLK_SRC] = &gcc_sdcc1_ice_core_clk_src.clkr,
- [GCC_UNIPHY0_AHB_CLK] = &gcc_uniphy0_ahb_clk.clkr,
- [GCC_UNIPHY0_SYS_CLK] = &gcc_uniphy0_sys_clk.clkr,
- [GCC_UNIPHY1_AHB_CLK] = &gcc_uniphy1_ahb_clk.clkr,
- [GCC_UNIPHY1_SYS_CLK] = &gcc_uniphy1_sys_clk.clkr,
- [GCC_UNIPHY2_AHB_CLK] = &gcc_uniphy2_ahb_clk.clkr,
- [GCC_UNIPHY2_SYS_CLK] = &gcc_uniphy2_sys_clk.clkr,
- [GCC_UNIPHY_SYS_CLK_SRC] = &gcc_uniphy_sys_clk_src.clkr,
- [GCC_USB0_AUX_CLK] = &gcc_usb0_aux_clk.clkr,
- [GCC_USB0_AUX_CLK_SRC] = &gcc_usb0_aux_clk_src.clkr,
- [GCC_USB0_MASTER_CLK] = &gcc_usb0_master_clk.clkr,
- [GCC_USB0_MASTER_CLK_SRC] = &gcc_usb0_master_clk_src.clkr,
- [GCC_USB0_MOCK_UTMI_CLK] = &gcc_usb0_mock_utmi_clk.clkr,
- [GCC_USB0_MOCK_UTMI_CLK_SRC] = &gcc_usb0_mock_utmi_clk_src.clkr,
- [GCC_USB0_MOCK_UTMI_DIV_CLK_SRC] = &gcc_usb0_mock_utmi_div_clk_src.clkr,
- [GCC_USB0_EUD_AT_CLK] = &gcc_usb0_eud_at_clk.clkr,
- [GCC_USB0_PIPE_CLK_SRC] = &gcc_usb0_pipe_clk_src.clkr,
- [GCC_USB1_MOCK_UTMI_CLK] = &gcc_usb1_mock_utmi_clk.clkr,
- [GCC_USB1_MOCK_UTMI_CLK_SRC] = &gcc_usb1_mock_utmi_clk_src.clkr,
- [GCC_USB1_MOCK_UTMI_DIV_CLK_SRC] = &gcc_usb1_mock_utmi_div_clk_src.clkr,
- [GCC_USB0_PHY_CFG_AHB_CLK] = &gcc_usb0_phy_cfg_ahb_clk.clkr,
- [GCC_USB1_PHY_CFG_AHB_CLK] = &gcc_usb1_phy_cfg_ahb_clk.clkr,
- [GCC_USB0_PIPE_CLK] = &gcc_usb0_pipe_clk.clkr,
- [GCC_USB0_SLEEP_CLK] = &gcc_usb0_sleep_clk.clkr,
- [GCC_USB1_SLEEP_CLK] = &gcc_usb1_sleep_clk.clkr,
- [GCC_USB1_MASTER_CLK] = &gcc_usb1_master_clk.clkr,
- [GCC_WCSS_AHB_CLK_SRC] = &gcc_wcss_ahb_clk_src.clkr,
- [GCC_CMN_12GPLL_AHB_CLK] = &gcc_cmn_12gpll_ahb_clk.clkr,
- [GCC_CMN_12GPLL_SYS_CLK] = &gcc_cmn_12gpll_sys_clk.clkr,
- [GCC_LPASS_SWAY_CLK] = &gcc_lpass_sway_clk.clkr,
- [GCC_CNOC_LPASS_CFG_CLK] = &gcc_cnoc_lpass_cfg_clk.clkr,
- [GCC_LPASS_CORE_AXIM_CLK] = &gcc_lpass_core_axim_clk.clkr,
- [GCC_SNOC_LPASS_CLK] = &gcc_snoc_lpass_clk.clkr,
- [GCC_QDSS_AT_CLK_SRC] = &gcc_qdss_at_clk_src.clkr,
- [GCC_QDSS_TSCTR_CLK_SRC] = &gcc_qdss_tsctr_clk_src.clkr,
- [GCC_SYSTEM_NOC_BFDCD_CLK_SRC] = &gcc_system_noc_bfdcd_clk_src.clkr,
- [GCC_PCNOC_BFDCD_CLK_SRC] = &gcc_pcnoc_bfdcd_clk_src.clkr,
- [GCC_LPASS_SWAY_CLK_SRC] = &gcc_lpass_sway_clk_src.clkr,
- [GCC_LPASS_AXIM_CLK_SRC] = &gcc_lpass_axim_clk_src.clkr,
- [GCC_SLEEP_CLK_SRC] = &gcc_sleep_clk_src.clkr,
- [GCC_QPIC_IO_MACRO_CLK] = &gcc_qpic_io_macro_clk.clkr,
- [GCC_QPIC_IO_MACRO_CLK_SRC] = &gcc_qpic_io_macro_clk_src.clkr,
- [GCC_QPIC_CLK] = &gcc_qpic_clk.clkr,
- [GCC_QPIC_CLK_SRC] = &gcc_qpic_clk_src.clkr,
- [GCC_QPIC_AHB_CLK] = &gcc_qpic_ahb_clk.clkr,
- [GCC_XO_CLK_SRC] = &gcc_xo_clk_src.clkr,
- [GCC_XO_CLK] = &gcc_xo_clk.clkr,
- [GCC_QDSS_DAP_CLK] = &gcc_qdss_dap_clk.clkr,
- [GCC_QDSS_AT_CLK] = &gcc_qdss_at_clk.clkr,
- [GPLL0] = &gpll0.clkr,
- [GPLL2] = &gpll2.clkr,
- [GPLL2_OUT_MAIN] = &gpll2_out_main.clkr,
- [GPLL4] = &gpll4.clkr,
- [GPLL0_OUT_AUX] = &gpll0_out_aux.clkr,
- };
- static const struct qcom_reset_map gcc_ipq5424_resets[] = {
- [GCC_QUPV3_BCR] = { 0x01000, 0 },
- [GCC_QUPV3_I2C0_BCR] = { 0x02000, 0 },
- [GCC_QUPV3_UART0_BCR] = { 0x02020, 0 },
- [GCC_QUPV3_I2C1_BCR] = { 0x03000, 0 },
- [GCC_QUPV3_UART1_BCR] = { 0x03028, 0 },
- [GCC_QUPV3_SPI0_BCR] = { 0x04000, 0 },
- [GCC_QUPV3_SPI1_BCR] = { 0x05000, 0 },
- [GCC_IMEM_BCR] = { 0x0e000, 0 },
- [GCC_TME_BCR] = { 0x100000, 0 },
- [GCC_DDRSS_BCR] = { 0x11000, 0 },
- [GCC_PRNG_BCR] = { 0x13020, 0 },
- [GCC_BOOT_ROM_BCR] = { 0x13028, 0 },
- [GCC_NSS_BCR] = { 0x17000, 0 },
- [GCC_MDIO_BCR] = { 0x1703c, 0 },
- [GCC_UNIPHY0_BCR] = { 0x17044, 0 },
- [GCC_UNIPHY1_BCR] = { 0x17054, 0 },
- [GCC_UNIPHY2_BCR] = { 0x17064, 0 },
- [GCC_WCSS_BCR] = { 0x18004, 0 },
- [GCC_SEC_CTRL_BCR] = { 0x1a000, 0 },
- [GCC_TME_SEC_BUS_BCR] = { 0xa1030, 0 },
- [GCC_ADSS_BCR] = { 0x1c000, 0 },
- [GCC_LPASS_BCR] = { 0x27000, 0 },
- [GCC_PCIE0_BCR] = { 0x28000, 0 },
- [GCC_PCIE0_LINK_DOWN_BCR] = { 0x28054, 0 },
- [GCC_PCIE0PHY_PHY_BCR] = { 0x2805c, 0 },
- [GCC_PCIE0_PHY_BCR] = { 0x28060, 0 },
- [GCC_PCIE1_BCR] = { 0x29000, 0 },
- [GCC_PCIE1_LINK_DOWN_BCR] = { 0x29054, 0 },
- [GCC_PCIE1PHY_PHY_BCR] = { 0x2905c, 0 },
- [GCC_PCIE1_PHY_BCR] = { 0x29060, 0 },
- [GCC_PCIE2_BCR] = { 0x2a000, 0 },
- [GCC_PCIE2_LINK_DOWN_BCR] = { 0x2a054, 0 },
- [GCC_PCIE2PHY_PHY_BCR] = { 0x2a05c, 0 },
- [GCC_PCIE2_PHY_BCR] = { 0x2a060, 0 },
- [GCC_PCIE3_BCR] = { 0x2b000, 0 },
- [GCC_PCIE3_LINK_DOWN_BCR] = { 0x2b054, 0 },
- [GCC_PCIE3PHY_PHY_BCR] = { 0x2b05c, 0 },
- [GCC_PCIE3_PHY_BCR] = { 0x2b060, 0 },
- [GCC_USB_BCR] = { 0x2c000, 0 },
- [GCC_QUSB2_0_PHY_BCR] = { 0x2c068, 0 },
- [GCC_USB0_PHY_BCR] = { 0x2c06c, 0 },
- [GCC_USB3PHY_0_PHY_BCR] = { 0x2c070, 0 },
- [GCC_QDSS_BCR] = { 0x2d000, 0 },
- [GCC_SNOC_BCR] = { 0x2e000, 0 },
- [GCC_ANOC_BCR] = { 0x2e074, 0 },
- [GCC_PCNOC_BCR] = { 0x31000, 0 },
- [GCC_PCNOC_BUS_TIMEOUT0_BCR] = { 0x31030, 0 },
- [GCC_PCNOC_BUS_TIMEOUT1_BCR] = { 0x31038, 0 },
- [GCC_PCNOC_BUS_TIMEOUT2_BCR] = { 0x31040, 0 },
- [GCC_PCNOC_BUS_TIMEOUT3_BCR] = { 0x31048, 0 },
- [GCC_PCNOC_BUS_TIMEOUT4_BCR] = { 0x31050, 0 },
- [GCC_PCNOC_BUS_TIMEOUT5_BCR] = { 0x31058, 0 },
- [GCC_PCNOC_BUS_TIMEOUT6_BCR] = { 0x31060, 0 },
- [GCC_PCNOC_BUS_TIMEOUT7_BCR] = { 0x31068, 0 },
- [GCC_PCNOC_BUS_TIMEOUT8_BCR] = { 0x31070, 0 },
- [GCC_PCNOC_BUS_TIMEOUT9_BCR] = { 0x31078, 0 },
- [GCC_QPIC_BCR] = { 0x32000, 0 },
- [GCC_SDCC_BCR] = { 0x33000, 0 },
- [GCC_DCC_BCR] = { 0x35000, 0 },
- [GCC_SPDM_BCR] = { 0x36000, 0 },
- [GCC_MPM_BCR] = { 0x37000, 0 },
- [GCC_APC0_VOLTAGE_DROOP_DETECTOR_BCR] = { 0x38000, 0 },
- [GCC_RBCPR_BCR] = { 0x39000, 0 },
- [GCC_CMN_BLK_BCR] = { 0x3a000, 0 },
- [GCC_TCSR_BCR] = { 0x3d000, 0 },
- [GCC_TLMM_BCR] = { 0x3e000, 0 },
- [GCC_QUPV3_AHB_MST_ARES] = { 0x01014, 2 },
- [GCC_QUPV3_CORE_ARES] = { 0x01018, 2 },
- [GCC_QUPV3_2X_CORE_ARES] = { 0x01020, 2 },
- [GCC_QUPV3_SLEEP_ARES] = { 0x01028, 2 },
- [GCC_QUPV3_AHB_SLV_ARES] = { 0x0102c, 2 },
- [GCC_QUPV3_I2C0_ARES] = { 0x02024, 2 },
- [GCC_QUPV3_UART0_ARES] = { 0x02040, 2 },
- [GCC_QUPV3_I2C1_ARES] = { 0x03024, 2 },
- [GCC_QUPV3_UART1_ARES] = { 0x03040, 2 },
- [GCC_QUPV3_SPI0_ARES] = { 0x04020, 2 },
- [GCC_QUPV3_SPI1_ARES] = { 0x05020, 2 },
- [GCC_DEBUG_ARES] = { 0x06068, 2 },
- [GCC_GP1_ARES] = { 0x08018, 2 },
- [GCC_GP2_ARES] = { 0x09018, 2 },
- [GCC_GP3_ARES] = { 0x0a018, 2 },
- [GCC_IMEM_AXI_ARES] = { 0x0e004, 2 },
- [GCC_IMEM_CFG_AHB_ARES] = { 0x0e00c, 2 },
- [GCC_TME_ARES] = { 0x100b4, 2 },
- [GCC_TME_TS_ARES] = { 0x100c0, 2 },
- [GCC_TME_SLOW_ARES] = { 0x100d0, 2 },
- [GCC_TME_RTC_TOGGLE_ARES] = { 0x100d8, 2 },
- [GCC_TIC_ARES] = { 0x12004, 2 },
- [GCC_PRNG_AHB_ARES] = { 0x13024, 2 },
- [GCC_BOOT_ROM_AHB_ARES] = { 0x1302c, 2 },
- [GCC_NSSNOC_ATB_ARES] = { 0x17014, 2 },
- [GCC_NSS_TS_ARES] = { 0x17018, 2 },
- [GCC_NSSNOC_QOSGEN_REF_ARES] = { 0x1701c, 2 },
- [GCC_NSSNOC_TIMEOUT_REF_ARES] = { 0x17020, 2 },
- [GCC_NSSNOC_MEMNOC_ARES] = { 0x17024, 2 },
- [GCC_NSSNOC_SNOC_ARES] = { 0x17028, 2 },
- [GCC_NSSCFG_ARES] = { 0x1702c, 2 },
- [GCC_NSSNOC_NSSCC_ARES] = { 0x17030, 2 },
- [GCC_NSSCC_ARES] = { 0x17034, 2 },
- [GCC_MDIO_AHB_ARES] = { 0x17040, 2 },
- [GCC_UNIPHY0_SYS_ARES] = { 0x17048, 2 },
- [GCC_UNIPHY0_AHB_ARES] = { 0x1704c, 2 },
- [GCC_UNIPHY1_SYS_ARES] = { 0x17058, 2 },
- [GCC_UNIPHY1_AHB_ARES] = { 0x1705c, 2 },
- [GCC_UNIPHY2_SYS_ARES] = { 0x17068, 2 },
- [GCC_UNIPHY2_AHB_ARES] = { 0x1706c, 2 },
- [GCC_NSSNOC_XO_DCD_ARES] = { 0x17074, 2 },
- [GCC_NSSNOC_SNOC_1_ARES] = { 0x1707c, 2 },
- [GCC_NSSNOC_PCNOC_1_ARES] = { 0x17080, 2 },
- [GCC_NSSNOC_MEMNOC_1_ARES] = { 0x17084, 2 },
- [GCC_DDRSS_ATB_ARES] = { 0x19004, 2 },
- [GCC_DDRSS_AHB_ARES] = { 0x19008, 2 },
- [GCC_GEMNOC_AHB_ARES] = { 0x1900c, 2 },
- [GCC_GEMNOC_Q6_AXI_ARES] = { 0x19010, 2 },
- [GCC_GEMNOC_NSSNOC_ARES] = { 0x19014, 2 },
- [GCC_GEMNOC_SNOC_ARES] = { 0x19018, 2 },
- [GCC_GEMNOC_APSS_ARES] = { 0x1901c, 2 },
- [GCC_GEMNOC_QOSGEN_EXTREF_ARES] = { 0x19024, 2 },
- [GCC_GEMNOC_TS_ARES] = { 0x19028, 2 },
- [GCC_DDRSS_SMS_SLOW_ARES] = { 0x1902c, 2 },
- [GCC_GEMNOC_CNOC_ARES] = { 0x19038, 2 },
- [GCC_GEMNOC_XO_DBG_ARES] = { 0x19040, 2 },
- [GCC_GEMNOC_ANOC_ARES] = { 0x19048, 2 },
- [GCC_DDRSS_LLCC_ATB_ARES] = { 0x1904c, 2 },
- [GCC_LLCC_TPDM_CFG_ARES] = { 0x19050, 2 },
- [GCC_TME_BUS_ARES] = { 0x1a014, 2 },
- [GCC_SEC_CTRL_ACC_ARES] = { 0x1a018, 2 },
- [GCC_SEC_CTRL_ARES] = { 0x1a020, 2 },
- [GCC_SEC_CTRL_SENSE_ARES] = { 0x1a028, 2 },
- [GCC_SEC_CTRL_AHB_ARES] = { 0x1a038, 2 },
- [GCC_SEC_CTRL_BOOT_ROM_PATCH_ARES] = { 0x1a03c, 2 },
- [GCC_ADSS_PWM_ARES] = { 0x1c00c, 2 },
- [GCC_TME_ATB_ARES] = { 0x1e030, 2 },
- [GCC_TME_DBGAPB_ARES] = { 0x1e034, 2 },
- [GCC_TME_DEBUG_ARES] = { 0x1e038, 2 },
- [GCC_TME_AT_ARES] = { 0x1e03C, 2 },
- [GCC_TME_APB_ARES] = { 0x1e040, 2 },
- [GCC_TME_DMI_DBG_HS_ARES] = { 0x1e044, 2 },
- [GCC_APSS_AHB_ARES] = { 0x24014, 2 },
- [GCC_APSS_AXI_ARES] = { 0x24018, 2 },
- [GCC_CPUSS_TRIG_ARES] = { 0x2401c, 2 },
- [GCC_APSS_DBG_ARES] = { 0x2402c, 2 },
- [GCC_APSS_TS_ARES] = { 0x24030, 2 },
- [GCC_APSS_ATB_ARES] = { 0x24034, 2 },
- [GCC_Q6_AXIM_ARES] = { 0x2500c, 2 },
- [GCC_Q6_AXIS_ARES] = { 0x25010, 2 },
- [GCC_Q6_AHB_ARES] = { 0x25014, 2 },
- [GCC_Q6_AHB_S_ARES] = { 0x25018, 2 },
- [GCC_Q6SS_ATBM_ARES] = { 0x2501c, 2 },
- [GCC_Q6_TSCTR_1TO2_ARES] = { 0x25020, 2 },
- [GCC_Q6SS_PCLKDBG_ARES] = { 0x25024, 2 },
- [GCC_Q6SS_TRIG_ARES] = { 0x25028, 2 },
- [GCC_Q6SS_BOOT_CBCR_ARES] = { 0x2502c, 2 },
- [GCC_WCSS_DBG_IFC_APB_ARES] = { 0x25038, 2 },
- [GCC_WCSS_DBG_IFC_ATB_ARES] = { 0x2503c, 2 },
- [GCC_WCSS_DBG_IFC_NTS_ARES] = { 0x25040, 2 },
- [GCC_WCSS_DBG_IFC_DAPBUS_ARES] = { 0x25044, 2 },
- [GCC_WCSS_DBG_IFC_APB_BDG_ARES] = { 0x25048, 2 },
- [GCC_WCSS_DBG_IFC_NTS_BDG_ARES] = { 0x25050, 2 },
- [GCC_WCSS_DBG_IFC_DAPBUS_BDG_ARES] = { 0x25054, 2 },
- [GCC_WCSS_ECAHB_ARES] = { 0x25058, 2 },
- [GCC_WCSS_ACMT_ARES] = { 0x2505c, 2 },
- [GCC_WCSS_AHB_S_ARES] = { 0x25060, 2 },
- [GCC_WCSS_AXI_M_ARES] = { 0x25064, 2 },
- [GCC_PCNOC_WAPSS_ARES] = { 0x25080, 2 },
- [GCC_SNOC_WAPSS_ARES] = { 0x25090, 2 },
- [GCC_LPASS_SWAY_ARES] = { 0x27014, 2 },
- [GCC_LPASS_CORE_AXIM_ARES] = { 0x27018, 2 },
- [GCC_PCIE0_AHB_ARES] = { 0x28030, 2 },
- [GCC_PCIE0_AXI_M_ARES] = { 0x28038, 2 },
- [GCC_PCIE0_AXI_S_ARES] = { 0x28040, 2 },
- [GCC_PCIE0_AXI_S_BRIDGE_ARES] = { 0x28048, 2},
- [GCC_PCIE0_PIPE_ARES] = { 0x28068, 2},
- [GCC_PCIE0_AUX_ARES] = { 0x28070, 2 },
- [GCC_PCIE1_AHB_ARES] = { 0x29030, 2 },
- [GCC_PCIE1_AXI_M_ARES] = { 0x29038, 2 },
- [GCC_PCIE1_AXI_S_ARES] = { 0x29040, 2 },
- [GCC_PCIE1_AXI_S_BRIDGE_ARES] = { 0x29048, 2 },
- [GCC_PCIE1_PIPE_ARES] = { 0x29068, 2 },
- [GCC_PCIE1_AUX_ARES] = { 0x29074, 2 },
- [GCC_PCIE2_AHB_ARES] = { 0x2a030, 2 },
- [GCC_PCIE2_AXI_M_ARES] = { 0x2a038, 2 },
- [GCC_PCIE2_AXI_S_ARES] = { 0x2a040, 2 },
- [GCC_PCIE2_AXI_S_BRIDGE_ARES] = { 0x2a048, 2 },
- [GCC_PCIE2_PIPE_ARES] = { 0x2a068, 2 },
- [GCC_PCIE2_AUX_ARES] = { 0x2a078, 2 },
- [GCC_PCIE3_AHB_ARES] = { 0x2b030, 2 },
- [GCC_PCIE3_AXI_M_ARES] = { 0x2b038, 2 },
- [GCC_PCIE3_AXI_S_ARES] = { 0x2b040, 2 },
- [GCC_PCIE3_AXI_S_BRIDGE_ARES] = { 0x2b048, 2 },
- [GCC_PCIE3_PIPE_ARES] = { 0x2b068, 2 },
- [GCC_PCIE3_AUX_ARES] = { 0x2b07C, 2 },
- [GCC_USB0_MASTER_ARES] = { 0x2c044, 2 },
- [GCC_USB0_AUX_ARES] = { 0x2c04c, 2 },
- [GCC_USB0_MOCK_UTMI_ARES] = { 0x2c050, 2 },
- [GCC_USB0_PIPE_ARES] = { 0x2c054, 2 },
- [GCC_USB0_SLEEP_ARES] = { 0x2c058, 2 },
- [GCC_USB0_PHY_CFG_AHB_ARES] = { 0x2c05c, 2 },
- [GCC_QDSS_AT_ARES] = { 0x2d034, 2 },
- [GCC_QDSS_STM_ARES] = { 0x2d03C, 2 },
- [GCC_QDSS_TRACECLKIN_ARES] = { 0x2d040, 2 },
- [GCC_QDSS_TSCTR_DIV2_ARES] = { 0x2d044, 2 },
- [GCC_QDSS_TSCTR_DIV3_ARES] = { 0x2d048, 2 },
- [GCC_QDSS_TSCTR_DIV4_ARES] = { 0x2d04c, 2 },
- [GCC_QDSS_TSCTR_DIV8_ARES] = { 0x2d050, 2 },
- [GCC_QDSS_TSCTR_DIV16_ARES] = { 0x2d054, 2 },
- [GCC_QDSS_DAP_ARES] = { 0x2d058, 2 },
- [GCC_QDSS_APB2JTAG_ARES] = { 0x2d05c, 2 },
- [GCC_QDSS_ETR_USB_ARES] = { 0x2d060, 2 },
- [GCC_QDSS_DAP_AHB_ARES] = { 0x2d064, 2 },
- [GCC_QDSS_CFG_AHB_ARES] = { 0x2d068, 2 },
- [GCC_QDSS_EUD_AT_ARES] = { 0x2d06c, 2 },
- [GCC_QDSS_TS_ARES] = { 0x2d078, 2 },
- [GCC_QDSS_USB_ARES] = { 0x2d07c, 2 },
- [GCC_SYS_NOC_AXI_ARES] = { 0x2e01c, 2 },
- [GCC_SNOC_QOSGEN_EXTREF_ARES] = { 0x2e020, 2 },
- [GCC_CNOC_LPASS_CFG_ARES] = { 0x2e028, 2 },
- [GCC_SYS_NOC_AT_ARES] = { 0x2e038, 2 },
- [GCC_SNOC_PCNOC_AHB_ARES] = { 0x2e03c, 2 },
- [GCC_SNOC_TME_ARES] = { 0x2e05c, 2 },
- [GCC_SNOC_XO_DCD_ARES] = { 0x2e060, 2 },
- [GCC_SNOC_TS_ARES] = { 0x2e068, 2 },
- [GCC_ANOC0_AXI_ARES] = { 0x2e078, 2 },
- [GCC_ANOC_PCIE0_1LANE_M_ARES] = { 0x2e07c, 2 },
- [GCC_ANOC_PCIE2_2LANE_M_ARES] = { 0x2e080, 2 },
- [GCC_ANOC_PCIE1_1LANE_M_ARES] = { 0x2e084, 2 },
- [GCC_ANOC_PCIE3_2LANE_M_ARES] = { 0x2e090, 2 },
- [GCC_ANOC_PCNOC_AHB_ARES] = { 0x2e094, 2 },
- [GCC_ANOC_QOSGEN_EXTREF_ARES] = { 0x2e098, 2 },
- [GCC_ANOC_XO_DCD_ARES] = { 0x2e09C, 2 },
- [GCC_SNOC_XO_DBG_ARES] = { 0x2e0a0, 2 },
- [GCC_AGGRNOC_ATB_ARES] = { 0x2e0ac, 2 },
- [GCC_AGGRNOC_TS_ARES] = { 0x2e0b0, 2 },
- [GCC_USB0_EUD_AT_ARES] = { 0x30004, 2 },
- [GCC_PCNOC_TIC_ARES] = { 0x31014, 2 },
- [GCC_PCNOC_AHB_ARES] = { 0x31018, 2 },
- [GCC_PCNOC_XO_DBG_ARES] = { 0x3101c, 2 },
- [GCC_SNOC_LPASS_ARES] = { 0x31020, 2 },
- [GCC_PCNOC_AT_ARES] = { 0x31024, 2 },
- [GCC_PCNOC_XO_DCD_ARES] = { 0x31028, 2 },
- [GCC_PCNOC_TS_ARES] = { 0x3102c, 2 },
- [GCC_PCNOC_BUS_TIMEOUT0_AHB_ARES] = { 0x31034, 2 },
- [GCC_PCNOC_BUS_TIMEOUT1_AHB_ARES] = { 0x3103c, 2 },
- [GCC_PCNOC_BUS_TIMEOUT2_AHB_ARES] = { 0x31044, 2 },
- [GCC_PCNOC_BUS_TIMEOUT3_AHB_ARES] = { 0x3104c, 2 },
- [GCC_PCNOC_BUS_TIMEOUT4_AHB_ARES] = { 0x31054, 2 },
- [GCC_PCNOC_BUS_TIMEOUT5_AHB_ARES] = { 0x3105c, 2 },
- [GCC_PCNOC_BUS_TIMEOUT6_AHB_ARES] = { 0x31064, 2 },
- [GCC_PCNOC_BUS_TIMEOUT7_AHB_ARES] = { 0x3106c, 2 },
- [GCC_Q6_AXIM_RESET] = { 0x2506c, 0 },
- [GCC_Q6_AXIS_RESET] = { 0x2506c, 1 },
- [GCC_Q6_AHB_S_RESET] = { 0x2506c, 2 },
- [GCC_Q6_AHB_RESET] = { 0x2506c, 3 },
- [GCC_Q6SS_DBG_RESET] = { 0x2506c, 4 },
- [GCC_WCSS_ECAHB_RESET] = { 0x25070, 0 },
- [GCC_WCSS_DBG_BDG_RESET] = { 0x25070, 1 },
- [GCC_WCSS_DBG_RESET] = { 0x25070, 2 },
- [GCC_WCSS_AXI_M_RESET] = { 0x25070, 3 },
- [GCC_WCSS_AHB_S_RESET] = { 0x25070, 4 },
- [GCC_WCSS_ACMT_RESET] = { 0x25070, 5 },
- [GCC_WCSSAON_RESET] = { 0x25074, 0 },
- [GCC_PCIE0_PIPE_RESET] = { 0x28058, 0 },
- [GCC_PCIE0_CORE_STICKY_RESET] = { 0x28058, 1 },
- [GCC_PCIE0_AXI_S_STICKY_RESET] = { 0x28058, 2 },
- [GCC_PCIE0_AXI_S_RESET] = { 0x28058, 3 },
- [GCC_PCIE0_AXI_M_STICKY_RESET] = { 0x28058, 4 },
- [GCC_PCIE0_AXI_M_RESET] = { 0x28058, 5 },
- [GCC_PCIE0_AUX_RESET] = { 0x28058, 6 },
- [GCC_PCIE0_AHB_RESET] = { 0x28058, 7 },
- [GCC_PCIE1_PIPE_RESET] = { 0x29058, 0 },
- [GCC_PCIE1_CORE_STICKY_RESET] = { 0x29058, 1 },
- [GCC_PCIE1_AXI_S_STICKY_RESET] = { 0x29058, 2 },
- [GCC_PCIE1_AXI_S_RESET] = { 0x29058, 3 },
- [GCC_PCIE1_AXI_M_STICKY_RESET] = { 0x29058, 4 },
- [GCC_PCIE1_AXI_M_RESET] = { 0x29058, 5 },
- [GCC_PCIE1_AUX_RESET] = { 0x29058, 6 },
- [GCC_PCIE1_AHB_RESET] = { 0x29058, 7 },
- [GCC_PCIE2_PIPE_RESET] = { 0x2a058, 0 },
- [GCC_PCIE2_CORE_STICKY_RESET] = { 0x2a058, 1 },
- [GCC_PCIE2_AXI_S_STICKY_RESET] = { 0x2a058, 2 },
- [GCC_PCIE2_AXI_S_RESET] = { 0x2a058, 3 },
- [GCC_PCIE2_AXI_M_STICKY_RESET] = { 0x2a058, 4 },
- [GCC_PCIE2_AXI_M_RESET] = { 0x2a058, 5 },
- [GCC_PCIE2_AUX_RESET] = { 0x2a058, 6 },
- [GCC_PCIE2_AHB_RESET] = { 0x2a058, 7 },
- [GCC_PCIE3_PIPE_RESET] = { 0x2b058, 0 },
- [GCC_PCIE3_CORE_STICKY_RESET] = { 0x2b058, 1 },
- [GCC_PCIE3_AXI_S_STICKY_RESET] = { 0x2b058, 2 },
- [GCC_PCIE3_AXI_S_RESET] = { 0x2b058, 3 },
- [GCC_PCIE3_AXI_M_STICKY_RESET] = { 0x2b058, 4 },
- [GCC_PCIE3_AXI_M_RESET] = { 0x2b058, 5 },
- [GCC_PCIE3_AUX_RESET] = { 0x2b058, 6 },
- [GCC_PCIE3_AHB_RESET] = { 0x2b058, 7 },
- [GCC_NSS_PARTIAL_RESET] = { 0x17078, 0 },
- [GCC_UNIPHY0_XPCS_ARES] = { 0x17050, 2 },
- [GCC_UNIPHY1_XPCS_ARES] = { 0x17060, 2 },
- [GCC_UNIPHY2_XPCS_ARES] = { 0x17070, 2 },
- [GCC_USB1_BCR] = { 0x3C000, 0 },
- [GCC_QUSB2_1_PHY_BCR] = { 0x3C030, 0 },
- };
- #define IPQ_APPS_ID 5424 /* some unique value */
- static const struct qcom_icc_hws_data icc_ipq5424_hws[] = {
- { MASTER_ANOC_PCIE0, SLAVE_ANOC_PCIE0, GCC_ANOC_PCIE0_1LANE_M_CLK },
- { MASTER_CNOC_PCIE0, SLAVE_CNOC_PCIE0, GCC_CNOC_PCIE0_1LANE_S_CLK },
- { MASTER_ANOC_PCIE1, SLAVE_ANOC_PCIE1, GCC_ANOC_PCIE1_1LANE_M_CLK },
- { MASTER_CNOC_PCIE1, SLAVE_CNOC_PCIE1, GCC_CNOC_PCIE1_1LANE_S_CLK },
- { MASTER_ANOC_PCIE2, SLAVE_ANOC_PCIE2, GCC_ANOC_PCIE2_2LANE_M_CLK },
- { MASTER_CNOC_PCIE2, SLAVE_CNOC_PCIE2, GCC_CNOC_PCIE2_2LANE_S_CLK },
- { MASTER_ANOC_PCIE3, SLAVE_ANOC_PCIE3, GCC_ANOC_PCIE3_2LANE_M_CLK },
- { MASTER_CNOC_PCIE3, SLAVE_CNOC_PCIE3, GCC_CNOC_PCIE3_2LANE_S_CLK },
- { MASTER_CNOC_USB, SLAVE_CNOC_USB, GCC_CNOC_USB_CLK },
- { MASTER_NSSNOC_NSSCC, SLAVE_NSSNOC_NSSCC, GCC_NSSNOC_NSSCC_CLK },
- { MASTER_NSSNOC_SNOC_0, SLAVE_NSSNOC_SNOC_0, GCC_NSSNOC_SNOC_CLK },
- { MASTER_NSSNOC_SNOC_1, SLAVE_NSSNOC_SNOC_1, GCC_NSSNOC_SNOC_1_CLK },
- { MASTER_NSSNOC_PCNOC_1, SLAVE_NSSNOC_PCNOC_1, GCC_NSSNOC_PCNOC_1_CLK },
- { MASTER_NSSNOC_QOSGEN_REF, SLAVE_NSSNOC_QOSGEN_REF, GCC_NSSNOC_QOSGEN_REF_CLK },
- { MASTER_NSSNOC_TIMEOUT_REF, SLAVE_NSSNOC_TIMEOUT_REF, GCC_NSSNOC_TIMEOUT_REF_CLK },
- { MASTER_NSSNOC_XO_DCD, SLAVE_NSSNOC_XO_DCD, GCC_NSSNOC_XO_DCD_CLK },
- { MASTER_NSSNOC_ATB, SLAVE_NSSNOC_ATB, GCC_NSSNOC_ATB_CLK },
- { MASTER_CNOC_LPASS_CFG, SLAVE_CNOC_LPASS_CFG, GCC_CNOC_LPASS_CFG_CLK },
- { MASTER_SNOC_LPASS, SLAVE_SNOC_LPASS, GCC_SNOC_LPASS_CLK },
- };
- static const struct of_device_id gcc_ipq5424_match_table[] = {
- { .compatible = "qcom,ipq5424-gcc" },
- { }
- };
- MODULE_DEVICE_TABLE(of, gcc_ipq5424_match_table);
- static const struct regmap_config gcc_ipq5424_regmap_config = {
- .reg_bits = 32,
- .reg_stride = 4,
- .val_bits = 32,
- .max_register = 0x3f024,
- .fast_io = true,
- };
- static struct clk_hw *gcc_ipq5424_hws[] = {
- &gpll0_div2.hw,
- &gcc_xo_div4_clk_src.hw,
- &gcc_qdss_tsctr_div2_clk_src.hw,
- &gcc_qdss_dap_sync_clk_src.hw,
- &gcc_eud_at_div_clk_src.hw,
- };
- static const struct qcom_cc_desc gcc_ipq5424_desc = {
- .config = &gcc_ipq5424_regmap_config,
- .clks = gcc_ipq5424_clocks,
- .num_clks = ARRAY_SIZE(gcc_ipq5424_clocks),
- .resets = gcc_ipq5424_resets,
- .num_resets = ARRAY_SIZE(gcc_ipq5424_resets),
- .clk_hws = gcc_ipq5424_hws,
- .num_clk_hws = ARRAY_SIZE(gcc_ipq5424_hws),
- .icc_hws = icc_ipq5424_hws,
- .num_icc_hws = ARRAY_SIZE(icc_ipq5424_hws),
- .icc_first_node_id = IPQ_APPS_ID,
- };
- static int gcc_ipq5424_probe(struct platform_device *pdev)
- {
- return qcom_cc_probe(pdev, &gcc_ipq5424_desc);
- }
- static struct platform_driver gcc_ipq5424_driver = {
- .probe = gcc_ipq5424_probe,
- .driver = {
- .name = "qcom,gcc-ipq5424",
- .of_match_table = gcc_ipq5424_match_table,
- .sync_state = icc_sync_state,
- },
- };
- static int __init gcc_ipq5424_init(void)
- {
- return platform_driver_register(&gcc_ipq5424_driver);
- }
- core_initcall(gcc_ipq5424_init);
- static void __exit gcc_ipq5424_exit(void)
- {
- platform_driver_unregister(&gcc_ipq5424_driver);
- }
- module_exit(gcc_ipq5424_exit);
- MODULE_DESCRIPTION("Qualcomm Technologies, Inc. GCC IPQ5424 Driver");
- MODULE_LICENSE("GPL");
|