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)
62 lines
1.7 KiB
C
62 lines
1.7 KiB
C
/*
|
|
* Copyright (C) 2020 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 __MDP_BASE_H__
|
|
#define __MDP_BASE_H__
|
|
|
|
#define MDP_HW_CHECK
|
|
|
|
#include "mach/mt_iommu.h"
|
|
|
|
static u32 mdp_engine_port[ENGBASE_COUNT] = {
|
|
0, //ENGBASE_MMSYS_CONFIG,
|
|
M4U_PORT_L2_MDP_RDMA0, //ENGBASE_MDP_RDMA0,
|
|
0, //ENGBASE_MDP_AAL0,
|
|
0, //ENGBASE_MDP_HDR0,
|
|
0, //ENGBASE_MDP_RSZ0,
|
|
0, //ENGBASE_MDP_RSZ1,
|
|
M4U_PORT_L2_MDP_WROT0, //ENGBASE_MDP_WROT0,
|
|
M4U_PORT_L2_MDP_WROT1, //ENGBASE_MDP_WROT1,
|
|
0, //ENGBASE_MDP_TDSHP0,
|
|
0, //ENGBASE_MMSYS_MUTEX,
|
|
0, //ENGINE_IMGSYS
|
|
0, //ENGINE_IMGSYS2_CONFIG
|
|
0, //ENGBASE_ISP_DIP_A0
|
|
0, //ENGBASE_ISP_DIP_A1
|
|
0, //ENGBASE_ISP_DIP_A7
|
|
0, //ENGBASE_ISP_MSS_B
|
|
0, //ENGBASE_ISP_MFB_B
|
|
};
|
|
|
|
static u32 mdp_base[ENGBASE_COUNT] = {
|
|
[ENGBASE_MMSYS_CONFIG] = 0x1f000000,
|
|
[ENGBASE_MDP_RDMA0] = 0x1f003000,
|
|
[ENGBASE_MDP_AAL0] = 0x1f005000,
|
|
[ENGBASE_MDP_HDR0] = 0x1f007000,
|
|
[ENGBASE_MDP_RSZ0] = 0x1f008000,
|
|
[ENGBASE_MDP_RSZ1] = 0x1f009000,
|
|
[ENGBASE_MDP_WROT0] = 0x1f00a000,
|
|
[ENGBASE_MDP_WROT1] = 0x1f00b000,
|
|
[ENGBASE_MDP_TDSHP0] = 0x1f00c000,
|
|
[ENGBASE_MMSYS_MUTEX] = 0x1f001000,
|
|
[ENGBASE_IMGSYS] = 0x15020000,
|
|
[ENGBASE_IMGSYS2_CONFIG] = 0x15820000,
|
|
[ENGBASE_ISP_DIP_A0] = 0x15021000,
|
|
[ENGBASE_ISP_DIP_A1] = 0x15022000,
|
|
[ENGBASE_ISP_DIP_A7] = 0x15028000,
|
|
[ENGBASE_ISP_MSS_B] = 0x15812000,
|
|
[ENGBASE_ISP_MFB_B] = 0x15810000,
|
|
};
|
|
|
|
#endif
|