Files
android/drivers/misc/mediatek/apusys/edma/edma_plat_device.c
T
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

44 lines
1.0 KiB
C

// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#include <linux/module.h>
#include <linux/of_device.h>
#include "edma_cmd_hnd.h"
#include "edma_plat_internal.h"
static struct edma_plat_drv edma_v20_drv = {
.exe_sub = edma_exe_v20,
.prt_error = print_error_status,
.edma_isr = edma_isr_handler,
.cmd_timeout_ms = 3000,
.delay_power_off_ms = 2000,
};
static struct edma_plat_drv edma_v30_drv = {
.exe_sub = edma_exe_v30,
.prt_error = printV30_error_status,
.edma_isr = edmaV30_isr_handler,
.cmd_timeout_ms = 3000,
.delay_power_off_ms = 2000,
};
static const struct of_device_id mtk_edma_sub_of_ids[] = {
{.compatible = "mtk,edma-sub", .data = &edma_v20_drv},
{.compatible = "mtk,edma-sub-v20", .data = &edma_v20_drv},
{.compatible = "mtk,edma-sub-v30", .data = &edma_v30_drv},
{}
};
MODULE_DEVICE_TABLE(of, mtk_edma_sub_of_ids);
const struct of_device_id *edma_plat_get_device(void)
{
return mtk_edma_sub_of_ids;
}