Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

190 lines
3.8 KiB
C

/*
* Copyright (C) 2015 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.
*/
/*
* These are dummy functions for the case that any aee config is disabled
*/
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <mt-plat/aee.h>
#include "aee-common.h"
struct proc_dir_entry;
#ifndef CONFIG_MTK_AEE_FEATURE
__weak void aee_sram_printk(const char *fmt, ...)
{
}
EXPORT_SYMBOL(aee_sram_printk);
__weak void aee_wdt_fiq_info(void *arg, void *regs, void *svc_sp)
{
}
__weak struct aee_oops *aee_oops_create(enum AE_DEFECT_ATTR attr,
enum AE_EXP_CLASS clazz, const char *module)
{
return NULL;
}
__weak void aee_oops_free(struct aee_oops *oops)
{
}
__weak void aee_kernel_exception_api_func(const char *file, const int line,
const int db_opt,
const char *module, const char *msg, ...)
{
}
EXPORT_SYMBOL(aee_kernel_exception_api_func);
__weak void aee_kernel_warning_api_func(const char *file, const int line,
const int db_opt,
const char *module, const char *msg, ...)
{
}
EXPORT_SYMBOL(aee_kernel_warning_api_func);
__weak void aee_kernel_reminding_api(const char *file, const int line,
const int db_opt,
const char *module, const char *msg, ...)
{
}
EXPORT_SYMBOL(aee_kernel_reminding_api);
__weak void aee_kernel_dal_api(const char *file, const int line,
const char *msg)
{
}
EXPORT_SYMBOL(aee_kernel_dal_api);
__weak void aed_md_exception_api(const int *log, int log_size,
const int *phy, int phy_size,
const char *detail, const int db_opt)
{
}
EXPORT_SYMBOL(aed_md_exception_api);
__weak void aed_md32_exception_api(const int *log, int log_size,
const int *phy, int phy_size,
const char *detail, const int db_opt)
{
}
EXPORT_SYMBOL(aed_md32_exception_api);
__weak void aed_scp_exception_api(const int *log, int log_size,
const int *phy, int phy_size,
const char *detail, const int db_opt)
{
}
EXPORT_SYMBOL(aed_scp_exception_api);
__weak void aed_combo_exception_api(const int *log, int log_size,
const int *phy, int phy_size,
const char *detail, const int db_opt)
{
}
EXPORT_SYMBOL(aed_combo_exception_api);
__weak void aed_common_exception_api(const char *assert_type, const int *log,
int log_size, const int *phy, int phy_size,
const char *detail, const int db_opt)
{
}
EXPORT_SYMBOL(aed_common_exception_api);
__weak int aee_is_printk_too_much(const char *module)
{
return 0;
}
EXPORT_SYMBOL(aee_is_printk_too_much);
__weak void mt_fiq_printf(const char *fmt, ...)
{
}
__weak void aee_register_api(struct aee_kernel_api *aee_api)
{
}
__weak int aee_nested_printf(const char *fmt, ...)
{
return 0;
}
__weak int aee_in_nested_panic(void)
{
return 0;
}
__weak void aee_wdt_printf(const char *fmt, ...)
{
}
__weak int aed_proc_debug_init(struct proc_dir_entry *aed_proc_dir)
{
return 0;
}
__weak int aed_proc_debug_done(struct proc_dir_entry *aed_proc_dir)
{
return 0;
}
__weak void aee_rr_proc_init(struct proc_dir_entry *aed_proc_dir)
{
}
__weak void aee_rr_proc_done(struct proc_dir_entry *aed_proc_dir)
{
}
__weak void aee_disable_api(void)
{
}
#endif
#ifndef CONFIG_MTK_AEE_IPANIC
void *aee_excp_regs;
__weak void ipanic_recursive_ke(struct pt_regs *regs,
struct pt_regs *excp_regs, int cpu)
{
}
__weak void aee_save_excp_regs(struct pt_regs *regs)
{
}
__weak void aee_stop_nested_panic(struct pt_regs *regs)
{
}
#endif
__weak int mtk_rgu_status_is_sysrst(void)
{
return 0;
}
__weak int mtk_rgu_status_is_eintrst(void)
{
return 0;
}