Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions drivers/soc/apple/sleep-t8103.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,19 @@ static const u32 t8103_aon_commit_off[] = {
0x78, /* 7: msg */
};

/*
* Domains that may remain powered at sleep entry because an enabled but unbound
* peripheral node (aes, jpeg0/1, ave_dma) keeps PMGR sync_state() pending.
* Children precede parents so lowering turns children off first and reverse
* restore raises parents first. fpwm0 is in t8103_cg_commit_off and dwi is
* always-on, so neither is listed here.
*/
static const struct apple_sleep_word t8103_stray[] = {
{ "aes", 0x238 }, { "jpg", 0x3c0 }, { "venc_me1", 0x8020 }, { "venc_me0", 0x8018 },
{ "venc_pipe5", 0x8010 }, { "venc_pipe4", 0x8008 }, { "venc_dma", 0x8000 },
{ "venc_sys", 0x408 },
};

/* Clock-gated ps domains (0x244) Linux leaves at actual 4, lowered to 0 as macOS has them */
static const u32 t8103_cg_commit_off[] = {
0x118, /* 0: soc_spmi0 */
Expand Down Expand Up @@ -1745,6 +1758,8 @@ static const struct apple_sleep_soc t8103_sleep_soc = {
.cluster_cpu = { T8103_CLUSTER_E, T8103_CLUSTER_P },
.ncluster_cpu = 2,
.ndisp = 1,
.stray = t8103_stray,
.nstray = ARRAY_SIZE(t8103_stray),
.pmu_usid = T8103_PMU_USID,
.wake_mask = T8103_WAKE_MASK,
.wake_status = T8103_WAKE_STATUS,
Expand Down
Loading