28 lines
568 B
C
28 lines
568 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
/*
|
||
|
* Copyright (c) 2019 MediaTek Inc.
|
||
|
*/
|
||
|
|
||
|
#ifndef __SMI_HW_H__
|
||
|
#define __SMI_HW_H__
|
||
|
|
||
|
#include <clk-mt6739-pg.h>
|
||
|
#include <smi_port.h>
|
||
|
|
||
|
#define SYS_DIS (SYS_MM0)
|
||
|
static const u32 smi_subsys_to_larbs[NR_SYSS] = {
|
||
|
[SYS_MM0] = ((1 << 0) | (1 << (SMI_LARB_NUM))),
|
||
|
[SYS_VEN] = (1 << 1),
|
||
|
[SYS_ISP] = (1 << 2),
|
||
|
};
|
||
|
|
||
|
#if IS_ENABLED(CONFIG_MMPROFILE)
|
||
|
#include <mmprofile.h>
|
||
|
|
||
|
static const char *smi_mmp_name[NR_SYSS] = {
|
||
|
[SYS_MM0] = "MM0", [SYS_VEN] = "VEN", [SYS_ISP] = "ISP",
|
||
|
};
|
||
|
static mmp_event smi_mmp_event[NR_SYSS];
|
||
|
#endif
|
||
|
#endif
|