Initial commit: Linux kernel 4.19 for Unplugged OS

This commit is contained in:
ziv committed 2025-10-06 13:52:42 +00:00
commit d30235b04c
80519 files changed
+35800681

No files matched your search

@@ -0,0 +1,20 @@
#
# Copyright (C) 2019 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
ccflags-y += -I$(srctree)/drivers/misc/mediatek/performance/resym
ccflags-y += -I$(srctree)/drivers/misc/mediatek/apusys/power/2.0/$(MTK_PLATFORM)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/apusys/power/2.0
obj-y += rs_vpu_pfm.o
obj-y += rs_mdla_pfm.o
@@ -0,0 +1,65 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2020 MediaTek Inc.
*/
#include <linux/types.h>
#include "rs_pfm.h"
#ifdef CONFIG_MTK_APUSYS_SUPPORT
#include <linux/platform_device.h>
#include "apusys_power.h"
#include "apu_power_table.h"
#endif
int rs_get_mdla_core_num(void)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return 2;
#else
return 0;
#endif
}
int rs_get_mdla_opp_max(int core)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return APU_OPP_NUM - 1;
#else
return -1;
#endif
}
int rs_mdla_support_idletime(void)
{
return 0;
}
int rs_get_mdla_curr_opp(int core)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return apusys_get_opp(MDLA0);
#else
return -1;
#endif
}
int rs_get_mdla_ceiling_opp(int core)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return apusys_get_ceiling_opp(MDLA0);
#else
return -1;
#endif
}
int rs_mdla_opp_to_freq(int core, int step)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return apusys_opp_to_freq(MDLA0, step);
#else
return -1;
#endif
}
@@ -0,0 +1,65 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2020 MediaTek Inc.
*/
#include <linux/types.h>
#include "rs_pfm.h"
#if defined(CONFIG_MTK_APUSYS_SUPPORT)
#include <linux/platform_device.h>
#include "apusys_power.h"
#include "apu_power_table.h"
#endif
int rs_get_vpu_core_num(void)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return 3;
#else
return 0;
#endif
}
int rs_get_vpu_opp_max(int core)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return APU_OPP_NUM - 1;
#else
return -1;
#endif
}
int rs_vpu_support_idletime(void)
{
return 0;
}
int rs_get_vpu_curr_opp(int core)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return apusys_get_opp(VPU0);
#else
return -1;
#endif
}
int rs_get_vpu_ceiling_opp(int core)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return apusys_get_ceiling_opp(VPU0);
#else
return -1;
#endif
}
int rs_vpu_opp_to_freq(int core, int step)
{
#ifdef CONFIG_MTK_APUSYS_SUPPORT
return apusys_opp_to_freq(VPU0, step);
#else
return -1;
#endif
}