diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2019-10-15 19:24:58 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-10-23 01:12:57 +0300 |
commit | 662bc2c978dafd4a804e68fa94712565fa121472 (patch) | |
tree | b2a9183d67b381e590385d36701461753539c71c /power-8996.c | |
parent | e0b5c193454bb9a823e479ea8f9f08b9538e2e22 (diff) | |
download | vendor_qcom_opensource_power-662bc2c978dafd4a804e68fa94712565fa121472.tar.gz vendor_qcom_opensource_power-662bc2c978dafd4a804e68fa94712565fa121472.tar.bz2 vendor_qcom_opensource_power-662bc2c978dafd4a804e68fa94712565fa121472.zip |
power: Use declared enums where possible
Change-Id: I079490f8ff61bf278dd69eb89b9dae5ce42e6052
Diffstat (limited to 'power-8996.c')
-rw-r--r-- | power-8996.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/power-8996.c b/power-8996.c index 937ce64..faee7a7 100644 --- a/power-8996.c +++ b/power-8996.c @@ -180,12 +180,14 @@ static int process_video_encode_hint(void* metadata) { * 3. hysteresis optimization * -bus dcvs hysteresis tuning * -sample_ms of 10 ms - * -sLVT hispeed freq to 806MHz */ - int resource_values[] = {0x41400000, 0x4, 0x41410000, 0x5F, 0x41414000, 0x326, - 0x41420000, 0x5A, 0x41400100, 0x4, 0x41410100, 0x5F, - 0x41414100, 0x22C, 0x41420100, 0x5A, 0x41810000, 0x9C4, - 0x41814000, 0x32, 0x4180C000, 0x0, 0x41820000, 0xA}; + int resource_values[] = { + ABOVE_HISPEED_DELAY_BIG, 0x4, GO_HISPEED_LOAD_BIG, 0x5F, + HISPEED_FREQ_BIG, 0x326, TARGET_LOADS_BIG, 0x5A, + ABOVE_HISPEED_DELAY_LITTLE, 0x4, GO_HISPEED_LOAD_LITTLE, 0x5F, + HISPEED_FREQ_LITTLE, 0x22C, TARGET_LOADS_LITTLE, 0x5A, + LOW_POWER_CEIL_MBPS, 0x9C4, LOW_POWER_IO_PERCENT, 0x32, + CPUBW_HWMON_HYST_OPT, 0x0, CPUBW_HWMON_SAMPLE_MS, 0xA}; if (!video_encode_hint_sent) { perform_hint_action(video_encode_metadata.hint_id, resource_values, ARRAY_SIZE(resource_values)); |