Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions drivers/soc/apple/sleep-t8122.h
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ static int t8122_sleep_map_regs(struct apple_sleep *s)
if (apple_sleep_alloc_books(s))
return -ENOMEM;

sleep_slp_ddr_bind(s);

return 0;
}

Expand Down Expand Up @@ -1417,6 +1419,7 @@ static const struct apple_sleep_soc t8122_sleep_soc = {
.no_pmu_notes = true,
.display_no_restart = true,
.early_context = true,
.coproc_slp_ddr = true,
.stray = t8122_stray,
.nstray = ARRAY_SIZE(t8122_stray),
.wake_mask = 0x08,
Expand Down
5 changes: 3 additions & 2 deletions drivers/soc/apple/sleep-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,11 @@ static void apple_sleep_test_slp_ddr_voters(struct kunit *test)
apple_sleep_usb_slp_ddr(true);
KUNIT_EXPECT_EQ(test, st->fake_wake, 0xdead0000U);

/* Only T8112 enables coprocessor SLP_DDR votes among matched profiles. */
/* Only T8112 and T8122 enable coprocessor SLP_DDR votes among matched profiles. */
for (const struct of_device_id *id = apple_sleep_of_match; id->compatible[0]; id++) {
const struct apple_sleep_soc *soc = id->data;
bool want = !strcmp(id->compatible, "apple,t8112-sleep");
bool want = !strcmp(id->compatible, "apple,t8112-sleep") ||
!strcmp(id->compatible, "apple,t8122-sleep");

KUNIT_EXPECT_EQ_MSG(test, soc->coproc_slp_ddr, want, "%s", id->compatible);
}
Expand Down