unplugged-kernel/drivers/misc/mediatek/smi/mt6785/smi_hw.h

31 lines
675 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2016 MediaTek Inc.
*/
#ifndef __SMI_HW_H__
#define __SMI_HW_H__
#include <clk-mt6785-pg.h>
#include <smi_port.h>
static const u32 smi_subsys_to_larbs[NR_SYSS] = {
[SYS_DIS] = ((1 << 0) | (1 << 1) | (1 << (SMI_LARB_NUM))),
[SYS_VDE] = (1 << 2),
[SYS_VEN] = (1 << 3),
[SYS_ISP] = ((1 << 4) | (1 << 5)),
[SYS_CAM] = ((1 << 6) | (1 << 7)),
};
#if IS_ENABLED(CONFIG_MMPROFILE)
#include <mmprofile_function.h>
static const char *smi_mmp_name[NR_SYSS] = {
[SYS_DIS] = "DIS", [SYS_VDE] = "VDE", [SYS_VEN] = "VEN",
[SYS_ISP] = "ISP", [SYS_CAM] = "CAM",
};
static mmp_event smi_mmp_event[NR_SYSS];
#endif
#endif