| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 | /* * 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
 |