kernel_samsung_a53x/drivers/vision3/dsp/platform/dsp-control.h
2024-06-15 16:02:09 -03:00

58 lines
1.1 KiB
C
Executable file

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Samsung Exynos SoC series dsp driver
*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*/
#ifndef __DSP_CONTROL_H__
#define __DSP_CONTROL_H__
#define SCENARIO_NAME_MAX (32)
enum dsp_control_id {
DSP_CONTROL_ENABLE_DVFS,
DSP_CONTROL_DISABLE_DVFS,
DSP_CONTROL_ENABLE_BOOST,
DSP_CONTROL_DISABLE_BOOST,
DSP_CONTROL_REQUEST_MO,
DSP_CONTROL_RELEASE_MO,
DSP_CONTROL_REQUEST_PRESET,
};
struct dsp_control_dvfs {
unsigned int pm_qos;
unsigned int reserved[3];
};
struct dsp_control_boost {
unsigned int reserved[4];
};
struct dsp_control_mo {
unsigned char scenario_name[SCENARIO_NAME_MAX];
unsigned int reserved[2];
};
struct dsp_control_preset {
int async;
int big_core_level;
int middle_core_level;
int little_core_level;
int mif_level;
int int_level;
int mo_scenario_id;
int llc_scenario_id;
int dvfs_ctrl;
int reserved[7];
};
union dsp_control {
struct dsp_control_dvfs dvfs;
struct dsp_control_boost boost;
struct dsp_control_mo mo;
struct dsp_control_preset preset;
};
#endif