|  | @@ -2446,3 +2446,95 @@ static struct omap_hwmod omap44xx_mmc4_hwmod = {
 | 
	
		
			
				|  |  |  	.name		= "mmc4",
 | 
	
		
			
				|  |  |  	.class		= &omap44xx_mmc_hwmod_class,
 | 
	
		
			
				|  |  |  	.clkdm_name	= "l4_per_clkdm",
 | 
	
		
			
				|  |  | +	.mpu_irqs	= omap44xx_mmc4_irqs,
 | 
	
		
			
				|  |  | +	.sdma_reqs	= omap44xx_mmc4_sdma_reqs,
 | 
	
		
			
				|  |  | +	.main_clk	= "mmc4_fck",
 | 
	
		
			
				|  |  | +	.prcm = {
 | 
	
		
			
				|  |  | +		.omap4 = {
 | 
	
		
			
				|  |  | +			.clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
 | 
	
		
			
				|  |  | +			.context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
 | 
	
		
			
				|  |  | +			.modulemode   = MODULEMODE_SWCTRL,
 | 
	
		
			
				|  |  | +		},
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* mmc5 */
 | 
	
		
			
				|  |  | +static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
 | 
	
		
			
				|  |  | +	{ .irq = 59 + OMAP44XX_IRQ_GIC_START },
 | 
	
		
			
				|  |  | +	{ .irq = -1 }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
 | 
	
		
			
				|  |  | +	{ .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
 | 
	
		
			
				|  |  | +	{ .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
 | 
	
		
			
				|  |  | +	{ .dma_req = -1 }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod omap44xx_mmc5_hwmod = {
 | 
	
		
			
				|  |  | +	.name		= "mmc5",
 | 
	
		
			
				|  |  | +	.class		= &omap44xx_mmc_hwmod_class,
 | 
	
		
			
				|  |  | +	.clkdm_name	= "l4_per_clkdm",
 | 
	
		
			
				|  |  | +	.mpu_irqs	= omap44xx_mmc5_irqs,
 | 
	
		
			
				|  |  | +	.sdma_reqs	= omap44xx_mmc5_sdma_reqs,
 | 
	
		
			
				|  |  | +	.main_clk	= "mmc5_fck",
 | 
	
		
			
				|  |  | +	.prcm = {
 | 
	
		
			
				|  |  | +		.omap4 = {
 | 
	
		
			
				|  |  | +			.clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
 | 
	
		
			
				|  |  | +			.context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
 | 
	
		
			
				|  |  | +			.modulemode   = MODULEMODE_SWCTRL,
 | 
	
		
			
				|  |  | +		},
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/*
 | 
	
		
			
				|  |  | + * 'mmu' class
 | 
	
		
			
				|  |  | + * The memory management unit performs virtual to physical address translation
 | 
	
		
			
				|  |  | + * for its requestors.
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_class_sysconfig mmu_sysc = {
 | 
	
		
			
				|  |  | +	.rev_offs	= 0x000,
 | 
	
		
			
				|  |  | +	.sysc_offs	= 0x010,
 | 
	
		
			
				|  |  | +	.syss_offs	= 0x014,
 | 
	
		
			
				|  |  | +	.sysc_flags	= (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
 | 
	
		
			
				|  |  | +			   SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
 | 
	
		
			
				|  |  | +	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
 | 
	
		
			
				|  |  | +	.sysc_fields	= &omap_hwmod_sysc_type1,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
 | 
	
		
			
				|  |  | +	.name = "mmu",
 | 
	
		
			
				|  |  | +	.sysc = &mmu_sysc,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* mmu ipu */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
 | 
	
		
			
				|  |  | +	.da_start	= 0x0,
 | 
	
		
			
				|  |  | +	.da_end		= 0xfffff000,
 | 
	
		
			
				|  |  | +	.nr_tlb_entries = 32,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
 | 
	
		
			
				|  |  | +static struct omap_hwmod_irq_info omap44xx_mmu_ipu_irqs[] = {
 | 
	
		
			
				|  |  | +	{ .irq = 100 + OMAP44XX_IRQ_GIC_START, },
 | 
	
		
			
				|  |  | +	{ .irq = -1 }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
 | 
	
		
			
				|  |  | +	{ .name = "mmu_cache", .rst_shift = 2 },
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
 | 
	
		
			
				|  |  | +	{
 | 
	
		
			
				|  |  | +		.pa_start	= 0x55082000,
 | 
	
		
			
				|  |  | +		.pa_end		= 0x550820ff,
 | 
	
		
			
				|  |  | +		.flags		= ADDR_TYPE_RT,
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +	{ }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* l3_main_2 -> mmu_ipu */
 | 
	
		
			
				|  |  | +static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
 | 
	
		
			
				|  |  | +	.master		= &omap44xx_l3_main_2_hwmod,
 | 
	
		
			
				|  |  | +	.slave		= &omap44xx_mmu_ipu_hwmod,
 |