diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 13:58:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-13 13:58:20 -0500 |
commit | a11da7df6543b5f71a150b47c0d08ecf0799a0f3 (patch) | |
tree | 77eaac99426f64a0a8dc3b5d62c86138a8c72d43 /arch/arm/mach-omap2/omap_hwmod.h | |
parent | b8edf848e9119bab9d999b9ca80d8520641810f2 (diff) | |
parent | 9c7466b217af784280d9fc841bbd559ef3bf33e9 (diff) |
Merge tag 'pm-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC power management and clock changes from Olof Johansson:
"This branch contains a largeish set of updates of power management and
clock setup. The bulk of it is for OMAP/AM33xx platforms, but also a
few around hotplug/suspend/resume on Exynos.
It includes a split-up of some of the OMAP clock data into separate
files which adds to the diffstat, but gross delta is fairly reasonable."
* tag 'pm-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (60 commits)
ARM: OMAP: Move plat-omap/dma-omap.h to include/linux/omap-dma.h
ASoC: OMAP: mcbsp fixes for enabling ARM multiplatform support
watchdog: OMAP: fixup for ARM multiplatform support
ARM: EXYNOS: Add flush_cache_all in suspend finisher
ARM: EXYNOS: Remove scu_enable from cpuidle
ARM: EXYNOS: Fix soft reboot hang after suspend/resume
ARM: EXYNOS: Add support for rtc wakeup
ARM: EXYNOS: fix the hotplug for Cortex-A15
ARM: OMAP2+: omap_device: Correct resource handling for DT boot
ARM: OMAP2+: hwmod: Add possibility to count hwmod resources based on type
ARM: OMAP2+: hwmod: Add support for per hwmod/module context lost count
ARM: OMAP2+: PRM: initialize some PRM functions early
ARM: OMAP2+: voltage: fixup oscillator handling when CONFIG_PM=n
ARM: OMAP4: USB: power down MUSB PHY during boot
ARM: OMAP2+: clock: Cleanup !CONFIG_COMMON_CLK parts
ARM: OMAP2xxx: clock: drop obsolete clock data
ARM: OMAP2: clock: Cleanup !CONFIG_COMMON_CLK parts
ARM: OMAP3+: DPLL: drop !CONFIG_COMMON_CLK sections
ARM: AM33xx: clock: drop obsolete clock data
ARM: OMAP3xxx: clk: drop obsolete clock data
...
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.h')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index 87a3c5b7aa74..3ae852a522f9 100644 --- a/arch/arm/mach-omap2/omap_hwmod.h +++ b/arch/arm/mach-omap2/omap_hwmod.h | |||
@@ -2,7 +2,7 @@ | |||
2 | * omap_hwmod macros, structures | 2 | * omap_hwmod macros, structures |
3 | * | 3 | * |
4 | * Copyright (C) 2009-2011 Nokia Corporation | 4 | * Copyright (C) 2009-2011 Nokia Corporation |
5 | * Copyright (C) 2012 Texas Instruments, Inc. | 5 | * Copyright (C) 2011-2012 Texas Instruments, Inc. |
6 | * Paul Walmsley | 6 | * Paul Walmsley |
7 | * | 7 | * |
8 | * Created in collaboration with (alphabetical order): Benoît Cousson, | 8 | * Created in collaboration with (alphabetical order): Benoît Cousson, |
@@ -394,12 +394,15 @@ struct omap_hwmod_omap2_prcm { | |||
394 | 394 | ||
395 | /** | 395 | /** |
396 | * struct omap_hwmod_omap4_prcm - OMAP4-specific PRCM data | 396 | * struct omap_hwmod_omap4_prcm - OMAP4-specific PRCM data |
397 | * @clkctrl_reg: PRCM address of the clock control register | 397 | * @clkctrl_offs: offset of the PRCM clock control register |
398 | * @rstctrl_reg: address of the XXX_RSTCTRL register located in the PRM | 398 | * @rstctrl_offs: offset of the XXX_RSTCTRL register located in the PRM |
399 | * @context_offs: offset of the RM_*_CONTEXT register | ||
399 | * @lostcontext_mask: bitmask for selecting bits from RM_*_CONTEXT register | 400 | * @lostcontext_mask: bitmask for selecting bits from RM_*_CONTEXT register |
400 | * @rstst_reg: (AM33XX only) address of the XXX_RSTST register in the PRM | 401 | * @rstst_reg: (AM33XX only) address of the XXX_RSTST register in the PRM |
401 | * @submodule_wkdep_bit: bit shift of the WKDEP range | 402 | * @submodule_wkdep_bit: bit shift of the WKDEP range |
402 | * @flags: PRCM register capabilities for this IP block | 403 | * @flags: PRCM register capabilities for this IP block |
404 | * @modulemode: allowable modulemodes | ||
405 | * @context_lost_counter: Count of module level context lost | ||
403 | * | 406 | * |
404 | * If @lostcontext_mask is not defined, context loss check code uses | 407 | * If @lostcontext_mask is not defined, context loss check code uses |
405 | * whole register without masking. @lostcontext_mask should only be | 408 | * whole register without masking. @lostcontext_mask should only be |
@@ -415,6 +418,7 @@ struct omap_hwmod_omap4_prcm { | |||
415 | u8 submodule_wkdep_bit; | 418 | u8 submodule_wkdep_bit; |
416 | u8 modulemode; | 419 | u8 modulemode; |
417 | u8 flags; | 420 | u8 flags; |
421 | int context_lost_counter; | ||
418 | }; | 422 | }; |
419 | 423 | ||
420 | 424 | ||
@@ -633,7 +637,7 @@ void omap_hwmod_write(u32 v, struct omap_hwmod *oh, u16 reg_offs); | |||
633 | u32 omap_hwmod_read(struct omap_hwmod *oh, u16 reg_offs); | 637 | u32 omap_hwmod_read(struct omap_hwmod *oh, u16 reg_offs); |
634 | int omap_hwmod_softreset(struct omap_hwmod *oh); | 638 | int omap_hwmod_softreset(struct omap_hwmod *oh); |
635 | 639 | ||
636 | int omap_hwmod_count_resources(struct omap_hwmod *oh); | 640 | int omap_hwmod_count_resources(struct omap_hwmod *oh, unsigned long flags); |
637 | int omap_hwmod_fill_resources(struct omap_hwmod *oh, struct resource *res); | 641 | int omap_hwmod_fill_resources(struct omap_hwmod *oh, struct resource *res); |
638 | int omap_hwmod_fill_dma_resources(struct omap_hwmod *oh, struct resource *res); | 642 | int omap_hwmod_fill_dma_resources(struct omap_hwmod *oh, struct resource *res); |
639 | int omap_hwmod_get_resource_byname(struct omap_hwmod *oh, unsigned int type, | 643 | int omap_hwmod_get_resource_byname(struct omap_hwmod *oh, unsigned int type, |