1. 15 Nov, 2012 1 commit
    • Arnd Bergmann's avatar
      Merge tag 'omap-for-v3.8/clock-signed' of... · fb6842a7
      Arnd Bergmann authored
      Merge tag 'omap-for-v3.8/clock-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/clk
      
      From Tony Lindgren <tony@atomide.com>:
      
      Common clock framework for omap2+ via Paul Walmsley <paul@pwsan.com>:
      
      Convert the OMAP2+ clock code and data to rely on the common
      clock framework for internal bookkeeping and the driver API.
      
      Basic test logs for this branch on top of Tony's cleanup-prcm branch
      at commit c9d501e5 are here:
      
      http://www.pwsan.com/omap/testlogs/common_clk_devel_3.8_rebase/20121112192516/
      
      However, cleanup-prcm at c9d501e5 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_common_clk_devel_3.8_rebase/20121112192300/
      
      which indicate that the series tests cleanly.
      
      N.B. The common clock data addition patches result in many
      checkpatch warnings of the form "WARNING: static const char *
      array should probably be static const char * const".  However, it
      appears that resolving these would require changes to the CCF
      itself.  So the resolution of these warnings is being postponed
      until that can be coordinated.
      
      These patches result in a ~55KiB increase in runtime kernel memory
      usage when booting omap2plus_defconfig kernels.
      
      Conflicts:
      	arch/arm/mach-omap2/clock33xx_data.c
      	arch/arm/mach-omap2/clock3xxx_data.c
      	arch/arm/mach-omap2/clock44xx_data.c
      
      Note that this is based on a merge of the omap-for-v3.8/cleanup-prcm
      and omap-for-v3.8/pm as otherwise merged in with the pm changes it
      would automatically resolve into a non-booting merge for omap3 as
      the smartreflex clock names were changed in the pm branch.
      
      * tag 'omap-for-v3.8/clock-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (27 commits)
        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
        ARM: OMAP: clock: Get rid of some clkdm assocations within clks
        ARM: OMAP2+: clockdomain: bypass clockdomain handling when disabling unused clks
        ARM: OMAP2+: hwmod: Invoke init_clkdm before other init functions
        ARM: OMAP: clock: Define a function to enable clocks at init
        ...
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      fb6842a7
  2. 13 Nov, 2012 26 commits
  3. 12 Nov, 2012 3 commits
    • Mike Turquette's avatar
      ARM: OMAP4: clock: Convert to common clk · 32cc0021
      Mike Turquette authored
      Convert all OMAP4 specific platform files to use COMMON clk
      and keep all the changes under the CONFIG_COMMON_CLK macro check
      so it does not break any existing code. At a later point switch
      to COMMON clk and get rid of all old/legacy code.
      
      This converts all apis which will be called directly from COMMON
      clk to take a struct clk_hw parameter, and all the internal platform
      apis to take a struct clk_hw_omap parameter.
      
      Changes are based off the original patch from Mike Turquette.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      [paul@pwsan.com: created new omap2_clksel_find_parent_index() rather than
       modifying omap2_init_clksel_parent(); moved clkhwops_iclk_wait to
       clkt_iclk.c to fix OMAP4-only builds; added clk-provider.h include to clock.h
       to try to fix some 3430-builds]
      [mturquette@ti.com: squash patch for omap2_clkops_{en,dis}able_clkdm;
       omap2_dflt_clk_is_enabled should not enable clocks]
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      [paul@pwsan.com: fix compiler warning; update to apply; added kerneldoc on
       non-trivial new functions; added the dpll3xxx clockdomain modifications]
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      32cc0021
    • Rajendra Nayak's avatar
      ARM: OMAP: hwmod: Fix up hwmod based clkdm accesses · f5dd3bb5
      Rajendra Nayak authored
      hwmod uses deferencing the clk pointer to acccess the clkdm.
      With COMMON clk hwoever this will need to be deferenced through
      the clk_hw_omap pointer, so do the necessary changes.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      f5dd3bb5
    • Rajendra Nayak's avatar
      ARM: OMAP: clock: Nuke plat/clock.c & reuse struct clk as clk_hw_omap · b5a2366c
      Rajendra Nayak authored
      plat/clock.c which has most of usecounting/locking infrastructure will
      be used only for OMAP1 until that is moved to use COMMON clk.
      
      reuse most of what plat/clock.h has while we move to common clk, and
      move most of what 'struct clk' was as 'struct clk_hw_omap' which
      will then be used to define platform specific parameters.
      All usecounting/locking related variables from 'struct clk' are
      dropped as they will not be used with 'struct clk_hw_omap'.
      
      Based on the original changes from Mike Turquette.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Signed-off-by: default avatarMike Turquette <mturquette@ti.com>
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      b5a2366c
  4. 09 Nov, 2012 1 commit
  5. 08 Nov, 2012 9 commits