33 lines
584 B
C
33 lines
584 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
/*
|
||
|
* Copyright (c) 2020 MediaTek Inc.
|
||
|
*/
|
||
|
|
||
|
#ifndef __SMI_HW_H__
|
||
|
#define __SMI_HW_H__
|
||
|
|
||
|
#include <clk-mt6765-pg.h>
|
||
|
#include <smi_port.h>
|
||
|
|
||
|
static const u32 smi_subsys_to_larbs[NR_SYSS] = {
|
||
|
|
||
|
[SYS_DIS] = (1 << 0) | (1 << 4),
|
||
|
[SYS_CAM] = (1 << 3),
|
||
|
[SYS_VCODEC] = (1 << 1),
|
||
|
[SYS_ISP] = (1 << 2),
|
||
|
|
||
|
};
|
||
|
|
||
|
#if IS_ENABLED(CONFIG_MMPROFILE)
|
||
|
#include <mmprofile.h>
|
||
|
|
||
|
static const char *smi_mmp_name[NR_SYSS] = {
|
||
|
[SYS_DIS] = "DIS",
|
||
|
[SYS_CAM] = "CAM",
|
||
|
[SYS_VCODEC] = "VCODEC",
|
||
|
[SYS_ISP] = "ISP",
|
||
|
};
|
||
|
static mmp_event smi_mmp_event[NR_SYSS];
|
||
|
#endif
|
||
|
#endif
|