30 Nov, 2012

1 commit

  • …x/kernel/git/tmlind/linux-omap into next/pm2

    From Tony Lindgren:

    omap prcm changes via Paul Walmsley <paul@pwsan.com>:

    Some miscellaneous OMAP hwmod changes for 3.8, along with a PRM
    change needed for one of the hwmod patches to function.

    Basic test logs for this branch on top of Tony's
    omap-for-v3.8/clock branch at commit
    558a0780b0a04862a678f7823215424b4e5501f9 are here:

    http://www.pwsan.com/omap/testlogs/hwmod_devel_a_3.8/20121121161522/

    However, omap-for-v3.8/clock at 558a0780 does not include some fixes
    that are needed for a successful test. With several reverts,
    fixes, and workarounds applied, the following test logs were
    obtained:

    http://www.pwsan.com/omap/testlogs/TEST_hwmod_devel_a_3.8/20121121162719/

    which indicate that the series tests cleanly.

    * tag 'omap-for-v3.8/devel-prcm-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (49 commits)
    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+: 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
    ARM: OMAP3: clock: Cleanup !CONFIG_COMMON_CLK parts
    ARM: OMAP44xx: clock: drop obsolete clock data
    ARM: OMAP4: clock: Cleanup !CONFIG_COMMON_CLK parts
    ARM: OMAP: hwmod: Cleanup !CONFIG_COMMON_CLK parts
    ARM: OMAP: clock: Switch to COMMON clk
    ARM: OMAP2: clock: Add 24xx data using common struct clk
    ARM: OMAP3: clock: Add 3xxx data using common struct clk
    ARM: AM33XX: clock: add clock data in common clock format
    ARM: OMAP4: clock: Add 44xx data using common struct clk
    ARM: OMAP2+: clock: add OMAP CCF convenience macros to mach-omap2/clock.h
    ...

    Some context conflicts due to nearby changes resolved in
    arch/arm/mach-omap2/io.c.

    Signed-off-by: Olof Johansson <olof@lixom.net>

    Olof Johansson
     

26 Nov, 2012

1 commit

  • Merging in mainline back to next/cleanup since it has collected a few
    conflicts between fixes going upstream and some of the cleanup patches.
    Git doesn't auto-resolve some of them, and they're mostly noise so let's
    take care of it locally.

    Conflicts are in:
    arch/arm/mach-omap2/omap_hwmod_44xx_data.c
    arch/arm/plat-omap/i2c.c
    drivers/video/omap2/dss/dss.c

    Signed-off-by: Olof Johansson

    Olof Johansson
     

22 Nov, 2012

2 commits

  • Add flags parameter for omap_hwmod_count_resources() so users can tell which
    type of resources they are interested when counting them in hwmod database.

    Signed-off-by: Peter Ujfalusi
    Acked-by: Benoît Cousson
    [paul@pwsan.com: updated to apply]
    Signed-off-by: Paul Walmsley

    Peter Ujfalusi
     
  • OMAP4 has module specific context lost registers which makes it now
    possible to have module level context loss count, instead of relying
    on the powerdomain level context count.

    Add 2 private hwmod api's to update/clear the hwmod/module specific
    context lost counters/register.

    Update the module specific context_lost_counter and clear the hardware
    bits just after enabling the module.

    omap_hwmod_get_context_loss_count() now returns the hwmod context loss
    count them on platforms where they exist (OMAP4), else fall back on
    the pwrdm level counters for older platforms.

    Signed-off-by: Rajendra Nayak
    [paul@pwsan.com: added function kerneldoc, fixed structure kerneldoc,
    rearranged structure to avoid memory waste, marked fns as OMAP4-specific,
    prevent fn entry on non-OMAP4 chips, reduced indentation, merged update
    and clear, merged patches]
    [t-kristo@ti.com: added support for arch specific hwmod ops, and changed
    the no context offset indicator to USHRT_MAX]
    Signed-off-by: Tero Kristo
    [paul@pwsan.com: use NO_CONTEXT_LOSS_BIT flag rather than USHRT_MAX;
    convert unsigned context lost counter to int to match the return type;
    get rid of hwmod_ops in favor of the existing soc_ops mechanism;
    move context loss low-level accesses to the PRM code]
    Signed-off-by: Paul Walmsley

    Rajendra Nayak
     

19 Oct, 2012

2 commits