1. 17 6月, 2013 1 次提交
    • S
      ARM: imx: create mxc_arch_reset_init_dt() for DT boot · c1e31d12
      Shawn Guo 提交于
      The mxc_arch_reset_init() uses static mapping and calls clk_get_sys() to
      get clock.  It's suitable for non-DT boot but not for DT boot where
      dynamic mapping and of_clk_get() should be used instead.  Create
      mxc_arch_reset_init_dt() as the DT variant of mxc_arch_reset_init(),
      and change DT platforms to use it.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      c1e31d12
  2. 10 5月, 2013 1 次提交
    • S
      ARM: imx: compile fix for hotplug.c · 009e63f8
      Shawn Guo 提交于
      Commit bca7a5a0 (ARM: cpu hotplug: remove majority of cache flushing
      from platforms) removes include of <asm/cacheflush.h> and hence
      discovers a few indirect inclusion and declaration problems as below.
      
        CC      arch/arm/mach-imx/hotplug.o
      In file included from arch/arm/mach-imx/hotplug.c:16:0:
      arch/arm/mach-imx/common.h:100:29: warning: ‘struct pt_regs’ declared inside parameter list [enabled by default]
      arch/arm/mach-imx/common.h:100:29: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
      arch/arm/mach-imx/common.h:101:29: warning: ‘struct pt_regs’ declared inside parameter list [enabled by default]
      arch/arm/mach-imx/hotplug.c: In function ‘imx_cpu_die’:
      arch/arm/mach-imx/hotplug.c:53:2: error: implicit declaration of function ‘cpu_do_idle’ [-Werror=implicit-function-declaration]
      arch/arm/mach-imx/hotplug.c: In function ‘imx_cpu_kill’:
      arch/arm/mach-imx/hotplug.c:58:26: error: ‘jiffies’ undeclared (first use in this function)
      arch/arm/mach-imx/hotplug.c:58:26: note: each undeclared identifier is reported only once for each function it appears in
      arch/arm/mach-imx/hotplug.c:58:2: error: implicit declaration of function ‘msecs_to_jiffies’ [-Werror=implicit-function-declaration]
      arch/arm/mach-imx/hotplug.c:61:3: error: implicit declaration of function ‘time_after’ [-Werror=implicit-function-declaration]
      
      Fix them by adding the needed inclusion and declaration.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      009e63f8
  3. 12 4月, 2013 3 次提交
  4. 01 4月, 2013 2 次提交
  5. 26 3月, 2013 1 次提交
    • S
      ARM: imx: fix sync issue between imx_cpu_die and imx_cpu_kill · 2f3edfd7
      Shawn Guo 提交于
      There is a sync issue with hotplug operation.  It's possible that when
      imx_cpu_kill gets running on primary core, the imx_cpu_die execution
      on the core which is to be killed hasn't been finished yet.  The problem
      will very likely be hit when running suspend without no_console_suspend
      setting on kernel cmdline.
      
      It uses cpu jumping argument register to sync imx_cpu_die and
      imx_cpu_kill.  The register will be set in imx_cpu_die and imx_cpu_kill
      will wait for the register being cleared to actually kill the cpu.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Cc: <stable@vger.kernel.org>
      2f3edfd7
  6. 30 1月, 2013 1 次提交
  7. 29 1月, 2013 3 次提交
  8. 14 1月, 2013 1 次提交
    • S
      ARM: imx: disable cpu in .cpu_kill hook · 83757664
      Shawn Guo 提交于
      It's buggy to disable the cpu that is being hot-unplugged in .cpu_die
      hook which runs on the cpu itself.  Instead, it should be done in
      .cpu_kill which runs on the thread (another cpu) that asks for shutting
      down the cpu.  Move imx_enable_cpu(cpu, false) call into .cpu_kill
      hook, and leave the cpu to be hot-unplugged in WFI within .cpu_die,
      so that we can get a more stable cpu hot-plug operation.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      83757664
  9. 13 1月, 2013 1 次提交
  10. 12 11月, 2012 1 次提交
  11. 15 10月, 2012 3 次提交
  12. 14 9月, 2012 1 次提交
  13. 11 9月, 2012 3 次提交
  14. 11 7月, 2012 1 次提交
  15. 05 6月, 2012 2 次提交
    • R
      ARM: imx: Enable imx53 low power idle · aa96a18d
      Robert Lee 提交于
      Add various functionality needed to enable a imx53 low power idle
      state.  This includes adding the imx53 gpc_dvfs clock and making a
      common imx5_late_init function and initializing all imx53
       MACHINE_STATE late_init calls to imx5_late_init.
      Signed-off-by: NRobert Lee <rob.lee@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      aa96a18d
    • R
      ARM: imx: clean and consolidate imx5 suspend and idle code · 565fa91f
      Robert Lee 提交于
      The imx5 idle code that existed in mm-imx5.c is moved to pm-imx5.c.
      The imx5_pm_init call is now exported and called during the
      MACHINE_START late_init in supported imx5 platforms.
      
      Remove various enabling/disabling of the gpc_dvfs clock and
      enable it once during initialization.  This is a very low
      power clock that must be enabled during low power operations.
      
      There are only two "suspend_state_t" imx5 low power modes ever
      used.  STOP_POWER_OFF for suspend to mem and
      WAIT_UNCLOCKED_POWER_OFF for idle and suspend to standby.  The
      latter mode only requires 500 nanoseconds of extra hardware
      exit time beyond a basic WFI operation (WAIT_CLOCKED mode) so
      no other idle mode is necessary.  Given this information, it
      is more efficient to keep the registers in the often used
      WAIT_UNCLOCKED_POWER_OFF state and only to and from the
      STOP_POWER_OFF register state as needed when suspend to
      mem is required.
      Signed-off-by: NRobert Lee <rob.lee@linaro.org>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      565fa91f
  16. 16 5月, 2012 1 次提交
  17. 08 5月, 2012 1 次提交
  18. 02 3月, 2012 2 次提交
  19. 29 2月, 2012 1 次提交
  20. 05 1月, 2012 2 次提交
  21. 26 12月, 2011 1 次提交
  22. 17 11月, 2011 1 次提交
  23. 16 11月, 2011 2 次提交
  24. 11 11月, 2011 1 次提交
    • S
      arm/imx: remove imx_idle hook and use pm_idle instead · 8c6d8319
      Shawn Guo 提交于
      The patch removes imx_idle hook and use pm_idle instead to get imx
      arch_idle prepared for the cleanup.  It's suggested by Russel King
      as below.
      
      > The final removal of mach/system.h depends on getting rid of the arch_idle
      > thing.  While going through these headers, I was dismayed to find these:
      >
      > arch/arm/mach-s3c2410/include/mach/system.h:void (*s3c24xx_idle)(void);
      > arch/arm/plat-mxc/include/mach/system.h:extern void (*imx_idle)(void);
      >
      > when we have a perfectly good pm_idle hook already in place - so there's
      > no excuse for these especially when other platforms are already using
      > pm_idle to hook their platform specific idle function into.  This is
      > something that better be gone at the next merge window!
      Suggested-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      8c6d8319
  25. 31 10月, 2011 3 次提交