blob: 9c6e5a37da417165c447210e45f28f50f57eb9a8 [file] [log] [blame]
/*
* Copyright (c) 2017, The Linux Foundation. All rights reserved.
* Not a contribution
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "vr_int.h"
// List thermal configs in format {name, algo_type}
// This list is manually synced with the thermal config
#define THERMAL_CONFIG_SYNCED 1
#if THERMAL_CONFIG_SYNCED
#define NUM_NON_VR_CONFIGS 4
static thermal_algo_info_t non_vr_thermal_configs[NUM_NON_VR_CONFIGS] =
{{.config_name = "SKIN-HIGH-FLOOR", .algo_name = "ss"},
{.config_name = "SKIN-MID-FLOOR", .algo_name = "ss"},
{.config_name = "SKIN-LOW-FLOOR", .algo_name = "ss"},
{.config_name = "VIRTUAL-SS-GPU-SKIN", .algo_name = "ss"}};
#define NUM_VR_CONFIGS 1
static thermal_algo_info_t vr_thermal_configs[NUM_VR_CONFIGS] =
{{.config_name = "VR-EMMC", .algo_name = "monitor"}};
int load_thermal_cfg_info(thermal_cfg_info_t *non_vr, thermal_cfg_info_t *vr) {
if(!non_vr || !vr)
return -1;
non_vr->num_cfgs = NUM_NON_VR_CONFIGS;
non_vr->cfgs = &non_vr_thermal_configs[0];
vr->num_cfgs = NUM_VR_CONFIGS;
vr->cfgs = &vr_thermal_configs[0];
return 0;
}
#endif