author | Dave Gerlach <d-gerlach@ti.com> | |
Fri, 23 Feb 2018 15:43:56 +0000 (09:43 -0600) | ||
committer | Tony Lindgren <tony@atomide.com> | |
Tue, 27 Feb 2018 16:53:37 +0000 (08:53 -0800) | ||
commit | 41d9d44d725808f27b53f266733e6d17d83020ba | |
tree | d01146c359a6f822aa3f1776c1e9faa74dc6f70e | tree | snapshot (tar.xz tar.gz zip) |
parent | 41d37e61372fdaf4d7e381580c0c3bf88972f7da | commit | diff |
ARM: OMAP2+: pm33xx-core: Add platform code needed for PM
Most of the PM code needed for am335x and am437x can be moved into a
module under drivers but some core code must remain in mach-omap2 at the
moment. This includes some internal clockdomain APIs and low-level ARM
APIs which are also not exported for use by modules.
Implement a few functions that handle these low-level platform
operations can be passed to the pm33xx module through the use of
platform data.
In addition to this, to be able to share data structures between C and
the sleep33xx and sleep43xx assembly code, we can automatically generate
all of the C struct member offsets and sizes as macros by processing
pm-asm-offsets.c into assembly code and then extracting the relevant
data as is done for the generated platform asm-offsets.h files.
Finally, add amx3_common_pm_init to create a dummy platform_device for
pm33xx so that our soon to be introduced pm33xx module can probe on
am335x and am437x platforms to enable basic suspend to mem and standby
support.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Most of the PM code needed for am335x and am437x can be moved into a
module under drivers but some core code must remain in mach-omap2 at the
moment. This includes some internal clockdomain APIs and low-level ARM
APIs which are also not exported for use by modules.
Implement a few functions that handle these low-level platform
operations can be passed to the pm33xx module through the use of
platform data.
In addition to this, to be able to share data structures between C and
the sleep33xx and sleep43xx assembly code, we can automatically generate
all of the C struct member offsets and sizes as macros by processing
pm-asm-offsets.c into assembly code and then extracting the relevant
data as is done for the generated platform asm-offsets.h files.
Finally, add amx3_common_pm_init to create a dummy platform_device for
pm33xx so that our soon to be introduced pm33xx module can probe on
am335x and am437x platforms to enable basic suspend to mem and standby
support.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Kconfig | diff | blob | history | |
arch/arm/mach-omap2/Makefile | diff | blob | history | |
arch/arm/mach-omap2/common.h | diff | blob | history | |
arch/arm/mach-omap2/io.c | diff | blob | history | |
arch/arm/mach-omap2/pm-asm-offsets.c | [new file with mode: 0644] | blob |
arch/arm/mach-omap2/pm.h | diff | blob | history | |
arch/arm/mach-omap2/pm33xx-core.c | [new file with mode: 0644] | blob |
arch/arm/mach-omap2/sleep33xx.S | diff | blob | history | |
arch/arm/mach-omap2/sleep43xx.S | diff | blob | history | |
include/linux/platform_data/pm33xx.h | [new file with mode: 0644] | blob |