6db4831e98
Android 14
45 lines
1 KiB
C
45 lines
1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2016 MediaTek Inc.
|
|
*/
|
|
|
|
#ifndef __SMI_HW_H__
|
|
#define __SMI_HW_H__
|
|
|
|
#include <clk-mt6877-pg.h>
|
|
#include <smi_port.h>
|
|
|
|
#define SYS_DIS SYS_DISP /* Because smi_drv.c use SYS_DIS */
|
|
|
|
static const u32 smi_subsys_to_larbs[NR_SYSS] = {
|
|
[SYS_ISP0] = (1 << 9) | (1 << 24),
|
|
[SYS_ISP1] = (1 << 11),
|
|
[SYS_IPE] = (1 << 19) | (1 << 20) | (1 << 26),
|
|
[SYS_VDEC] = (1 << 4),
|
|
[SYS_VENC] = (1 << 7),
|
|
[SYS_DISP] = (1 << 0) | (1 << 1) | (1 << 2) |
|
|
(1 << 21) | (1 << 22) | (1 << 23) | (1 << 25),
|
|
[SYS_CAM] = (1 << 13) | (1 << 14) | (1 << 27) | (1 << 28),
|
|
[SYS_CAM_RAWA] = (1 << 16),
|
|
[SYS_CAM_RAWB] = (1 << 17),
|
|
};
|
|
|
|
#if IS_ENABLED(CONFIG_MMPROFILE)
|
|
#include <mmprofile.h>
|
|
|
|
static const char *smi_mmp_name[NR_SYSS] = {
|
|
[SYS_ISP0] = "ISP0",
|
|
[SYS_ISP1] = "ISP1",
|
|
[SYS_IPE] = "IPE",
|
|
[SYS_VDEC] = "VDEC",
|
|
[SYS_VENC] = "VENC",
|
|
[SYS_DISP] = "DISP",
|
|
[SYS_CAM] = "CAM",
|
|
[SYS_CAM_RAWA] = "CAM_RAWA",
|
|
[SYS_CAM_RAWB] = "CAM_RAWB",
|
|
};
|
|
static mmp_event smi_mmp_event[NR_SYSS];
|
|
#endif
|
|
#endif
|
|
|