mbox series

[GIT,PULL,3/3] pm changes for am335x and am437x for v5.2

Message ID pull-1555087688-487222@atomide.com-3
State New
Headers show
Series [GIT,PULL,1/3] soc changes for omaps for v5.2 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v5.2/am4-pm-v2-signed

Message

Tony Lindgren April 12, 2019, 5:02 p.m. UTC
From: "Tony Lindgren" <tony@atomide.com>

The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b:

  Linux 5.1-rc1 (2019-03-17 14:22:26 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v5.2/am4-pm-v2-signed

for you to fetch changes up to 35667d812c38a219ea2dc6f23d33db50de57099e:

  Merge branch 'omap-for-v5.2/am4-ddr3' into omap-for-v5.2/am4-pm-v2 (2019-04-10 09:06:01 -0700)

----------------------------------------------------------------
PM changes for am335x and am437x

This series adds support for am437x RTC-only mode in suspend. In the
RTC-only mode suspend, everything is shut down except the RTC. This
makes the power consumption very low for suspend mode.

To support RTC-only mode, we need to export omap_rtc_power_off_program()
from the rtc driver and improve PM code to save and restore the wkup
domain context. As RTC-only mode depends on the device being wired
properly for things like memory, we need to also check for the machine
type before we allow it. We also need to run DDR3 hardware leveling on
resume.

Note that there is a trivial merge conflict between the RTC branch
and these changes where the RTC branch makes tm2bcd() a void function
and the error handling parts can be just dropped.

----------------------------------------------------------------
Dave Gerlach (2):
      memory: ti-emif-sram: Add ti_emif_run_hw_leveling for DDR3 hardware leveling
      ARM: OMAP2+: sleep43xx: Run EMIF HW leveling on resume path

Keerthy (4):
      rtc: OMAP: Add support for rtc-only mode
      ARM: OMAP2+: pm33xx: Add support for rtc+ddr in self refresh mode
      soc: ti: pm33xx: Move the am33xx_push_sram_idle to the top
      soc: ti: pm33xx: AM437X: Add rtc_only with ddr in self-refresh support

Tony Lindgren (1):
      Merge branch 'omap-for-v5.2/am4-ddr3' into omap-for-v5.2/am4-pm-v2

 arch/arm/mach-omap2/pm33xx-core.c    |  76 +++++++++-
 arch/arm/mach-omap2/sleep43xx.S      |   3 +
 drivers/memory/emif.h                |   4 +
 drivers/memory/ti-emif-pm.c          |   3 +
 drivers/memory/ti-emif-sram-pm.S     |  41 ++++++
 drivers/rtc/rtc-omap.c               |  51 +++++--
 drivers/soc/ti/Kconfig               |   5 +-
 drivers/soc/ti/pm33xx.c              | 273 ++++++++++++++++++++++++++++-------
 include/linux/platform_data/pm33xx.h |   5 +
 include/linux/rtc/rtc-omap.h         |   7 +
 include/linux/ti-emif-sram.h         |   3 +
 11 files changed, 409 insertions(+), 62 deletions(-)
 create mode 100644 include/linux/rtc/rtc-omap.h

Comments

Olof Johansson April 29, 2019, 6:04 a.m. UTC | #1
On Fri, Apr 12, 2019 at 10:02:07AM -0700, Tony Lindgren wrote:
> From: "Tony Lindgren" <tony@atomide.com>
> 
> The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b:
> 
>   Linux 5.1-rc1 (2019-03-17 14:22:26 -0700)
> 
> are available in the Git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v5.2/am4-pm-v2-signed
> 
> for you to fetch changes up to 35667d812c38a219ea2dc6f23d33db50de57099e:
> 
>   Merge branch 'omap-for-v5.2/am4-ddr3' into omap-for-v5.2/am4-pm-v2 (2019-04-10 09:06:01 -0700)
> 
> ----------------------------------------------------------------
> PM changes for am335x and am437x
> 
> This series adds support for am437x RTC-only mode in suspend. In the
> RTC-only mode suspend, everything is shut down except the RTC. This
> makes the power consumption very low for suspend mode.
> 
> To support RTC-only mode, we need to export omap_rtc_power_off_program()
> from the rtc driver and improve PM code to save and restore the wkup
> domain context. As RTC-only mode depends on the device being wired
> properly for things like memory, we need to also check for the machine
> type before we allow it. We also need to run DDR3 hardware leveling on
> resume.
> 
> Note that there is a trivial merge conflict between the RTC branch
> and these changes where the RTC branch makes tm2bcd() a void function
> and the error handling parts can be just dropped.

Merged, thanks!


-Olof