Hexagon: Bump HMX Frequency to Max Corner (#22334)

* hexagon: bump HMX freq to max corner

* hex-mm: fix error in log msg
This commit is contained in:
Trivikram Reddy
2026-04-24 13:55:17 -07:00
committed by GitHub
parent a702f39597
commit 361fe72acb
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -101,6 +101,24 @@ AEEResult htp_iface_open(const char * uri, remote_handle64 * handle) {
}
}
{
// Set HMX clock
HAP_power_request_t request;
memset(&request, 0, sizeof(HAP_power_request_t));
request.type = HAP_power_set_HMX_v2;
request.hmx_v2.set_clock = TRUE;
request.hmx_v2.target_corner = HAP_DCVS_EXP_VCORNER_MAX;
request.hmx_v2.min_corner = HAP_DCVS_EXP_VCORNER_MAX;
request.hmx_v2.max_corner = HAP_DCVS_EXP_VCORNER_MAX;
request.hmx_v2.perf_mode = HAP_CLK_PERF_HIGH;
FARF(ALWAYS, "Setting HMX clock\n");
err = HAP_power_set((void *) &ctx, &request);
if (err != AEE_SUCCESS) {
FARF(ERROR, "Error setting HMX clock.");
return err;
}
}
return AEE_SUCCESS;
}