diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2018-03-07 10:21:59 -0500 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2018-03-07 10:21:59 -0500 |
| commit | 18b4788badeae8ed3a9bd3c240d83dffe5db8f37 (patch) | |
| tree | 664dacce5739cfe87b791994c37ada5bb99b2fa2 /include/linux/platform_data | |
| parent | 6f566c4f304de8a90d520f7ca1925b4ea7dc3581 (diff) | |
| parent | afe761f8d3e99155b76833421e76553a3ac69577 (diff) | |
Merge tag 'omap-for-v4.17/am-pm-signed' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/soc
Pull "Add am335x and am437x PM code for v4.17" from Tony Lindgren:
This series of changes from Dave Gerlach adds the PM related
code to allow low-power suspend states. The code consists of
the SoC specific assembly code and a related PM driver.
* tag 'omap-for-v4.17/am-pm-signed' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
soc: ti: Add pm33xx driver for basic suspend support
ARM: OMAP2+: pm33xx-core: Add platform code needed for PM
ARM: OMAP2+: Introduce low-level suspend code for AM43XX
ARM: OMAP2+: Introduce low-level suspend code for AM33XX
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/pm33xx.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/linux/platform_data/pm33xx.h b/include/linux/platform_data/pm33xx.h new file mode 100644 index 000000000000..f9bed2a0af9d --- /dev/null +++ b/include/linux/platform_data/pm33xx.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 2 | /* | ||
| 3 | * TI pm33xx platform data | ||
| 4 | * | ||
| 5 | * Copyright (C) 2016-2018 Texas Instruments, Inc. | ||
| 6 | * Dave Gerlach <d-gerlach@ti.com> | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef _LINUX_PLATFORM_DATA_PM33XX_H | ||
| 10 | #define _LINUX_PLATFORM_DATA_PM33XX_H | ||
| 11 | |||
| 12 | #include <linux/kbuild.h> | ||
| 13 | #include <linux/types.h> | ||
| 14 | |||
| 15 | #ifndef __ASSEMBLER__ | ||
| 16 | struct am33xx_pm_sram_addr { | ||
| 17 | void (*do_wfi)(void); | ||
| 18 | unsigned long *do_wfi_sz; | ||
| 19 | unsigned long *resume_offset; | ||
| 20 | unsigned long *emif_sram_table; | ||
| 21 | unsigned long *ro_sram_data; | ||
| 22 | }; | ||
| 23 | |||
| 24 | struct am33xx_pm_platform_data { | ||
| 25 | int (*init)(void); | ||
| 26 | int (*soc_suspend)(unsigned int state, int (*fn)(unsigned long)); | ||
| 27 | struct am33xx_pm_sram_addr *(*get_sram_addrs)(void); | ||
| 28 | }; | ||
| 29 | |||
| 30 | struct am33xx_pm_sram_data { | ||
| 31 | u32 wfi_flags; | ||
| 32 | u32 l2_aux_ctrl_val; | ||
| 33 | u32 l2_prefetch_ctrl_val; | ||
| 34 | } __packed __aligned(8); | ||
| 35 | |||
| 36 | struct am33xx_pm_ro_sram_data { | ||
| 37 | u32 amx3_pm_sram_data_virt; | ||
| 38 | u32 amx3_pm_sram_data_phys; | ||
| 39 | } __packed __aligned(8); | ||
| 40 | |||
| 41 | #endif /* __ASSEMBLER__ */ | ||
| 42 | #endif /* _LINUX_PLATFORM_DATA_PM33XX_H */ | ||
