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)
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
/*
|
|
* Copyright (C) 2018 MediaTek Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __SMI_HW_H__
|
|
#define __SMI_HW_H__
|
|
|
|
#include <clk-mt6853-pg.h>
|
|
#include "smi_port.h"
|
|
|
|
static const u32 smi_subsys_to_larbs[NR_SYSS] = {
|
|
[SYS_ISP] = (1 << 9) | (1 << 28),
|
|
[SYS_ISP2] = (1 << 11),
|
|
[SYS_IPE] = (1 << 19) | (1 << 20) | (1 << 25),
|
|
[SYS_VDE] = (1 << 4),
|
|
[SYS_VEN] = (1 << 7),
|
|
[SYS_DIS] = (1 << 0) | (1 << 1) | (1 << 2) |
|
|
(1 << 21) | (1 << 22) | (1 << 23) | (1 << 24),
|
|
[SYS_CAM] = (1 << 13) | (1 << 14) | (1 << 26) | (1 << 27),
|
|
[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_ISP] = "ISP",
|
|
[SYS_ISP2] = "ISP2",
|
|
[SYS_IPE] = "IPE",
|
|
[SYS_VDE] = "VDE",
|
|
[SYS_VEN] = "VEN",
|
|
[SYS_DIS] = "DIS",
|
|
[SYS_CAM] = "CAM",
|
|
[SYS_CAM_RAWA] = "CAM_RAWA",
|
|
[SYS_CAM_RAWB] = "CAM_RAWB",
|
|
};
|
|
static mmp_event smi_mmp_event[NR_SYSS];
|
|
#endif
|
|
#endif
|
|
|