Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ti): Add support for dual core CPU in AM62L PSCI #2

Draft
wants to merge 1 commit into
base: dhruva/upstream-all-in-1
Choose a base branch
from
Draft
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
9 changes: 7 additions & 2 deletions plat/ti/k3/common/am62l_psci.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,17 @@ static int k3_pwr_domain_on(u_register_t mpidr)
return PSCI_E_INTERN_FAIL;
}

/* TODO: Add the actual pm operation call to turn on the core */
scmi_handler_device_state_set_on(AM62LX_DEV_COMPUTE_CLUSTER0_A53_0 + core);

return PSCI_E_SUCCESS;
}

static void __dead2 k3_pwr_domain_off_wfi(const psci_power_state_t *target_state)
{
int core;

core = plat_my_core_pos();

/* At very least the local core should be powering down */
assert(CORE_PWR_STATE(target_state) == PLAT_MAX_OFF_STATE);

Expand All @@ -81,7 +85,8 @@ static void __dead2 k3_pwr_domain_off_wfi(const psci_power_state_t *target_state

/* If our cluster is not going down we stop here */
if (CLUSTER_PWR_STATE(target_state) != PLAT_MAX_OFF_STATE) {
/* TODO: Add the actual pm operation call to turn off the core */
VERBOSE("A53 CORE: %d OFF\n", core);
scmi_handler_device_state_set_off(AM62LX_DEV_COMPUTE_CLUSTER0_A53_0 + core);
}

while (true)
Expand Down