IP blocks within a clock domain generally come with their own CM_X_CLKCTRL registers, each having it's own MODULEMODE field to manage the module. This is not the case for DSS, though. DSS contains contains sub modules, each of which are represented by hwmods, but DSS itself has only one register CM_DSS_DSS_CLKCTRL. Add a way to allow multiple hwmods to share the same MODULEMODE fiels. This means that MODULEMODE operation should be disabled only when the last hwmod using it is disabled. Changes in v2: - The OMAP4 PRCM hwmod flag to show that this hwmod is shared was found redundant, and therefore, removed. - Some of the struct names are shortened, and members are named more appropriately. Archit Taneja (2): arm: omap2+: hwmod: Add refcounting for modulemode shared by multiple hwmods arm: omap5 hwmod data: Example: Make DSS hwmods share MODULEMODE fields arch/arm/mach-omap2/omap_hwmod.c | 145 +++++++++++++++++++++++++---- arch/arm/mach-omap2/omap_hwmod.h | 35 +++++-- arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 40 +++++--- 3 files changed, 180 insertions(+), 40 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html