| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219 | /* * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips * * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/ * * This file is automatically generated from the AM33XX hardware databases. * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation version 2. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any * kind, whether express or implied; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */#include <linux/i2c-omap.h>#include "omap_hwmod.h"#include <linux/platform_data/gpio-omap.h>#include <linux/platform_data/spi-omap2-mcspi.h>#include "omap_hwmod_common_data.h"#include "control.h"#include "cm33xx.h"#include "prm33xx.h"#include "prm-regbits-33xx.h"#include "i2c.h"#include "mmc.h"/* * IP blocks *//* * 'emif_fw' class * instance(s): emif_fw */static struct omap_hwmod_class am33xx_emif_fw_hwmod_class = {	.name		= "emif_fw",};/* emif_fw */static struct omap_hwmod am33xx_emif_fw_hwmod = {	.name		= "emif_fw",	.class		= &am33xx_emif_fw_hwmod_class,	.clkdm_name	= "l4fw_clkdm",	.main_clk	= "l4fw_gclk",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EMIF_FW_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'emif' class * instance(s): emif */static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = {	.rev_offs	= 0x0000,};static struct omap_hwmod_class am33xx_emif_hwmod_class = {	.name		= "emif",	.sysc		= &am33xx_emif_sysc,};static struct omap_hwmod_irq_info am33xx_emif_irqs[] = {	{ .name = "ddrerr0", .irq = 101 + OMAP_INTC_START, },	{ .irq = -1 },};/* emif */static struct omap_hwmod am33xx_emif_hwmod = {	.name		= "emif",	.class		= &am33xx_emif_hwmod_class,	.clkdm_name	= "l3_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.mpu_irqs	= am33xx_emif_irqs,	.main_clk	= "dpll_ddr_m2_div2_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'l3' class * instance(s): l3_main, l3_s, l3_instr */static struct omap_hwmod_class am33xx_l3_hwmod_class = {	.name		= "l3",};/* l3_main (l3_fast) */static struct omap_hwmod_irq_info am33xx_l3_main_irqs[] = {	{ .name = "l3debug", .irq = 9 + OMAP_INTC_START, },	{ .name = "l3appint", .irq = 10 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_l3_main_hwmod = {	.name		= "l3_main",	.class		= &am33xx_l3_hwmod_class,	.clkdm_name	= "l3_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.mpu_irqs	= am33xx_l3_main_irqs,	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_L3_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* l3_s */static struct omap_hwmod am33xx_l3_s_hwmod = {	.name		= "l3_s",	.class		= &am33xx_l3_hwmod_class,	.clkdm_name	= "l3s_clkdm",};/* l3_instr */static struct omap_hwmod am33xx_l3_instr_hwmod = {	.name		= "l3_instr",	.class		= &am33xx_l3_hwmod_class,	.clkdm_name	= "l3_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'l4' class * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw */static struct omap_hwmod_class am33xx_l4_hwmod_class = {	.name		= "l4",};/* l4_ls */static struct omap_hwmod am33xx_l4_ls_hwmod = {	.name		= "l4_ls",	.class		= &am33xx_l4_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* l4_hs */static struct omap_hwmod am33xx_l4_hs_hwmod = {	.name		= "l4_hs",	.class		= &am33xx_l4_hwmod_class,	.clkdm_name	= "l4hs_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.main_clk	= "l4hs_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* l4_wkup */static struct omap_hwmod am33xx_l4_wkup_hwmod = {	.name		= "l4_wkup",	.class		= &am33xx_l4_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* l4_fw */static struct omap_hwmod am33xx_l4_fw_hwmod = {	.name		= "l4_fw",	.class		= &am33xx_l4_hwmod_class,	.clkdm_name	= "l4fw_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_L4FW_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'mpu' class */static struct omap_hwmod_class am33xx_mpu_hwmod_class = {	.name	= "mpu",};/* mpu */static struct omap_hwmod_irq_info am33xx_mpu_irqs[] = {	{ .name = "emuint", .irq = 0 + OMAP_INTC_START, },	{ .name = "commtx", .irq = 1 + OMAP_INTC_START, },	{ .name = "commrx", .irq = 2 + OMAP_INTC_START, },	{ .name = "bench", .irq = 3 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_mpu_hwmod = {	.name		= "mpu",	.class		= &am33xx_mpu_hwmod_class,	.clkdm_name	= "mpu_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.mpu_irqs	= am33xx_mpu_irqs,	.main_clk	= "dpll_mpu_m2_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'wakeup m3' class * Wakeup controller sub-system under wakeup domain */static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = {	.name		= "wkup_m3",};static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = {	{ .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 },};static struct omap_hwmod_irq_info am33xx_wkup_m3_irqs[] = {	{ .name = "txev", .irq = 78 + OMAP_INTC_START, },	{ .irq = -1 },};/* wkup_m3  */static struct omap_hwmod am33xx_wkup_m3_hwmod = {	.name		= "wkup_m3",	.class		= &am33xx_wkup_m3_hwmod_class,	.clkdm_name	= "l4_wkup_aon_clkdm",	.flags		= HWMOD_INIT_NO_RESET,	/* Keep hardreset asserted */	.mpu_irqs	= am33xx_wkup_m3_irqs,	.main_clk	= "dpll_core_m4_div2_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET,			.rstctrl_offs	= AM33XX_RM_WKUP_RSTCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.rst_lines	= am33xx_wkup_m3_resets,	.rst_lines_cnt	= ARRAY_SIZE(am33xx_wkup_m3_resets),};/* * 'pru-icss' class * Programmable Real-Time Unit and Industrial Communication Subsystem */static struct omap_hwmod_class am33xx_pruss_hwmod_class = {	.name	= "pruss",};static struct omap_hwmod_rst_info am33xx_pruss_resets[] = {	{ .name = "pruss", .rst_shift = 1 },};static struct omap_hwmod_irq_info am33xx_pruss_irqs[] = {	{ .name = "evtout0", .irq = 20 + OMAP_INTC_START, },	{ .name = "evtout1", .irq = 21 + OMAP_INTC_START, },	{ .name = "evtout2", .irq = 22 + OMAP_INTC_START, },	{ .name = "evtout3", .irq = 23 + OMAP_INTC_START, },	{ .name = "evtout4", .irq = 24 + OMAP_INTC_START, },	{ .name = "evtout5", .irq = 25 + OMAP_INTC_START, },	{ .name = "evtout6", .irq = 26 + OMAP_INTC_START, },	{ .name = "evtout7", .irq = 27 + OMAP_INTC_START, },	{ .irq = -1 },};/* pru-icss *//* Pseudo hwmod for reset control purpose only */static struct omap_hwmod am33xx_pruss_hwmod = {	.name		= "pruss",	.class		= &am33xx_pruss_hwmod_class,	.clkdm_name	= "pruss_ocp_clkdm",	.mpu_irqs	= am33xx_pruss_irqs,	.main_clk	= "pruss_ocp_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET,			.rstctrl_offs	= AM33XX_RM_PER_RSTCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.rst_lines	= am33xx_pruss_resets,	.rst_lines_cnt	= ARRAY_SIZE(am33xx_pruss_resets),};/* gfx *//* Pseudo hwmod for reset control purpose only */static struct omap_hwmod_class am33xx_gfx_hwmod_class = {	.name	= "gfx",};static struct omap_hwmod_rst_info am33xx_gfx_resets[] = {	{ .name = "gfx", .rst_shift = 0 },};static struct omap_hwmod_irq_info am33xx_gfx_irqs[] = {	{ .name = "gfxint", .irq = 37 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_gfx_hwmod = {	.name		= "gfx",	.class		= &am33xx_gfx_hwmod_class,	.clkdm_name	= "gfx_l3_clkdm",	.mpu_irqs	= am33xx_gfx_irqs,	.main_clk	= "gfx_fck_div_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET,			.rstctrl_offs	= AM33XX_RM_GFX_RSTCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.rst_lines	= am33xx_gfx_resets,	.rst_lines_cnt	= ARRAY_SIZE(am33xx_gfx_resets),};/* * 'prcm' class * power and reset manager (whole prcm infrastructure) */static struct omap_hwmod_class am33xx_prcm_hwmod_class = {	.name	= "prcm",};/* prcm */static struct omap_hwmod am33xx_prcm_hwmod = {	.name		= "prcm",	.class		= &am33xx_prcm_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",};/* * 'adc/tsc' class * TouchScreen Controller (Anolog-To-Digital Converter) */static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc = {	.rev_offs	= 0x00,	.sysc_offs	= 0x10,	.sysc_flags	= SYSC_HAS_SIDLEMODE,	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |			SIDLE_SMART_WKUP),	.sysc_fields	= &omap_hwmod_sysc_type2,};static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class = {	.name		= "adc_tsc",	.sysc		= &am33xx_adc_tsc_sysc,};static struct omap_hwmod_irq_info am33xx_adc_tsc_irqs[] = {	{ .irq = 16 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_adc_tsc_hwmod = {	.name		= "adc_tsc",	.class		= &am33xx_adc_tsc_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.mpu_irqs	= am33xx_adc_tsc_irqs,	.main_clk	= "adc_tsc_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * Modules omap_hwmod structures * * The following IPs are excluded for the moment because: * - They do not need an explicit SW control using omap_hwmod API. * - They still need to be validated with the driver *   properly adapted to omap_hwmod / omap_device * *    - cEFUSE (doesn't fall under any ocp_if) *    - clkdiv32k *    - debugss *    - ocmc ram *    - ocp watch point *    - aes0 *    - sha0 */#if 0/* * 'cefuse' class */static struct omap_hwmod_class am33xx_cefuse_hwmod_class = {	.name		= "cefuse",};static struct omap_hwmod am33xx_cefuse_hwmod = {	.name		= "cefuse",	.class		= &am33xx_cefuse_hwmod_class,	.clkdm_name	= "l4_cefuse_clkdm",	.main_clk	= "cefuse_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'clkdiv32k' class */static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class = {	.name		= "clkdiv32k",};static struct omap_hwmod am33xx_clkdiv32k_hwmod = {	.name		= "clkdiv32k",	.class		= &am33xx_clkdiv32k_hwmod_class,	.clkdm_name	= "clk_24mhz_clkdm",	.main_clk	= "clkdiv32k_ick",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'debugss' class * debug sub system */static struct omap_hwmod_class am33xx_debugss_hwmod_class = {	.name		= "debugss",};static struct omap_hwmod am33xx_debugss_hwmod = {	.name		= "debugss",	.class		= &am33xx_debugss_hwmod_class,	.clkdm_name	= "l3_aon_clkdm",	.main_clk	= "debugss_ick",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* ocmcram */static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {	.name = "ocmcram",};static struct omap_hwmod am33xx_ocmcram_hwmod = {	.name		= "ocmcram",	.class		= &am33xx_ocmcram_hwmod_class,	.clkdm_name	= "l3_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* ocpwp */static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = {	.name		= "ocpwp",};static struct omap_hwmod am33xx_ocpwp_hwmod = {	.name		= "ocpwp",	.class		= &am33xx_ocpwp_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'aes' class */static struct omap_hwmod_class am33xx_aes_hwmod_class = {	.name		= "aes",};static struct omap_hwmod_irq_info am33xx_aes0_irqs[] = {	{ .irq = 102 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_aes0_hwmod = {	.name		= "aes0",	.class		= &am33xx_aes_hwmod_class,	.clkdm_name	= "l3_clkdm",	.mpu_irqs	= am33xx_aes0_irqs,	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_AES0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* sha0 */static struct omap_hwmod_class am33xx_sha0_hwmod_class = {	.name		= "sha0",};static struct omap_hwmod_irq_info am33xx_sha0_irqs[] = {	{ .irq = 108 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_sha0_hwmod = {	.name		= "sha0",	.class		= &am33xx_sha0_hwmod_class,	.clkdm_name	= "l3_clkdm",	.mpu_irqs	= am33xx_sha0_irqs,	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};#endif/* 'smartreflex' class */static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {	.name		= "smartreflex",};/* smartreflex0 */static struct omap_hwmod_irq_info am33xx_smartreflex0_irqs[] = {	{ .irq = 120 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_smartreflex0_hwmod = {	.name		= "smartreflex0",	.class		= &am33xx_smartreflex_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.mpu_irqs	= am33xx_smartreflex0_irqs,	.main_clk	= "smartreflex0_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* smartreflex1 */static struct omap_hwmod_irq_info am33xx_smartreflex1_irqs[] = {	{ .irq = 121 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_smartreflex1_hwmod = {	.name		= "smartreflex1",	.class		= &am33xx_smartreflex_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.mpu_irqs	= am33xx_smartreflex1_irqs,	.main_clk	= "smartreflex1_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'control' module class */static struct omap_hwmod_class am33xx_control_hwmod_class = {	.name		= "control",};static struct omap_hwmod_irq_info am33xx_control_irqs[] = {	{ .irq = 8 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_control_hwmod = {	.name		= "control",	.class		= &am33xx_control_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.mpu_irqs	= am33xx_control_irqs,	.main_clk	= "dpll_core_m4_div2_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'cpgmac' class * cpsw/cpgmac sub system */static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = {	.rev_offs	= 0x0,	.sysc_offs	= 0x8,	.syss_offs	= 0x4,	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |			   SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE |			   MSTANDBY_NO),	.sysc_fields	= &omap_hwmod_sysc_type3,};static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = {	.name		= "cpgmac0",	.sysc		= &am33xx_cpgmac_sysc,};static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = {	{ .name = "c0_rx_thresh_pend", .irq = 40 + OMAP_INTC_START, },	{ .name = "c0_rx_pend", .irq = 41 + OMAP_INTC_START, },	{ .name = "c0_tx_pend", .irq = 42 + OMAP_INTC_START, },	{ .name = "c0_misc_pend", .irq = 43 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_cpgmac0_hwmod = {	.name		= "cpgmac0",	.class		= &am33xx_cpgmac0_hwmod_class,	.clkdm_name	= "cpsw_125mhz_clkdm",	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),	.mpu_irqs	= am33xx_cpgmac0_irqs,	.main_clk	= "cpsw_125mhz_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * mdio class */static struct omap_hwmod_class am33xx_mdio_hwmod_class = {	.name		= "davinci_mdio",};static struct omap_hwmod am33xx_mdio_hwmod = {	.name		= "davinci_mdio",	.class		= &am33xx_mdio_hwmod_class,	.clkdm_name	= "cpsw_125mhz_clkdm",	.main_clk	= "cpsw_125mhz_gclk",};/* * dcan class */static struct omap_hwmod_class am33xx_dcan_hwmod_class = {	.name = "d_can",};/* dcan0 */static struct omap_hwmod_irq_info am33xx_dcan0_irqs[] = {	{ .name = "d_can_ms", .irq = 52 + OMAP_INTC_START, },	{ .name = "d_can_mo", .irq = 53 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_dcan0_hwmod = {	.name		= "d_can0",	.class		= &am33xx_dcan_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_dcan0_irqs,	.main_clk	= "dcan0_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* dcan1 */static struct omap_hwmod_irq_info am33xx_dcan1_irqs[] = {	{ .name = "d_can_ms", .irq = 55 + OMAP_INTC_START, },	{ .name = "d_can_mo", .irq = 56 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_dcan1_hwmod = {	.name		= "d_can1",	.class		= &am33xx_dcan_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_dcan1_irqs,	.main_clk	= "dcan1_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* elm */static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = {	.rev_offs	= 0x0000,	.sysc_offs	= 0x0010,	.syss_offs	= 0x0014,	.sysc_flags	= (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |			SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |			SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class am33xx_elm_hwmod_class = {	.name		= "elm",	.sysc		= &am33xx_elm_sysc,};static struct omap_hwmod_irq_info am33xx_elm_irqs[] = {	{ .irq = 4 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_elm_hwmod = {	.name		= "elm",	.class		= &am33xx_elm_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_elm_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_ELM_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'epwmss' class: ecap0,1,2,  ehrpwm0,1,2 */static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc = {	.rev_offs	= 0x0,	.sysc_offs	= 0x4,	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |			SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |			MSTANDBY_SMART | MSTANDBY_SMART_WKUP),	.sysc_fields	= &omap_hwmod_sysc_type2,};static struct omap_hwmod_class am33xx_epwmss_hwmod_class = {	.name		= "epwmss",	.sysc		= &am33xx_epwmss_sysc,};/* ehrpwm0 */static struct omap_hwmod_irq_info am33xx_ehrpwm0_irqs[] = {	{ .name = "int", .irq = 86 + OMAP_INTC_START, },	{ .name = "tzint", .irq = 58 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_ehrpwm0_hwmod = {	.name		= "ehrpwm0",	.class		= &am33xx_epwmss_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_ehrpwm0_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* ehrpwm1 */static struct omap_hwmod_irq_info am33xx_ehrpwm1_irqs[] = {	{ .name = "int", .irq = 87 + OMAP_INTC_START, },	{ .name = "tzint", .irq = 59 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_ehrpwm1_hwmod = {	.name		= "ehrpwm1",	.class		= &am33xx_epwmss_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_ehrpwm1_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* ehrpwm2 */static struct omap_hwmod_irq_info am33xx_ehrpwm2_irqs[] = {	{ .name = "int", .irq = 39 + OMAP_INTC_START, },	{ .name = "tzint", .irq = 60 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_ehrpwm2_hwmod = {	.name		= "ehrpwm2",	.class		= &am33xx_epwmss_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_ehrpwm2_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* ecap0 */static struct omap_hwmod_irq_info am33xx_ecap0_irqs[] = {	{ .irq = 31 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_ecap0_hwmod = {	.name		= "ecap0",	.class		= &am33xx_epwmss_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_ecap0_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* ecap1 */static struct omap_hwmod_irq_info am33xx_ecap1_irqs[] = {	{ .irq = 47 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_ecap1_hwmod = {	.name		= "ecap1",	.class		= &am33xx_epwmss_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_ecap1_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* ecap2 */static struct omap_hwmod_irq_info am33xx_ecap2_irqs[] = {	{ .irq = 61 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_ecap2_hwmod = {	.name		= "ecap2",	.mpu_irqs	= am33xx_ecap2_irqs,	.class		= &am33xx_epwmss_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'gpio' class: for gpio 0,1,2,3 */static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc = {	.rev_offs	= 0x0000,	.sysc_offs	= 0x0010,	.syss_offs	= 0x0114,	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |			  SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |			  SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |			  SIDLE_SMART_WKUP),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class am33xx_gpio_hwmod_class = {	.name		= "gpio",	.sysc		= &am33xx_gpio_sysc,	.rev		= 2,};static struct omap_gpio_dev_attr gpio_dev_attr = {	.bank_width	= 32,	.dbck_flag	= true,};/* gpio0 */static struct omap_hwmod_opt_clk gpio0_opt_clks[] = {	{ .role = "dbclk", .clk = "gpio0_dbclk" },};static struct omap_hwmod_irq_info am33xx_gpio0_irqs[] = {	{ .irq = 96 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_gpio0_hwmod = {	.name		= "gpio1",	.class		= &am33xx_gpio_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,	.mpu_irqs	= am33xx_gpio0_irqs,	.main_clk	= "dpll_core_m4_div2_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.opt_clks	= gpio0_opt_clks,	.opt_clks_cnt	= ARRAY_SIZE(gpio0_opt_clks),	.dev_attr	= &gpio_dev_attr,};/* gpio1 */static struct omap_hwmod_irq_info am33xx_gpio1_irqs[] = {	{ .irq = 98 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {	{ .role = "dbclk", .clk = "gpio1_dbclk" },};static struct omap_hwmod am33xx_gpio1_hwmod = {	.name		= "gpio2",	.class		= &am33xx_gpio_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,	.mpu_irqs	= am33xx_gpio1_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.opt_clks	= gpio1_opt_clks,	.opt_clks_cnt	= ARRAY_SIZE(gpio1_opt_clks),	.dev_attr	= &gpio_dev_attr,};/* gpio2 */static struct omap_hwmod_irq_info am33xx_gpio2_irqs[] = {	{ .irq = 32 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {	{ .role = "dbclk", .clk = "gpio2_dbclk" },};static struct omap_hwmod am33xx_gpio2_hwmod = {	.name		= "gpio3",	.class		= &am33xx_gpio_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,	.mpu_irqs	= am33xx_gpio2_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.opt_clks	= gpio2_opt_clks,	.opt_clks_cnt	= ARRAY_SIZE(gpio2_opt_clks),	.dev_attr	= &gpio_dev_attr,};/* gpio3 */static struct omap_hwmod_irq_info am33xx_gpio3_irqs[] = {	{ .irq = 62 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {	{ .role = "dbclk", .clk = "gpio3_dbclk" },};static struct omap_hwmod am33xx_gpio3_hwmod = {	.name		= "gpio4",	.class		= &am33xx_gpio_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,	.mpu_irqs	= am33xx_gpio3_irqs,	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.opt_clks	= gpio3_opt_clks,	.opt_clks_cnt	= ARRAY_SIZE(gpio3_opt_clks),	.dev_attr	= &gpio_dev_attr,};/* gpmc */static struct omap_hwmod_class_sysconfig gpmc_sysc = {	.rev_offs	= 0x0,	.sysc_offs	= 0x10,	.syss_offs	= 0x14,	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |			SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class am33xx_gpmc_hwmod_class = {	.name		= "gpmc",	.sysc		= &gpmc_sysc,};static struct omap_hwmod_irq_info am33xx_gpmc_irqs[] = {	{ .irq = 100 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_gpmc_hwmod = {	.name		= "gpmc",	.class		= &am33xx_gpmc_hwmod_class,	.clkdm_name	= "l3s_clkdm",	.flags		= (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),	.mpu_irqs	= am33xx_gpmc_irqs,	.main_clk	= "l3s_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* 'i2c' class */static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc = {	.sysc_offs	= 0x0010,	.syss_offs	= 0x0090,	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |			  SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |			  SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |			  SIDLE_SMART_WKUP),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class i2c_class = {	.name		= "i2c",	.sysc		= &am33xx_i2c_sysc,	.rev		= OMAP_I2C_IP_VERSION_2,	.reset		= &omap_i2c_reset,};static struct omap_i2c_dev_attr i2c_dev_attr = {	.flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,};/* i2c1 */static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {	{ .irq = 70 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info i2c1_edma_reqs[] = {	{ .name = "tx", .dma_req = 0, },	{ .name = "rx", .dma_req = 0, },	{ .dma_req = -1 }};static struct omap_hwmod am33xx_i2c1_hwmod = {	.name		= "i2c1",	.class		= &i2c_class,	.clkdm_name	= "l4_wkup_clkdm",	.mpu_irqs	= i2c1_mpu_irqs,	.sdma_reqs	= i2c1_edma_reqs,	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,	.main_clk	= "dpll_per_m2_div4_wkupdm_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &i2c_dev_attr,};/* i2c1 */static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {	{ .irq = 71 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info i2c2_edma_reqs[] = {	{ .name = "tx", .dma_req = 0, },	{ .name = "rx", .dma_req = 0, },	{ .dma_req = -1 }};static struct omap_hwmod am33xx_i2c2_hwmod = {	.name		= "i2c2",	.class		= &i2c_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= i2c2_mpu_irqs,	.sdma_reqs	= i2c2_edma_reqs,	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4 = {			.clkctrl_offs	= AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &i2c_dev_attr,};/* i2c3 */static struct omap_hwmod_dma_info i2c3_edma_reqs[] = {	{ .name = "tx", .dma_req = 0, },	{ .name = "rx", .dma_req = 0, },	{ .dma_req = -1 }};static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = {	{ .irq = 30 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_i2c3_hwmod = {	.name		= "i2c3",	.class		= &i2c_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= i2c3_mpu_irqs,	.sdma_reqs	= i2c3_edma_reqs,	.flags		= HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &i2c_dev_attr,};/* lcdc */static struct omap_hwmod_class_sysconfig lcdc_sysc = {	.rev_offs	= 0x0,	.sysc_offs	= 0x54,	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type2,};static struct omap_hwmod_class am33xx_lcdc_hwmod_class = {	.name		= "lcdc",	.sysc		= &lcdc_sysc,};static struct omap_hwmod_irq_info am33xx_lcdc_irqs[] = {	{ .irq = 36 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_lcdc_hwmod = {	.name		= "lcdc",	.class		= &am33xx_lcdc_hwmod_class,	.clkdm_name	= "lcdc_clkdm",	.mpu_irqs	= am33xx_lcdc_irqs,	.flags		= HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,	.main_clk	= "lcd_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'mailbox' class * mailbox module allowing communication between the on-chip processors using a * queued mailbox-interrupt mechanism. */static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc = {	.rev_offs	= 0x0000,	.sysc_offs	= 0x0010,	.sysc_flags	= (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |			  SYSC_HAS_SOFTRESET),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type2,};static struct omap_hwmod_class am33xx_mailbox_hwmod_class = {	.name	= "mailbox",	.sysc	= &am33xx_mailbox_sysc,};static struct omap_hwmod_irq_info am33xx_mailbox_irqs[] = {	{ .irq = 77 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_mailbox_hwmod = {	.name		= "mailbox",	.class		= &am33xx_mailbox_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_mailbox_irqs,	.main_clk	= "l4ls_gclk",	.prcm = {		.omap4 = {			.clkctrl_offs	= AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'mcasp' class */static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc = {	.rev_offs	= 0x0,	.sysc_offs	= 0x4,	.sysc_flags	= SYSC_HAS_SIDLEMODE,	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type3,};static struct omap_hwmod_class am33xx_mcasp_hwmod_class = {	.name		= "mcasp",	.sysc		= &am33xx_mcasp_sysc,};/* mcasp0 */static struct omap_hwmod_irq_info am33xx_mcasp0_irqs[] = {	{ .name = "ax", .irq = 80 + OMAP_INTC_START, },	{ .name = "ar", .irq = 81 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info am33xx_mcasp0_edma_reqs[] = {	{ .name = "tx", .dma_req = 8, },	{ .name = "rx", .dma_req = 9, },	{ .dma_req = -1 }};static struct omap_hwmod am33xx_mcasp0_hwmod = {	.name		= "mcasp0",	.class		= &am33xx_mcasp_hwmod_class,	.clkdm_name	= "l3s_clkdm",	.mpu_irqs	= am33xx_mcasp0_irqs,	.sdma_reqs	= am33xx_mcasp0_edma_reqs,	.main_clk	= "mcasp0_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* mcasp1 */static struct omap_hwmod_irq_info am33xx_mcasp1_irqs[] = {	{ .name = "ax", .irq = 82 + OMAP_INTC_START, },	{ .name = "ar", .irq = 83 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info am33xx_mcasp1_edma_reqs[] = {	{ .name = "tx", .dma_req = 10, },	{ .name = "rx", .dma_req = 11, },	{ .dma_req = -1 }};static struct omap_hwmod am33xx_mcasp1_hwmod = {	.name		= "mcasp1",	.class		= &am33xx_mcasp_hwmod_class,	.clkdm_name	= "l3s_clkdm",	.mpu_irqs	= am33xx_mcasp1_irqs,	.sdma_reqs	= am33xx_mcasp1_edma_reqs,	.main_clk	= "mcasp1_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* 'mmc' class */static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = {	.rev_offs	= 0x1fc,	.sysc_offs	= 0x10,	.syss_offs	= 0x14,	.sysc_flags	= (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |			  SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |			  SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class am33xx_mmc_hwmod_class = {	.name		= "mmc",	.sysc		= &am33xx_mmc_sysc,};/* mmc0 */static struct omap_hwmod_irq_info am33xx_mmc0_irqs[] = {	{ .irq = 64 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info am33xx_mmc0_edma_reqs[] = {	{ .name = "tx", .dma_req = 24, },	{ .name = "rx", .dma_req = 25, },	{ .dma_req = -1 }};static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr = {	.flags		= OMAP_HSMMC_SUPPORTS_DUAL_VOLT,};static struct omap_hwmod am33xx_mmc0_hwmod = {	.name		= "mmc1",	.class		= &am33xx_mmc_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_mmc0_irqs,	.sdma_reqs	= am33xx_mmc0_edma_reqs,	.main_clk	= "mmc_clk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &am33xx_mmc0_dev_attr,};/* mmc1 */static struct omap_hwmod_irq_info am33xx_mmc1_irqs[] = {	{ .irq = 28 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info am33xx_mmc1_edma_reqs[] = {	{ .name = "tx", .dma_req = 2, },	{ .name = "rx", .dma_req = 3, },	{ .dma_req = -1 }};static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr = {	.flags		= OMAP_HSMMC_SUPPORTS_DUAL_VOLT,};static struct omap_hwmod am33xx_mmc1_hwmod = {	.name		= "mmc2",	.class		= &am33xx_mmc_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_mmc1_irqs,	.sdma_reqs	= am33xx_mmc1_edma_reqs,	.main_clk	= "mmc_clk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &am33xx_mmc1_dev_attr,};/* mmc2 */static struct omap_hwmod_irq_info am33xx_mmc2_irqs[] = {	{ .irq = 29 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info am33xx_mmc2_edma_reqs[] = {	{ .name = "tx", .dma_req = 64, },	{ .name = "rx", .dma_req = 65, },	{ .dma_req = -1 }};static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr = {	.flags		= OMAP_HSMMC_SUPPORTS_DUAL_VOLT,};static struct omap_hwmod am33xx_mmc2_hwmod = {	.name		= "mmc3",	.class		= &am33xx_mmc_hwmod_class,	.clkdm_name	= "l3s_clkdm",	.mpu_irqs	= am33xx_mmc2_irqs,	.sdma_reqs	= am33xx_mmc2_edma_reqs,	.main_clk	= "mmc_clk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &am33xx_mmc2_dev_attr,};/* * 'rtc' class * rtc subsystem */static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = {	.rev_offs	= 0x0074,	.sysc_offs	= 0x0078,	.sysc_flags	= SYSC_HAS_SIDLEMODE,	.idlemodes	= (SIDLE_FORCE | SIDLE_NO |			  SIDLE_SMART | SIDLE_SMART_WKUP),	.sysc_fields	= &omap_hwmod_sysc_type3,};static struct omap_hwmod_class am33xx_rtc_hwmod_class = {	.name		= "rtc",	.sysc		= &am33xx_rtc_sysc,};static struct omap_hwmod_irq_info am33xx_rtc_irqs[] = {	{ .name = "rtcint", .irq = 75 + OMAP_INTC_START, },	{ .name = "rtcalarmint", .irq = 76 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_rtc_hwmod = {	.name		= "rtc",	.class		= &am33xx_rtc_hwmod_class,	.clkdm_name	= "l4_rtc_clkdm",	.mpu_irqs	= am33xx_rtc_irqs,	.main_clk	= "clk_32768_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* 'spi' class */static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc = {	.rev_offs	= 0x0000,	.sysc_offs	= 0x0110,	.syss_offs	= 0x0114,	.sysc_flags	= (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |			  SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |			  SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class am33xx_spi_hwmod_class = {	.name		= "mcspi",	.sysc		= &am33xx_mcspi_sysc,	.rev		= OMAP4_MCSPI_REV,};/* spi0 */static struct omap_hwmod_irq_info am33xx_spi0_irqs[] = {	{ .irq = 65 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info am33xx_mcspi0_edma_reqs[] = {	{ .name = "rx0", .dma_req = 17 },	{ .name = "tx0", .dma_req = 16 },	{ .name = "rx1", .dma_req = 19 },	{ .name = "tx1", .dma_req = 18 },	{ .dma_req = -1 }};static struct omap2_mcspi_dev_attr mcspi_attrib = {	.num_chipselect	= 2,};static struct omap_hwmod am33xx_spi0_hwmod = {	.name		= "spi0",	.class		= &am33xx_spi_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_spi0_irqs,	.sdma_reqs	= am33xx_mcspi0_edma_reqs,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &mcspi_attrib,};/* spi1 */static struct omap_hwmod_irq_info am33xx_spi1_irqs[] = {	{ .irq = 125 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod_dma_info am33xx_mcspi1_edma_reqs[] = {	{ .name = "rx0", .dma_req = 43 },	{ .name = "tx0", .dma_req = 42 },	{ .name = "rx1", .dma_req = 45 },	{ .name = "tx1", .dma_req = 44 },	{ .dma_req = -1 }};static struct omap_hwmod am33xx_spi1_hwmod = {	.name		= "spi1",	.class		= &am33xx_spi_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_spi1_irqs,	.sdma_reqs	= am33xx_mcspi1_edma_reqs,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},	.dev_attr	= &mcspi_attrib,};/* * 'spinlock' class * spinlock provides hardware assistance for synchronizing the * processes running on multiple processors */static struct omap_hwmod_class am33xx_spinlock_hwmod_class = {	.name		= "spinlock",};static struct omap_hwmod am33xx_spinlock_hwmod = {	.name		= "spinlock",	.class		= &am33xx_spinlock_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.main_clk	= "l4ls_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* 'timer 2-7' class */static struct omap_hwmod_class_sysconfig am33xx_timer_sysc = {	.rev_offs	= 0x0000,	.sysc_offs	= 0x0010,	.syss_offs	= 0x0014,	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |			  SIDLE_SMART_WKUP),	.sysc_fields	= &omap_hwmod_sysc_type2,};static struct omap_hwmod_class am33xx_timer_hwmod_class = {	.name		= "timer",	.sysc		= &am33xx_timer_sysc,};/* timer1 1ms */static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc = {	.rev_offs	= 0x0000,	.sysc_offs	= 0x0010,	.syss_offs	= 0x0014,	.sysc_flags	= (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |			SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |			SYSS_HAS_RESET_STATUS),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class am33xx_timer1ms_hwmod_class = {	.name		= "timer",	.sysc		= &am33xx_timer1ms_sysc,};static struct omap_hwmod_irq_info am33xx_timer1_irqs[] = {	{ .irq = 67 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_timer1_hwmod = {	.name		= "timer1",	.class		= &am33xx_timer1ms_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.mpu_irqs	= am33xx_timer1_irqs,	.main_clk	= "timer1_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_timer2_irqs[] = {	{ .irq = 68 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_timer2_hwmod = {	.name		= "timer2",	.class		= &am33xx_timer_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_timer2_irqs,	.main_clk	= "timer2_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_timer3_irqs[] = {	{ .irq = 69 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_timer3_hwmod = {	.name		= "timer3",	.class		= &am33xx_timer_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_timer3_irqs,	.main_clk	= "timer3_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_timer4_irqs[] = {	{ .irq = 92 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_timer4_hwmod = {	.name		= "timer4",	.class		= &am33xx_timer_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_timer4_irqs,	.main_clk	= "timer4_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_timer5_irqs[] = {	{ .irq = 93 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_timer5_hwmod = {	.name		= "timer5",	.class		= &am33xx_timer_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_timer5_irqs,	.main_clk	= "timer5_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_timer6_irqs[] = {	{ .irq = 94 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_timer6_hwmod = {	.name		= "timer6",	.class		= &am33xx_timer_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_timer6_irqs,	.main_clk	= "timer6_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_timer7_irqs[] = {	{ .irq = 95 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_timer7_hwmod = {	.name		= "timer7",	.class		= &am33xx_timer_hwmod_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_timer7_irqs,	.main_clk	= "timer7_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* tpcc */static struct omap_hwmod_class am33xx_tpcc_hwmod_class = {	.name		= "tpcc",};static struct omap_hwmod_irq_info am33xx_tpcc_irqs[] = {	{ .name	= "edma0", .irq = 12 + OMAP_INTC_START, },	{ .name = "edma0_mperr", .irq = 13 + OMAP_INTC_START, },	{ .name	= "edma0_err", .irq = 14 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_tpcc_hwmod = {	.name		= "tpcc",	.class		= &am33xx_tpcc_hwmod_class,	.clkdm_name	= "l3_clkdm",	.mpu_irqs	= am33xx_tpcc_irqs,	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc = {	.rev_offs	= 0x0,	.sysc_offs	= 0x10,	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |			  SYSC_HAS_MIDLEMODE),	.idlemodes	= (SIDLE_FORCE | SIDLE_SMART | MSTANDBY_FORCE),	.sysc_fields	= &omap_hwmod_sysc_type2,};/* 'tptc' class */static struct omap_hwmod_class am33xx_tptc_hwmod_class = {	.name		= "tptc",	.sysc		= &am33xx_tptc_sysc,};/* tptc0 */static struct omap_hwmod_irq_info am33xx_tptc0_irqs[] = {	{ .irq = 112 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_tptc0_hwmod = {	.name		= "tptc0",	.class		= &am33xx_tptc_hwmod_class,	.clkdm_name	= "l3_clkdm",	.mpu_irqs	= am33xx_tptc0_irqs,	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* tptc1 */static struct omap_hwmod_irq_info am33xx_tptc1_irqs[] = {	{ .irq = 113 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_tptc1_hwmod = {	.name		= "tptc1",	.class		= &am33xx_tptc_hwmod_class,	.clkdm_name	= "l3_clkdm",	.mpu_irqs	= am33xx_tptc1_irqs,	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* tptc2 */static struct omap_hwmod_irq_info am33xx_tptc2_irqs[] = {	{ .irq = 114 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_tptc2_hwmod = {	.name		= "tptc2",	.class		= &am33xx_tptc_hwmod_class,	.clkdm_name	= "l3_clkdm",	.mpu_irqs	= am33xx_tptc2_irqs,	.flags		= (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),	.main_clk	= "l3_gclk",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* 'uart' class */static struct omap_hwmod_class_sysconfig uart_sysc = {	.rev_offs	= 0x50,	.sysc_offs	= 0x54,	.syss_offs	= 0x58,	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP |			  SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |			  SIDLE_SMART_WKUP),	.sysc_fields	= &omap_hwmod_sysc_type1,};static struct omap_hwmod_class uart_class = {	.name		= "uart",	.sysc		= &uart_sysc,};/* uart1 */static struct omap_hwmod_dma_info uart1_edma_reqs[] = {	{ .name = "tx",	.dma_req = 26, },	{ .name = "rx",	.dma_req = 27, },	{ .dma_req = -1 }};static struct omap_hwmod_irq_info am33xx_uart1_irqs[] = {	{ .irq = 72 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_uart1_hwmod = {	.name		= "uart1",	.class		= &uart_class,	.clkdm_name	= "l4_wkup_clkdm",	.mpu_irqs	= am33xx_uart1_irqs,	.sdma_reqs	= uart1_edma_reqs,	.main_clk	= "dpll_per_m2_div4_wkupdm_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_uart2_irqs[] = {	{ .irq = 73 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_uart2_hwmod = {	.name		= "uart2",	.class		= &uart_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_uart2_irqs,	.sdma_reqs	= uart1_edma_reqs,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_UART1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* uart3 */static struct omap_hwmod_dma_info uart3_edma_reqs[] = {	{ .name = "tx",	.dma_req = 30, },	{ .name = "rx",	.dma_req = 31, },	{ .dma_req = -1 }};static struct omap_hwmod_irq_info am33xx_uart3_irqs[] = {	{ .irq = 74 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_uart3_hwmod = {	.name		= "uart3",	.class		= &uart_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_uart3_irqs,	.sdma_reqs	= uart3_edma_reqs,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_UART2_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_uart4_irqs[] = {	{ .irq = 44 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_uart4_hwmod = {	.name		= "uart4",	.class		= &uart_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_uart4_irqs,	.sdma_reqs	= uart1_edma_reqs,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_UART3_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_uart5_irqs[] = {	{ .irq = 45 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_uart5_hwmod = {	.name		= "uart5",	.class		= &uart_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_uart5_irqs,	.sdma_reqs	= uart1_edma_reqs,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_UART4_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};static struct omap_hwmod_irq_info am33xx_uart6_irqs[] = {	{ .irq = 46 + OMAP_INTC_START, },	{ .irq = -1 },};static struct omap_hwmod am33xx_uart6_hwmod = {	.name		= "uart6",	.class		= &uart_class,	.clkdm_name	= "l4ls_clkdm",	.mpu_irqs	= am33xx_uart6_irqs,	.sdma_reqs	= uart1_edma_reqs,	.main_clk	= "dpll_per_m2_div4_ck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_UART5_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* 'wd_timer' class */static struct omap_hwmod_class am33xx_wd_timer_hwmod_class = {	.name		= "wd_timer",};/* * XXX: device.c file uses hardcoded name for watchdog timer * driver "wd_timer2, so we are also using same name as of now... */static struct omap_hwmod am33xx_wd_timer1_hwmod = {	.name		= "wd_timer2",	.class		= &am33xx_wd_timer_hwmod_class,	.clkdm_name	= "l4_wkup_clkdm",	.main_clk	= "wdt1_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * 'usb_otg' class * high-speed on-the-go universal serial bus (usb_otg) controller */static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc = {	.rev_offs	= 0x0,	.sysc_offs	= 0x10,	.sysc_flags	= (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE),	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |			  MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),	.sysc_fields	= &omap_hwmod_sysc_type2,};static struct omap_hwmod_class am33xx_usbotg_class = {	.name		= "usbotg",	.sysc		= &am33xx_usbhsotg_sysc,};static struct omap_hwmod_irq_info am33xx_usbss_mpu_irqs[] = {	{ .name = "usbss-irq", .irq = 17 + OMAP_INTC_START, },	{ .name = "musb0-irq", .irq = 18 + OMAP_INTC_START, },	{ .name = "musb1-irq", .irq = 19 + OMAP_INTC_START, },	{ .irq = -1, },};static struct omap_hwmod am33xx_usbss_hwmod = {	.name		= "usb_otg_hs",	.class		= &am33xx_usbotg_class,	.clkdm_name	= "l3s_clkdm",	.mpu_irqs	= am33xx_usbss_mpu_irqs,	.flags		= HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,	.main_clk	= "usbotg_fck",	.prcm		= {		.omap4	= {			.clkctrl_offs	= AM33XX_CM_PER_USB0_CLKCTRL_OFFSET,			.modulemode	= MODULEMODE_SWCTRL,		},	},};/* * Interfaces *//* l4 fw -> emif fw */static struct omap_hwmod_ocp_if am33xx_l4_fw__emif_fw = {	.master		= &am33xx_l4_fw_hwmod,	.slave		= &am33xx_emif_fw_hwmod,	.clk		= "l4fw_gclk",	.user		= OCP_USER_MPU,};static struct omap_hwmod_addr_space am33xx_emif_addrs[] = {	{		.pa_start	= 0x4c000000,		.pa_end		= 0x4c000fff,		.flags		= ADDR_TYPE_RT	},	{ }};/* l3 main -> emif */static struct omap_hwmod_ocp_if am33xx_l3_main__emif = {	.master		= &am33xx_l3_main_hwmod,	.slave		= &am33xx_emif_hwmod,	.clk		= "dpll_core_m4_ck",	.addr		= am33xx_emif_addrs,	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* mpu -> l3 main */static struct omap_hwmod_ocp_if am33xx_mpu__l3_main = {	.master		= &am33xx_mpu_hwmod,	.slave		= &am33xx_l3_main_hwmod,	.clk		= "dpll_mpu_m2_ck",	.user		= OCP_USER_MPU,};/* l3 main -> l4 hs */static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs = {	.master		= &am33xx_l3_main_hwmod,	.slave		= &am33xx_l4_hs_hwmod,	.clk		= "l3s_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* l3 main -> l3 s */static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = {	.master		= &am33xx_l3_main_hwmod,	.slave		= &am33xx_l3_s_hwmod,	.clk		= "l3s_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* l3 s -> l4 per/ls */static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = {	.master		= &am33xx_l3_s_hwmod,	.slave		= &am33xx_l4_ls_hwmod,	.clk		= "l3s_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* l3 s -> l4 wkup */static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = {	.master		= &am33xx_l3_s_hwmod,	.slave		= &am33xx_l4_wkup_hwmod,	.clk		= "l3s_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* l3 s -> l4 fw */static struct omap_hwmod_ocp_if am33xx_l3_s__l4_fw = {	.master		= &am33xx_l3_s_hwmod,	.slave		= &am33xx_l4_fw_hwmod,	.clk		= "l3s_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* l3 main -> l3 instr */static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = {	.master		= &am33xx_l3_main_hwmod,	.slave		= &am33xx_l3_instr_hwmod,	.clk		= "l3s_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* mpu -> prcm */static struct omap_hwmod_ocp_if am33xx_mpu__prcm = {	.master		= &am33xx_mpu_hwmod,	.slave		= &am33xx_prcm_hwmod,	.clk		= "dpll_mpu_m2_ck",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* l3 s -> l3 main*/static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {	.master		= &am33xx_l3_s_hwmod,	.slave		= &am33xx_l3_main_hwmod,	.clk		= "l3s_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* pru-icss -> l3 main */static struct omap_hwmod_ocp_if am33xx_pruss__l3_main = {	.master		= &am33xx_pruss_hwmod,	.slave		= &am33xx_l3_main_hwmod,	.clk		= "l3_gclk",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* wkup m3 -> l4 wkup */static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = {	.master		= &am33xx_wkup_m3_hwmod,	.slave		= &am33xx_l4_wkup_hwmod,	.clk		= "dpll_core_m4_div2_ck",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* gfx -> l3 main */static struct omap_hwmod_ocp_if am33xx_gfx__l3_main = {	.master		= &am33xx_gfx_hwmod,	.slave		= &am33xx_l3_main_hwmod,	.clk		= "dpll_core_m4_ck",	.user		= OCP_USER_MPU | OCP_USER_SDMA,};/* l4 wkup -> wkup m3 */static struct omap_hwmod_addr_space am33xx_wkup_m3_addrs[] = {	{
 |