| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368 | 
							- /*
 
-  * Hardware modules present on the OMAP44xx chips
 
-  *
 
-  * Copyright (C) 2009-2012 Texas Instruments, Inc.
 
-  * Copyright (C) 2009-2010 Nokia Corporation
 
-  *
 
-  * Paul Walmsley
 
-  * Benoit Cousson
 
-  *
 
-  * This file is automatically generated from the OMAP hardware databases.
 
-  * We respectfully ask that any modifications to this file be coordinated
 
-  * with the public linux-omap@vger.kernel.org mailing list and the
 
-  * authors above to ensure that the autogeneration scripts are kept
 
-  * up-to-date with the file contents.
 
-  *
 
-  * This program is free software; you can redistribute it and/or modify
 
-  * it under the terms of the GNU General Public License version 2 as
 
-  * published by the Free Software Foundation.
 
-  */
 
- #include <linux/io.h>
 
- #include <linux/platform_data/gpio-omap.h>
 
- #include <linux/power/smartreflex.h>
 
- #include <linux/platform_data/omap_ocp2scp.h>
 
- #include <linux/i2c-omap.h>
 
- #include <linux/omap-dma.h>
 
- #include <linux/platform_data/spi-omap2-mcspi.h>
 
- #include <linux/platform_data/asoc-ti-mcbsp.h>
 
- #include <linux/platform_data/iommu-omap.h>
 
- #include <plat/dmtimer.h>
 
- #include "omap_hwmod.h"
 
- #include "omap_hwmod_common_data.h"
 
- #include "cm1_44xx.h"
 
- #include "cm2_44xx.h"
 
- #include "prm44xx.h"
 
- #include "prm-regbits-44xx.h"
 
- #include "i2c.h"
 
- #include "mmc.h"
 
- #include "wd_timer.h"
 
- /* Base offset for all OMAP4 interrupts external to MPUSS */
 
- #define OMAP44XX_IRQ_GIC_START	32
 
- /* Base offset for all OMAP4 dma requests */
 
- #define OMAP44XX_DMA_REQ_START	1
 
- /*
 
-  * IP blocks
 
-  */
 
- /*
 
-  * 'c2c_target_fw' class
 
-  * instance(s): c2c_target_fw
 
-  */
 
- static struct omap_hwmod_class omap44xx_c2c_target_fw_hwmod_class = {
 
- 	.name	= "c2c_target_fw",
 
- };
 
- /* c2c_target_fw */
 
- static struct omap_hwmod omap44xx_c2c_target_fw_hwmod = {
 
- 	.name		= "c2c_target_fw",
 
- 	.class		= &omap44xx_c2c_target_fw_hwmod_class,
 
- 	.clkdm_name	= "d2d_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_D2D_SAD2D_FW_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_D2D_SAD2D_FW_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'dmm' class
 
-  * instance(s): dmm
 
-  */
 
- static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
 
- 	.name	= "dmm",
 
- };
 
- /* dmm */
 
- static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
 
- 	{ .irq = 113 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_dmm_hwmod = {
 
- 	.name		= "dmm",
 
- 	.class		= &omap44xx_dmm_hwmod_class,
 
- 	.clkdm_name	= "l3_emif_clkdm",
 
- 	.mpu_irqs	= omap44xx_dmm_irqs,
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'emif_fw' class
 
-  * instance(s): emif_fw
 
-  */
 
- static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
 
- 	.name	= "emif_fw",
 
- };
 
- /* emif_fw */
 
- static struct omap_hwmod omap44xx_emif_fw_hwmod = {
 
- 	.name		= "emif_fw",
 
- 	.class		= &omap44xx_emif_fw_hwmod_class,
 
- 	.clkdm_name	= "l3_emif_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_MEMIF_EMIF_FW_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'l3' class
 
-  * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
 
-  */
 
- static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
 
- 	.name	= "l3",
 
- };
 
- /* l3_instr */
 
- static struct omap_hwmod omap44xx_l3_instr_hwmod = {
 
- 	.name		= "l3_instr",
 
- 	.class		= &omap44xx_l3_hwmod_class,
 
- 	.clkdm_name	= "l3_instr_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /* l3_main_1 */
 
- static struct omap_hwmod_irq_info omap44xx_l3_main_1_irqs[] = {
 
- 	{ .name = "dbg_err", .irq = 9 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .name = "app_err", .irq = 10 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
 
- 	.name		= "l3_main_1",
 
- 	.class		= &omap44xx_l3_hwmod_class,
 
- 	.clkdm_name	= "l3_1_clkdm",
 
- 	.mpu_irqs	= omap44xx_l3_main_1_irqs,
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /* l3_main_2 */
 
- static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
 
- 	.name		= "l3_main_2",
 
- 	.class		= &omap44xx_l3_hwmod_class,
 
- 	.clkdm_name	= "l3_2_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /* l3_main_3 */
 
- static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
 
- 	.name		= "l3_main_3",
 
- 	.class		= &omap44xx_l3_hwmod_class,
 
- 	.clkdm_name	= "l3_instr_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'l4' class
 
-  * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
 
-  */
 
- static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
 
- 	.name	= "l4",
 
- };
 
- /* l4_abe */
 
- static struct omap_hwmod omap44xx_l4_abe_hwmod = {
 
- 	.name		= "l4_abe",
 
- 	.class		= &omap44xx_l4_hwmod_class,
 
- 	.clkdm_name	= "abe_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
 
- 			.lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
 
- 			.flags	      = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
 
- 		},
 
- 	},
 
- };
 
- /* l4_cfg */
 
- static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
 
- 	.name		= "l4_cfg",
 
- 	.class		= &omap44xx_l4_hwmod_class,
 
- 	.clkdm_name	= "l4_cfg_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /* l4_per */
 
- static struct omap_hwmod omap44xx_l4_per_hwmod = {
 
- 	.name		= "l4_per",
 
- 	.class		= &omap44xx_l4_hwmod_class,
 
- 	.clkdm_name	= "l4_per_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /* l4_wkup */
 
- static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
 
- 	.name		= "l4_wkup",
 
- 	.class		= &omap44xx_l4_hwmod_class,
 
- 	.clkdm_name	= "l4_wkup_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'mpu_bus' class
 
-  * instance(s): mpu_private
 
-  */
 
- static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
 
- 	.name	= "mpu_bus",
 
- };
 
- /* mpu_private */
 
- static struct omap_hwmod omap44xx_mpu_private_hwmod = {
 
- 	.name		= "mpu_private",
 
- 	.class		= &omap44xx_mpu_bus_hwmod_class,
 
- 	.clkdm_name	= "mpuss_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'ocp_wp_noc' class
 
-  * instance(s): ocp_wp_noc
 
-  */
 
- static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
 
- 	.name	= "ocp_wp_noc",
 
- };
 
- /* ocp_wp_noc */
 
- static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
 
- 	.name		= "ocp_wp_noc",
 
- 	.class		= &omap44xx_ocp_wp_noc_hwmod_class,
 
- 	.clkdm_name	= "l3_instr_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 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
 
-  *
 
-  * usim
 
-  */
 
- /*
 
-  * 'aess' class
 
-  * audio engine sub system
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.sysc_flags	= (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
 
- 	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
 
- 			   MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
 
- 			   MSTANDBY_SMART_WKUP),
 
- 	.sysc_fields	= &omap_hwmod_sysc_type2,
 
- };
 
- static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
 
- 	.name	= "aess",
 
- 	.sysc	= &omap44xx_aess_sysc,
 
- };
 
- /* aess */
 
- static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
 
- 	{ .irq = 99 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
 
- 	{ .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
 
- 	{ .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
 
- 	{ .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
 
- 	{ .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
 
- 	{ .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
 
- 	{ .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
 
- 	{ .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
 
- 	{ .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_aess_hwmod = {
 
- 	.name		= "aess",
 
- 	.class		= &omap44xx_aess_hwmod_class,
 
- 	.clkdm_name	= "abe_clkdm",
 
- 	.mpu_irqs	= omap44xx_aess_irqs,
 
- 	.sdma_reqs	= omap44xx_aess_sdma_reqs,
 
- 	.main_clk	= "aess_fck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
 
- 			.lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
 
- 			.modulemode   = MODULEMODE_SWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'c2c' class
 
-  * chip 2 chip interface used to plug the ape soc (omap) with an external modem
 
-  * soc
 
-  */
 
- static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
 
- 	.name	= "c2c",
 
- };
 
- /* c2c */
 
- static struct omap_hwmod_irq_info omap44xx_c2c_irqs[] = {
 
- 	{ .irq = 88 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_c2c_sdma_reqs[] = {
 
- 	{ .dma_req = 68 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_c2c_hwmod = {
 
- 	.name		= "c2c",
 
- 	.class		= &omap44xx_c2c_hwmod_class,
 
- 	.clkdm_name	= "d2d_clkdm",
 
- 	.mpu_irqs	= omap44xx_c2c_irqs,
 
- 	.sdma_reqs	= omap44xx_c2c_sdma_reqs,
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'counter' class
 
-  * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0004,
 
- 	.sysc_flags	= SYSC_HAS_SIDLEMODE,
 
- 	.idlemodes	= (SIDLE_FORCE | SIDLE_NO),
 
- 	.sysc_fields	= &omap_hwmod_sysc_type1,
 
- };
 
- static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
 
- 	.name	= "counter",
 
- 	.sysc	= &omap44xx_counter_sysc,
 
- };
 
- /* counter_32k */
 
- static struct omap_hwmod omap44xx_counter_32k_hwmod = {
 
- 	.name		= "counter_32k",
 
- 	.class		= &omap44xx_counter_hwmod_class,
 
- 	.clkdm_name	= "l4_wkup_clkdm",
 
- 	.flags		= HWMOD_SWSUP_SIDLE,
 
- 	.main_clk	= "sys_32k_ck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'ctrl_module' class
 
-  * attila core control module + core pad control module + wkup pad control
 
-  * module + attila wkup control module
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.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 omap44xx_ctrl_module_hwmod_class = {
 
- 	.name	= "ctrl_module",
 
- 	.sysc	= &omap44xx_ctrl_module_sysc,
 
- };
 
- /* ctrl_module_core */
 
- static struct omap_hwmod_irq_info omap44xx_ctrl_module_core_irqs[] = {
 
- 	{ .irq = 8 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
 
- 	.name		= "ctrl_module_core",
 
- 	.class		= &omap44xx_ctrl_module_hwmod_class,
 
- 	.clkdm_name	= "l4_cfg_clkdm",
 
- 	.mpu_irqs	= omap44xx_ctrl_module_core_irqs,
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
 
- 		},
 
- 	},
 
- };
 
- /* ctrl_module_pad_core */
 
- static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
 
- 	.name		= "ctrl_module_pad_core",
 
- 	.class		= &omap44xx_ctrl_module_hwmod_class,
 
- 	.clkdm_name	= "l4_cfg_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
 
- 		},
 
- 	},
 
- };
 
- /* ctrl_module_wkup */
 
- static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
 
- 	.name		= "ctrl_module_wkup",
 
- 	.class		= &omap44xx_ctrl_module_hwmod_class,
 
- 	.clkdm_name	= "l4_wkup_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
 
- 		},
 
- 	},
 
- };
 
- /* ctrl_module_pad_wkup */
 
- static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
 
- 	.name		= "ctrl_module_pad_wkup",
 
- 	.class		= &omap44xx_ctrl_module_hwmod_class,
 
- 	.clkdm_name	= "l4_wkup_clkdm",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'debugss' class
 
-  * debug and emulation sub system
 
-  */
 
- static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
 
- 	.name	= "debugss",
 
- };
 
- /* debugss */
 
- static struct omap_hwmod omap44xx_debugss_hwmod = {
 
- 	.name		= "debugss",
 
- 	.class		= &omap44xx_debugss_hwmod_class,
 
- 	.clkdm_name	= "emu_sys_clkdm",
 
- 	.main_clk	= "trace_clk_div_ck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'dma' class
 
-  * dma controller for data exchange between memory to memory (i.e. internal or
 
-  * external memory) and gp peripherals to memory or memory to gp peripherals
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x002c,
 
- 	.syss_offs	= 0x0028,
 
- 	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
 
- 			   SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
 
- 			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
 
- 			   SYSS_HAS_RESET_STATUS),
 
- 	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
 
- 			   MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
 
- 	.sysc_fields	= &omap_hwmod_sysc_type1,
 
- };
 
- static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
 
- 	.name	= "dma",
 
- 	.sysc	= &omap44xx_dma_sysc,
 
- };
 
- /* dma dev_attr */
 
- static struct omap_dma_dev_attr dma_dev_attr = {
 
- 	.dev_caps	= RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
 
- 			  IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
 
- 	.lch_count	= 32,
 
- };
 
- /* dma_system */
 
- static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
 
- 	{ .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_dma_system_hwmod = {
 
- 	.name		= "dma_system",
 
- 	.class		= &omap44xx_dma_hwmod_class,
 
- 	.clkdm_name	= "l3_dma_clkdm",
 
- 	.mpu_irqs	= omap44xx_dma_system_irqs,
 
- 	.main_clk	= "l3_div_ck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- 	.dev_attr	= &dma_dev_attr,
 
- };
 
- /*
 
-  * 'dmic' class
 
-  * digital microphone controller
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.sysc_flags	= (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
 
- 			   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 omap44xx_dmic_hwmod_class = {
 
- 	.name	= "dmic",
 
- 	.sysc	= &omap44xx_dmic_sysc,
 
- };
 
- /* dmic */
 
- static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
 
- 	{ .irq = 114 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
 
- 	{ .dma_req = 66 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_dmic_hwmod = {
 
- 	.name		= "dmic",
 
- 	.class		= &omap44xx_dmic_hwmod_class,
 
- 	.clkdm_name	= "abe_clkdm",
 
- 	.mpu_irqs	= omap44xx_dmic_irqs,
 
- 	.sdma_reqs	= omap44xx_dmic_sdma_reqs,
 
- 	.main_clk	= "dmic_fck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_SWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'dsp' class
 
-  * dsp sub-system
 
-  */
 
- static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
 
- 	.name	= "dsp",
 
- };
 
- /* dsp */
 
- static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
 
- 	{ .irq = 28 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
 
- 	{ .name = "dsp", .rst_shift = 0 },
 
- };
 
- static struct omap_hwmod omap44xx_dsp_hwmod = {
 
- 	.name		= "dsp",
 
- 	.class		= &omap44xx_dsp_hwmod_class,
 
- 	.clkdm_name	= "tesla_clkdm",
 
- 	.mpu_irqs	= omap44xx_dsp_irqs,
 
- 	.rst_lines	= omap44xx_dsp_resets,
 
- 	.rst_lines_cnt	= ARRAY_SIZE(omap44xx_dsp_resets),
 
- 	.main_clk	= "dpll_iva_m4x2_ck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
 
- 			.rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'dss' class
 
-  * display sub-system
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.syss_offs	= 0x0014,
 
- 	.sysc_flags	= SYSS_HAS_RESET_STATUS,
 
- };
 
- static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
 
- 	.name	= "dss",
 
- 	.sysc	= &omap44xx_dss_sysc,
 
- 	.reset	= omap_dss_reset,
 
- };
 
- /* dss */
 
- static struct omap_hwmod_opt_clk dss_opt_clks[] = {
 
- 	{ .role = "sys_clk", .clk = "dss_sys_clk" },
 
- 	{ .role = "tv_clk", .clk = "dss_tv_clk" },
 
- 	{ .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
 
- };
 
- static struct omap_hwmod omap44xx_dss_hwmod = {
 
- 	.name		= "dss_core",
 
- 	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
 
- 	.class		= &omap44xx_dss_hwmod_class,
 
- 	.clkdm_name	= "l3_dss_clkdm",
 
- 	.main_clk	= "dss_dss_clk",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- 	.opt_clks	= dss_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(dss_opt_clks),
 
- };
 
- /*
 
-  * 'dispc' class
 
-  * display controller
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.syss_offs	= 0x0014,
 
- 	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
 
- 			   SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
 
- 			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
 
- 			   SYSS_HAS_RESET_STATUS),
 
- 	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
 
- 			   MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
 
- 	.sysc_fields	= &omap_hwmod_sysc_type1,
 
- };
 
- static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
 
- 	.name	= "dispc",
 
- 	.sysc	= &omap44xx_dispc_sysc,
 
- };
 
- /* dss_dispc */
 
- static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
 
- 	{ .irq = 25 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
 
- 	{ .dma_req = 5 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
 
- 	.manager_count		= 3,
 
- 	.has_framedonetv_irq	= 1
 
- };
 
- static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
 
- 	.name		= "dss_dispc",
 
- 	.class		= &omap44xx_dispc_hwmod_class,
 
- 	.clkdm_name	= "l3_dss_clkdm",
 
- 	.mpu_irqs	= omap44xx_dss_dispc_irqs,
 
- 	.sdma_reqs	= omap44xx_dss_dispc_sdma_reqs,
 
- 	.main_clk	= "dss_dss_clk",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- 	.dev_attr	= &omap44xx_dss_dispc_dev_attr
 
- };
 
- /*
 
-  * 'dsi' class
 
-  * display serial interface controller
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.syss_offs	= 0x0014,
 
- 	.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),
 
- 	.sysc_fields	= &omap_hwmod_sysc_type1,
 
- };
 
- static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
 
- 	.name	= "dsi",
 
- 	.sysc	= &omap44xx_dsi_sysc,
 
- };
 
- /* dss_dsi1 */
 
- static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
 
- 	{ .irq = 53 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
 
- 	{ .dma_req = 74 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
 
- 	{ .role = "sys_clk", .clk = "dss_sys_clk" },
 
- };
 
- static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
 
- 	.name		= "dss_dsi1",
 
- 	.class		= &omap44xx_dsi_hwmod_class,
 
- 	.clkdm_name	= "l3_dss_clkdm",
 
- 	.mpu_irqs	= omap44xx_dss_dsi1_irqs,
 
- 	.sdma_reqs	= omap44xx_dss_dsi1_sdma_reqs,
 
- 	.main_clk	= "dss_dss_clk",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- 	.opt_clks	= dss_dsi1_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(dss_dsi1_opt_clks),
 
- };
 
- /* dss_dsi2 */
 
- static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
 
- 	{ .irq = 84 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
 
- 	{ .dma_req = 83 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
 
- 	{ .role = "sys_clk", .clk = "dss_sys_clk" },
 
- };
 
- static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
 
- 	.name		= "dss_dsi2",
 
- 	.class		= &omap44xx_dsi_hwmod_class,
 
- 	.clkdm_name	= "l3_dss_clkdm",
 
- 	.mpu_irqs	= omap44xx_dss_dsi2_irqs,
 
- 	.sdma_reqs	= omap44xx_dss_dsi2_sdma_reqs,
 
- 	.main_clk	= "dss_dss_clk",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- 	.opt_clks	= dss_dsi2_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(dss_dsi2_opt_clks),
 
- };
 
- /*
 
-  * 'hdmi' class
 
-  * hdmi controller
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_hdmi_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 |
 
- 			   SIDLE_SMART_WKUP),
 
- 	.sysc_fields	= &omap_hwmod_sysc_type2,
 
- };
 
- static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
 
- 	.name	= "hdmi",
 
- 	.sysc	= &omap44xx_hdmi_sysc,
 
- };
 
- /* dss_hdmi */
 
- static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
 
- 	{ .irq = 101 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
 
- 	{ .dma_req = 75 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
 
- 	{ .role = "sys_clk", .clk = "dss_sys_clk" },
 
- };
 
- static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
 
- 	.name		= "dss_hdmi",
 
- 	.class		= &omap44xx_hdmi_hwmod_class,
 
- 	.clkdm_name	= "l3_dss_clkdm",
 
- 	/*
 
- 	 * HDMI audio requires to use no-idle mode. Hence,
 
- 	 * set idle mode by software.
 
- 	 */
 
- 	.flags		= HWMOD_SWSUP_SIDLE,
 
- 	.mpu_irqs	= omap44xx_dss_hdmi_irqs,
 
- 	.sdma_reqs	= omap44xx_dss_hdmi_sdma_reqs,
 
- 	.main_clk	= "dss_48mhz_clk",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- 	.opt_clks	= dss_hdmi_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(dss_hdmi_opt_clks),
 
- };
 
- /*
 
-  * 'rfbi' class
 
-  * remote frame buffer interface
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.syss_offs	= 0x0014,
 
- 	.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 omap44xx_rfbi_hwmod_class = {
 
- 	.name	= "rfbi",
 
- 	.sysc	= &omap44xx_rfbi_sysc,
 
- };
 
- /* dss_rfbi */
 
- static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
 
- 	{ .dma_req = 13 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
 
- 	{ .role = "ick", .clk = "dss_fck" },
 
- };
 
- static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
 
- 	.name		= "dss_rfbi",
 
- 	.class		= &omap44xx_rfbi_hwmod_class,
 
- 	.clkdm_name	= "l3_dss_clkdm",
 
- 	.sdma_reqs	= omap44xx_dss_rfbi_sdma_reqs,
 
- 	.main_clk	= "dss_dss_clk",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- 	.opt_clks	= dss_rfbi_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(dss_rfbi_opt_clks),
 
- };
 
- /*
 
-  * 'venc' class
 
-  * video encoder
 
-  */
 
- static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
 
- 	.name	= "venc",
 
- };
 
- /* dss_venc */
 
- static struct omap_hwmod omap44xx_dss_venc_hwmod = {
 
- 	.name		= "dss_venc",
 
- 	.class		= &omap44xx_venc_hwmod_class,
 
- 	.clkdm_name	= "l3_dss_clkdm",
 
- 	.main_clk	= "dss_tv_clk",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'elm' class
 
-  * bch error location module
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.syss_offs	= 0x0014,
 
- 	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
 
- 			   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 omap44xx_elm_hwmod_class = {
 
- 	.name	= "elm",
 
- 	.sysc	= &omap44xx_elm_sysc,
 
- };
 
- /* elm */
 
- static struct omap_hwmod_irq_info omap44xx_elm_irqs[] = {
 
- 	{ .irq = 4 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_elm_hwmod = {
 
- 	.name		= "elm",
 
- 	.class		= &omap44xx_elm_hwmod_class,
 
- 	.clkdm_name	= "l4_per_clkdm",
 
- 	.mpu_irqs	= omap44xx_elm_irqs,
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'emif' class
 
-  * external memory interface no1
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- };
 
- static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
 
- 	.name	= "emif",
 
- 	.sysc	= &omap44xx_emif_sysc,
 
- };
 
- /* emif1 */
 
- static struct omap_hwmod_irq_info omap44xx_emif1_irqs[] = {
 
- 	{ .irq = 110 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_emif1_hwmod = {
 
- 	.name		= "emif1",
 
- 	.class		= &omap44xx_emif_hwmod_class,
 
- 	.clkdm_name	= "l3_emif_clkdm",
 
- 	.flags		= HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
 
- 	.mpu_irqs	= omap44xx_emif1_irqs,
 
- 	.main_clk	= "ddrphy_ck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /* emif2 */
 
- static struct omap_hwmod_irq_info omap44xx_emif2_irqs[] = {
 
- 	{ .irq = 111 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_emif2_hwmod = {
 
- 	.name		= "emif2",
 
- 	.class		= &omap44xx_emif_hwmod_class,
 
- 	.clkdm_name	= "l3_emif_clkdm",
 
- 	.flags		= HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
 
- 	.mpu_irqs	= omap44xx_emif2_irqs,
 
- 	.main_clk	= "ddrphy_ck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'fdif' class
 
-  * face detection hw accelerator module
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	/*
 
- 	 * FDIF needs 100 OCP clk cycles delay after a softreset before
 
- 	 * accessing sysconfig again.
 
- 	 * The lowest frequency at the moment for L3 bus is 100 MHz, so
 
- 	 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
 
- 	 *
 
- 	 * TODO: Indicate errata when available.
 
- 	 */
 
- 	.srst_udelay	= 2,
 
- 	.sysc_flags	= (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
 
- 			   SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
 
- 	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
 
- 			   MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
 
- 	.sysc_fields	= &omap_hwmod_sysc_type2,
 
- };
 
- static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
 
- 	.name	= "fdif",
 
- 	.sysc	= &omap44xx_fdif_sysc,
 
- };
 
- /* fdif */
 
- static struct omap_hwmod_irq_info omap44xx_fdif_irqs[] = {
 
- 	{ .irq = 69 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_fdif_hwmod = {
 
- 	.name		= "fdif",
 
- 	.class		= &omap44xx_fdif_hwmod_class,
 
- 	.clkdm_name	= "iss_clkdm",
 
- 	.mpu_irqs	= omap44xx_fdif_irqs,
 
- 	.main_clk	= "fdif_fck",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_SWCTRL,
 
- 		},
 
- 	},
 
- };
 
- /*
 
-  * 'gpio' class
 
-  * general purpose io module
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_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 omap44xx_gpio_hwmod_class = {
 
- 	.name	= "gpio",
 
- 	.sysc	= &omap44xx_gpio_sysc,
 
- 	.rev	= 2,
 
- };
 
- /* gpio dev_attr */
 
- static struct omap_gpio_dev_attr gpio_dev_attr = {
 
- 	.bank_width	= 32,
 
- 	.dbck_flag	= true,
 
- };
 
- /* gpio1 */
 
- static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
 
- 	{ .irq = 29 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
 
- 	{ .role = "dbclk", .clk = "gpio1_dbclk" },
 
- };
 
- static struct omap_hwmod omap44xx_gpio1_hwmod = {
 
- 	.name		= "gpio1",
 
- 	.class		= &omap44xx_gpio_hwmod_class,
 
- 	.clkdm_name	= "l4_wkup_clkdm",
 
- 	.mpu_irqs	= omap44xx_gpio1_irqs,
 
- 	.main_clk	= "gpio1_ick",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- 	.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 omap44xx_gpio2_irqs[] = {
 
- 	{ .irq = 30 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
 
- 	{ .role = "dbclk", .clk = "gpio2_dbclk" },
 
- };
 
- static struct omap_hwmod omap44xx_gpio2_hwmod = {
 
- 	.name		= "gpio2",
 
- 	.class		= &omap44xx_gpio_hwmod_class,
 
- 	.clkdm_name	= "l4_per_clkdm",
 
- 	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
 
- 	.mpu_irqs	= omap44xx_gpio2_irqs,
 
- 	.main_clk	= "gpio2_ick",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- 	.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 omap44xx_gpio3_irqs[] = {
 
- 	{ .irq = 31 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
 
- 	{ .role = "dbclk", .clk = "gpio3_dbclk" },
 
- };
 
- static struct omap_hwmod omap44xx_gpio3_hwmod = {
 
- 	.name		= "gpio3",
 
- 	.class		= &omap44xx_gpio_hwmod_class,
 
- 	.clkdm_name	= "l4_per_clkdm",
 
- 	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
 
- 	.mpu_irqs	= omap44xx_gpio3_irqs,
 
- 	.main_clk	= "gpio3_ick",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- 	.opt_clks	= gpio3_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(gpio3_opt_clks),
 
- 	.dev_attr	= &gpio_dev_attr,
 
- };
 
- /* gpio4 */
 
- static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
 
- 	{ .irq = 32 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
 
- 	{ .role = "dbclk", .clk = "gpio4_dbclk" },
 
- };
 
- static struct omap_hwmod omap44xx_gpio4_hwmod = {
 
- 	.name		= "gpio4",
 
- 	.class		= &omap44xx_gpio_hwmod_class,
 
- 	.clkdm_name	= "l4_per_clkdm",
 
- 	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
 
- 	.mpu_irqs	= omap44xx_gpio4_irqs,
 
- 	.main_clk	= "gpio4_ick",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- 	.opt_clks	= gpio4_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(gpio4_opt_clks),
 
- 	.dev_attr	= &gpio_dev_attr,
 
- };
 
- /* gpio5 */
 
- static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
 
- 	{ .irq = 33 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
 
- 	{ .role = "dbclk", .clk = "gpio5_dbclk" },
 
- };
 
- static struct omap_hwmod omap44xx_gpio5_hwmod = {
 
- 	.name		= "gpio5",
 
- 	.class		= &omap44xx_gpio_hwmod_class,
 
- 	.clkdm_name	= "l4_per_clkdm",
 
- 	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
 
- 	.mpu_irqs	= omap44xx_gpio5_irqs,
 
- 	.main_clk	= "gpio5_ick",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- 	.opt_clks	= gpio5_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(gpio5_opt_clks),
 
- 	.dev_attr	= &gpio_dev_attr,
 
- };
 
- /* gpio6 */
 
- static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
 
- 	{ .irq = 34 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
 
- 	{ .role = "dbclk", .clk = "gpio6_dbclk" },
 
- };
 
- static struct omap_hwmod omap44xx_gpio6_hwmod = {
 
- 	.name		= "gpio6",
 
- 	.class		= &omap44xx_gpio_hwmod_class,
 
- 	.clkdm_name	= "l4_per_clkdm",
 
- 	.flags		= HWMOD_CONTROL_OPT_CLKS_IN_RESET,
 
- 	.mpu_irqs	= omap44xx_gpio6_irqs,
 
- 	.main_clk	= "gpio6_ick",
 
- 	.prcm = {
 
- 		.omap4 = {
 
- 			.clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
 
- 			.context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
 
- 			.modulemode   = MODULEMODE_HWCTRL,
 
- 		},
 
- 	},
 
- 	.opt_clks	= gpio6_opt_clks,
 
- 	.opt_clks_cnt	= ARRAY_SIZE(gpio6_opt_clks),
 
- 	.dev_attr	= &gpio_dev_attr,
 
- };
 
- /*
 
-  * 'gpmc' class
 
-  * general purpose memory controller
 
-  */
 
- static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
 
- 	.rev_offs	= 0x0000,
 
- 	.sysc_offs	= 0x0010,
 
- 	.syss_offs	= 0x0014,
 
- 	.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 omap44xx_gpmc_hwmod_class = {
 
- 	.name	= "gpmc",
 
- 	.sysc	= &omap44xx_gpmc_sysc,
 
- };
 
- /* gpmc */
 
- static struct omap_hwmod_irq_info omap44xx_gpmc_irqs[] = {
 
- 	{ .irq = 20 + OMAP44XX_IRQ_GIC_START },
 
- 	{ .irq = -1 }
 
- };
 
- static struct omap_hwmod_dma_info omap44xx_gpmc_sdma_reqs[] = {
 
- 	{ .dma_req = 3 + OMAP44XX_DMA_REQ_START },
 
- 	{ .dma_req = -1 }
 
- };
 
- static struct omap_hwmod omap44xx_gpmc_hwmod = {
 
- 	.name		= "gpmc",
 
- 	.class		= &omap44xx_gpmc_hwmod_class,
 
- 	.clkdm_name	= "l3_2_clkdm",
 
- 	/*
 
- 	 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
 
- 	 * block.  It is not being added due to any known bugs with
 
- 	 * resetting the GPMC IP block, but rather because any timings
 
- 	 * set by the bootloader are not being correctly programmed by
 
- 	 * the kernel from the board file or DT data.
 
- 	 * HWMOD_INIT_NO_RESET should be removed ASAP.
 
- 	 */
 
- 	.flags		= HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
 
- 	.mpu_irqs	= omap44xx_gpmc_irqs,
 
- 	.sdma_reqs	= omap44xx_gpmc_sdma_reqs,
 
- 	.prcm = {
 
 
  |