aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/platform_data/ti-sysc.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-09-21 12:42:25 +0300
committerTony Lindgren <tony@atomide.com>2021-09-21 12:42:28 +0300
commit9d881361206ebcf6285c2ec2ef275aff80875347 (patch)
tree44e1edec38164f612e322d6fc063f9f8838bc22a /include/linux/platform_data/ti-sysc.h
parentbus: ti-sysc: Check for lost context in sysc_reinit_module() (diff)
downloadwireguard-linux-9d881361206ebcf6285c2ec2ef275aff80875347.tar.xz
wireguard-linux-9d881361206ebcf6285c2ec2ef275aff80875347.zip
bus: ti-sysc: Add quirk handling for reinit on context lost
Some interconnect target modules such as otg and gpmc on am335x need a re-init after resume. As we also have PM runtime cases where the context may be lost, let's handle these all with cpu_pm. For the am335x resume path, we already have cpu_pm_resume() call cpu_pm_cluster_exit(). Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/linux/platform_data/ti-sysc.h')
-rw-r--r--include/linux/platform_data/ti-sysc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/ti-sysc.h b/include/linux/platform_data/ti-sysc.h
index 9837fb011f2f..989aa30c598d 100644
--- a/include/linux/platform_data/ti-sysc.h
+++ b/include/linux/platform_data/ti-sysc.h
@@ -50,6 +50,7 @@ struct sysc_regbits {
s8 emufree_shift;
};
+#define SYSC_QUIRK_REINIT_ON_CTX_LOST BIT(28)
#define SYSC_QUIRK_REINIT_ON_RESUME BIT(27)
#define SYSC_QUIRK_GPMC_DEBUG BIT(26)
#define SYSC_MODULE_QUIRK_ENA_RESETDONE BIT(25)