aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/omap_hwmod.h
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-12-14 14:42:36 -0500
committerPaul Walmsley <paul@pwsan.com>2010-12-21 21:55:13 -0500
commitb56b7bc8d9293b64e7a459527ae78078902751ff (patch)
tree93ce348fa0111263be7042f331159a11849d0150 /arch/arm/plat-omap/include/plat/omap_hwmod.h
parentdc6d1cda044b24c3d9f8e4af0431887ebe3488ef (diff)
OMAP2+: hwmod: fix a warning, add some docs, remove unused fields
Trivial cleanup and documentation changes on the hwmod code and data: - add some hwmod documentation to indicate flags that should be moved outside the static hwmod data in a future patch - remove some unused fields in the struct omap_hwmod_ocp_if and struct omap_hwmod structures Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: BenoƮt Cousson <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/omap_hwmod.h')
-rw-r--r--arch/arm/plat-omap/include/plat/omap_hwmod.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h
index b588f4779806..62bdb23c95c9 100644
--- a/arch/arm/plat-omap/include/plat/omap_hwmod.h
+++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h
@@ -23,7 +23,7 @@
23 * - add pinmuxing 23 * - add pinmuxing
24 * - init_conn_id_bit (CONNID_BIT_VECTOR) 24 * - init_conn_id_bit (CONNID_BIT_VECTOR)
25 * - implement default hwmod SMS/SDRC flags? 25 * - implement default hwmod SMS/SDRC flags?
26 * - remove unused fields 26 * - move Linux-specific data ("non-ROM data") out
27 * 27 *
28 */ 28 */
29#ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD_H 29#ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD_H
@@ -159,7 +159,7 @@ struct omap_hwmod_omap2_firewall {
159 * ADDR_MAP_ON_INIT: Map this address space during omap_hwmod init. 159 * ADDR_MAP_ON_INIT: Map this address space during omap_hwmod init.
160 * ADDR_TYPE_RT: Address space contains module register target data. 160 * ADDR_TYPE_RT: Address space contains module register target data.
161 */ 161 */
162#define ADDR_MAP_ON_INIT (1 << 0) 162#define ADDR_MAP_ON_INIT (1 << 0) /* XXX does not belong */
163#define ADDR_TYPE_RT (1 << 1) 163#define ADDR_TYPE_RT (1 << 1)
164 164
165/** 165/**
@@ -200,8 +200,6 @@ struct omap_hwmod_addr_space {
200 * @fw: interface firewall data 200 * @fw: interface firewall data
201 * @addr_cnt: ARRAY_SIZE(@addr) 201 * @addr_cnt: ARRAY_SIZE(@addr)
202 * @width: OCP data width 202 * @width: OCP data width
203 * @thread_cnt: number of threads
204 * @max_burst_len: maximum burst length in @width sized words (0 if unlimited)
205 * @user: initiators using this interface (see OCP_USER_* macros above) 203 * @user: initiators using this interface (see OCP_USER_* macros above)
206 * @flags: OCP interface flags (see OCPIF_* macros above) 204 * @flags: OCP interface flags (see OCPIF_* macros above)
207 * 205 *
@@ -221,8 +219,6 @@ struct omap_hwmod_ocp_if {
221 } fw; 219 } fw;
222 u8 addr_cnt; 220 u8 addr_cnt;
223 u8 width; 221 u8 width;
224 u8 thread_cnt;
225 u8 max_burst_len;
226 u8 user; 222 u8 user;
227 u8 flags; 223 u8 flags;
228}; 224};
@@ -357,9 +353,9 @@ struct omap_hwmod_omap4_prcm {
357 * HWMOD_SWSUP_MSTDBY: omap_hwmod code should manually bring module in and out 353 * HWMOD_SWSUP_MSTDBY: omap_hwmod code should manually bring module in and out
358 * of standby, rather than relying on module smart-standby 354 * of standby, rather than relying on module smart-standby
359 * HWMOD_INIT_NO_RESET: don't reset this module at boot - important for 355 * HWMOD_INIT_NO_RESET: don't reset this module at boot - important for
360 * SDRAM controller, etc. 356 * SDRAM controller, etc. XXX probably belongs outside the main hwmod file
361 * HWMOD_INIT_NO_IDLE: don't idle this module at boot - important for SDRAM 357 * HWMOD_INIT_NO_IDLE: don't idle this module at boot - important for SDRAM
362 * controller, etc. 358 * controller, etc. XXX probably belongs outside the main hwmod file
363 * HWMOD_NO_AUTOIDLE: disable module autoidle (OCP_SYSCONFIG.AUTOIDLE) 359 * HWMOD_NO_AUTOIDLE: disable module autoidle (OCP_SYSCONFIG.AUTOIDLE)
364 * when module is enabled, rather than the default, which is to 360 * when module is enabled, rather than the default, which is to
365 * enable autoidle 361 * enable autoidle
@@ -459,8 +455,6 @@ struct omap_hwmod_class {
459 * @_sysc_cache: internal-use hwmod flags 455 * @_sysc_cache: internal-use hwmod flags
460 * @_mpu_rt_va: cached register target start address (internal use) 456 * @_mpu_rt_va: cached register target start address (internal use)
461 * @_mpu_port_index: cached MPU register target slave ID (internal use) 457 * @_mpu_port_index: cached MPU register target slave ID (internal use)
462 * @msuspendmux_reg_id: CONTROL_MSUSPENDMUX register ID (1-6)
463 * @msuspendmux_shift: CONTROL_MSUSPENDMUX register bit shift
464 * @mpu_irqs_cnt: number of @mpu_irqs 458 * @mpu_irqs_cnt: number of @mpu_irqs
465 * @sdma_reqs_cnt: number of @sdma_reqs 459 * @sdma_reqs_cnt: number of @sdma_reqs
466 * @opt_clks_cnt: number of @opt_clks 460 * @opt_clks_cnt: number of @opt_clks
@@ -506,8 +500,6 @@ struct omap_hwmod {
506 struct list_head node; 500 struct list_head node;
507 u16 flags; 501 u16 flags;
508 u8 _mpu_port_index; 502 u8 _mpu_port_index;
509 u8 msuspendmux_reg_id;
510 u8 msuspendmux_shift;
511 u8 response_lat; 503 u8 response_lat;
512 u8 mpu_irqs_cnt; 504 u8 mpu_irqs_cnt;
513 u8 sdma_reqs_cnt; 505 u8 sdma_reqs_cnt;