|  | @@ -2538,3 +2538,186 @@ static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
 | 
	
		
			
				|  |  |  static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
 | 
	
		
			
				|  |  |  	.master		= &omap44xx_l3_main_2_hwmod,
 | 
	
		
			
				|  |  |  	.slave		= &omap44xx_mmu_ipu_hwmod,
 | 
	
		
			
				|  |  | +	.clk		= "l3_div_ck",
 | 
	
		
			
				|  |  | +	.addr		= omap44xx_mmu_ipu_addrs,
 | 
	
		
			
				|  |  | +	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
 | 
	
		
			
				|  |  | +	.name		= "mmu_ipu",
 | 
	
		
			
				|  |  | +	.class		= &omap44xx_mmu_hwmod_class,
 | 
	
		
			
				|  |  | +	.clkdm_name	= "ducati_clkdm",
 | 
	
		
			
				|  |  | +	.mpu_irqs	= omap44xx_mmu_ipu_irqs,
 | 
	
		
			
				|  |  | +	.rst_lines	= omap44xx_mmu_ipu_resets,
 | 
	
		
			
				|  |  | +	.rst_lines_cnt	= ARRAY_SIZE(omap44xx_mmu_ipu_resets),
 | 
	
		
			
				|  |  | +	.main_clk	= "ducati_clk_mux_ck",
 | 
	
		
			
				|  |  | +	.prcm = {
 | 
	
		
			
				|  |  | +		.omap4 = {
 | 
	
		
			
				|  |  | +			.clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
 | 
	
		
			
				|  |  | +			.rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
 | 
	
		
			
				|  |  | +			.context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
 | 
	
		
			
				|  |  | +			.modulemode   = MODULEMODE_HWCTRL,
 | 
	
		
			
				|  |  | +		},
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +	.dev_attr	= &mmu_ipu_dev_attr,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* mmu dsp */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
 | 
	
		
			
				|  |  | +	.da_start	= 0x0,
 | 
	
		
			
				|  |  | +	.da_end		= 0xfffff000,
 | 
	
		
			
				|  |  | +	.nr_tlb_entries = 32,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
 | 
	
		
			
				|  |  | +static struct omap_hwmod_irq_info omap44xx_mmu_dsp_irqs[] = {
 | 
	
		
			
				|  |  | +	{ .irq = 28 + OMAP44XX_IRQ_GIC_START },
 | 
	
		
			
				|  |  | +	{ .irq = -1 }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
 | 
	
		
			
				|  |  | +	{ .name = "mmu_cache", .rst_shift = 1 },
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
 | 
	
		
			
				|  |  | +	{
 | 
	
		
			
				|  |  | +		.pa_start	= 0x4a066000,
 | 
	
		
			
				|  |  | +		.pa_end		= 0x4a0660ff,
 | 
	
		
			
				|  |  | +		.flags		= ADDR_TYPE_RT,
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +	{ }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* l4_cfg -> dsp */
 | 
	
		
			
				|  |  | +static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
 | 
	
		
			
				|  |  | +	.master		= &omap44xx_l4_cfg_hwmod,
 | 
	
		
			
				|  |  | +	.slave		= &omap44xx_mmu_dsp_hwmod,
 | 
	
		
			
				|  |  | +	.clk		= "l4_div_ck",
 | 
	
		
			
				|  |  | +	.addr		= omap44xx_mmu_dsp_addrs,
 | 
	
		
			
				|  |  | +	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
 | 
	
		
			
				|  |  | +	.name		= "mmu_dsp",
 | 
	
		
			
				|  |  | +	.class		= &omap44xx_mmu_hwmod_class,
 | 
	
		
			
				|  |  | +	.clkdm_name	= "tesla_clkdm",
 | 
	
		
			
				|  |  | +	.mpu_irqs	= omap44xx_mmu_dsp_irqs,
 | 
	
		
			
				|  |  | +	.rst_lines	= omap44xx_mmu_dsp_resets,
 | 
	
		
			
				|  |  | +	.rst_lines_cnt	= ARRAY_SIZE(omap44xx_mmu_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,
 | 
	
		
			
				|  |  | +		},
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +	.dev_attr	= &mmu_dsp_dev_attr,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/*
 | 
	
		
			
				|  |  | + * 'mpu' class
 | 
	
		
			
				|  |  | + * mpu sub-system
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
 | 
	
		
			
				|  |  | +	.name	= "mpu",
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* mpu */
 | 
	
		
			
				|  |  | +static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
 | 
	
		
			
				|  |  | +	{ .name = "pmu0", .irq = 54 + OMAP44XX_IRQ_GIC_START },
 | 
	
		
			
				|  |  | +	{ .name = "pmu1", .irq = 55 + OMAP44XX_IRQ_GIC_START },
 | 
	
		
			
				|  |  | +	{ .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
 | 
	
		
			
				|  |  | +	{ .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
 | 
	
		
			
				|  |  | +	{ .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
 | 
	
		
			
				|  |  | +	{ .irq = -1 }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod omap44xx_mpu_hwmod = {
 | 
	
		
			
				|  |  | +	.name		= "mpu",
 | 
	
		
			
				|  |  | +	.class		= &omap44xx_mpu_hwmod_class,
 | 
	
		
			
				|  |  | +	.clkdm_name	= "mpuss_clkdm",
 | 
	
		
			
				|  |  | +	.flags		= HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
 | 
	
		
			
				|  |  | +	.mpu_irqs	= omap44xx_mpu_irqs,
 | 
	
		
			
				|  |  | +	.main_clk	= "dpll_mpu_m2_ck",
 | 
	
		
			
				|  |  | +	.prcm = {
 | 
	
		
			
				|  |  | +		.omap4 = {
 | 
	
		
			
				|  |  | +			.clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
 | 
	
		
			
				|  |  | +			.context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
 | 
	
		
			
				|  |  | +		},
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/*
 | 
	
		
			
				|  |  | + * 'ocmc_ram' class
 | 
	
		
			
				|  |  | + * top-level core on-chip ram
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
 | 
	
		
			
				|  |  | +	.name	= "ocmc_ram",
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* ocmc_ram */
 | 
	
		
			
				|  |  | +static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
 | 
	
		
			
				|  |  | +	.name		= "ocmc_ram",
 | 
	
		
			
				|  |  | +	.class		= &omap44xx_ocmc_ram_hwmod_class,
 | 
	
		
			
				|  |  | +	.clkdm_name	= "l3_2_clkdm",
 | 
	
		
			
				|  |  | +	.prcm = {
 | 
	
		
			
				|  |  | +		.omap4 = {
 | 
	
		
			
				|  |  | +			.clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
 | 
	
		
			
				|  |  | +			.context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
 | 
	
		
			
				|  |  | +		},
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/*
 | 
	
		
			
				|  |  | + * 'ocp2scp' class
 | 
	
		
			
				|  |  | + * bridge to transform ocp interface protocol to scp (serial control port)
 | 
	
		
			
				|  |  | + * protocol
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_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_ocp2scp_hwmod_class = {
 | 
	
		
			
				|  |  | +	.name	= "ocp2scp",
 | 
	
		
			
				|  |  | +	.sysc	= &omap44xx_ocp2scp_sysc,
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* ocp2scp dev_attr */
 | 
	
		
			
				|  |  | +static struct resource omap44xx_usb_phy_and_pll_addrs[] = {
 | 
	
		
			
				|  |  | +	{
 | 
	
		
			
				|  |  | +		.name		= "usb_phy",
 | 
	
		
			
				|  |  | +		.start		= 0x4a0ad080,
 | 
	
		
			
				|  |  | +		.end		= 0x4a0ae000,
 | 
	
		
			
				|  |  | +		.flags		= IORESOURCE_MEM,
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +	{
 | 
	
		
			
				|  |  | +		/* XXX: Remove this once control module driver is in place */
 | 
	
		
			
				|  |  | +		.name		= "ctrl_dev",
 | 
	
		
			
				|  |  | +		.start		= 0x4a002300,
 | 
	
		
			
				|  |  | +		.end		= 0x4a002303,
 | 
	
		
			
				|  |  | +		.flags		= IORESOURCE_MEM,
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +	{ }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +static struct omap_ocp2scp_dev ocp2scp_dev_attr[] = {
 | 
	
		
			
				|  |  | +	{
 | 
	
		
			
				|  |  | +		.drv_name       = "omap-usb2",
 | 
	
		
			
				|  |  | +		.res		= omap44xx_usb_phy_and_pll_addrs,
 | 
	
		
			
				|  |  | +	},
 | 
	
		
			
				|  |  | +	{ }
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* ocp2scp_usb_phy */
 |