kernel_samsung_a34x-permissive/drivers/misc/mediatek/devapc/devapc-mt6833.h

1172 lines
34 KiB
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2019 MediaTek Inc.
*/
#ifndef __DEVAPC_MT6873_H__
#define __DEVAPC_MT6873_H__
#include "devapc-mtk-multi-ao.h"
/******************************************************************************
* VARIABLE DEFINITION
******************************************************************************/
/* dbg status default setting */
#define PLAT_DBG_UT_DEFAULT false
#define PLAT_DBG_KE_DEFAULT true
#define PLAT_DBG_AEE_DEFAULT true
#define PLAT_DBG_WARN_DEFAULT true
#define PLAT_DBG_DAPC_DEFAULT false
/******************************************************************************
* STRUCTURE DEFINITION
******************************************************************************/
enum DEVAPC_SLAVE_TYPE {
SLAVE_TYPE_INFRA = 0,
SLAVE_TYPE_PERI,
SLAVE_TYPE_PERI2,
SLAVE_TYPE_PERI_PAR,
SLAVE_TYPE_NUM,
};
enum DEVAPC_VIO_MASK_STA_NUM {
VIO_MASK_STA_NUM_INFRA = 13,
VIO_MASK_STA_NUM_PERI = 6,
VIO_MASK_STA_NUM_PERI2 = 8,
VIO_MASK_STA_NUM_PERI_PAR = 3,
};
enum DEVAPC_PD_OFFSET {
PD_VIO_MASK_OFFSET = 0x0,
PD_VIO_STA_OFFSET = 0x400,
PD_VIO_DBG0_OFFSET = 0x900,
PD_VIO_DBG1_OFFSET = 0x904,
PD_VIO_DBG2_OFFSET = 0x908,
PD_APC_CON_OFFSET = 0xF00,
PD_SHIFT_STA_OFFSET = 0xF20,
PD_SHIFT_SEL_OFFSET = 0xF30,
PD_SHIFT_CON_OFFSET = 0xF10,
};
#define SRAMROM_SLAVE_TYPE SLAVE_TYPE_INFRA /* Infra */
#define MM2ND_SLAVE_TYPE SLAVE_TYPE_INFRA /* Infra */
enum OTHER_TYPES_INDEX {
SRAMROM_VIO_INDEX = 394,
MDP_VIO_INDEX = 395,
MMSYS_VIO_INDEX = 397,
};
enum INFRACFG_MM2ND_VIO_NUM {
INFRACFG_MM_VIO_STA_NUM = 2,
INFRACFG_MDP_VIO_STA_NUM = 8,
};
enum DEVAPC_MODULE_ADDR {
TINYSYS_START_ADDR = 0x10500000,
TINYSYS_END_ADDR = 0x108FFFFF,
MD_START_ADDR = 0x20000000,
MD_END_ADDR = 0x2FFFFFFF,
CONN_START_ADDR = 0x18000000,
CONN_END_ADDR = 0x18FFFFFF,
MDP_REGION1_START_ADDR = 0x15000000,
MDP_REGION1_END_ADDR = 0x15FFFFFF,
MDP_REGION2_START_ADDR = 0x1A000000,
MDP_REGION2_END_ADDR = 0x1BFFFFFF,
MDP_REGION3_START_ADDR = 0x1F000000,
MDP_REGION3_END_ADDR = 0x1FFFFFFF,
MMSYS_REGION1_START_ADDR = 0x14000000,
MMSYS_REGION1_END_ADDR = 0x14FFFFFF,
MMSYS_REGION2_START_ADDR = 0x16000000,
MMSYS_REGION2_END_ADDR = 0x17FFFFFF,
};
enum INFRACFG_MM2ND_OFFSET {
INFRACFG_MM_SEC_VIO0_OFFSET = 0xB30,
INFRACFG_MDP_SEC_VIO0_OFFSET = 0xB40,
};
enum BUSID_LENGTH {
PERIAXI_MI_BIT_LENGTH = 3,
INFRAAXI_MI_BIT_LENGTH = 14,
};
struct PERIAXI_ID_INFO {
const char *master;
uint8_t bit[PERIAXI_MI_BIT_LENGTH];
};
struct INFRAAXI_ID_INFO {
const char *master;
uint8_t bit[INFRAAXI_MI_BIT_LENGTH];
};
/******************************************************************************
* PLATFORM DEFINATION
******************************************************************************/
/* For Infra VIO_DBG */
#define INFRA_VIO_DBG_MSTID 0xFFFFFFFF
#define INFRA_VIO_DBG_MSTID_START_BIT 0
#define INFRA_VIO_DBG_DMNID 0x0000003F
#define INFRA_VIO_DBG_DMNID_START_BIT 0
#define INFRA_VIO_DBG_W_VIO 0x00000040
#define INFRA_VIO_DBG_W_VIO_START_BIT 6
#define INFRA_VIO_DBG_R_VIO 0x00000080
#define INFRA_VIO_DBG_R_VIO_START_BIT 7
#define INFRA_VIO_ADDR_HIGH 0x00000F00
#define INFRA_VIO_ADDR_HIGH_START_BIT 8
/* For SRAMROM VIO */
#define SRAMROM_SEC_VIO_ID_MASK 0x00FFFF00
#define SRAMROM_SEC_VIO_ID_SHIFT 8
#define SRAMROM_SEC_VIO_DOMAIN_MASK 0x0F000000
#define SRAMROM_SEC_VIO_DOMAIN_SHIFT 24
#define SRAMROM_SEC_VIO_RW_MASK 0x80000000
#define SRAMROM_SEC_VIO_RW_SHIFT 31
/* For MM 2nd VIO */
#define INFRACFG_MM2ND_VIO_DOMAIN_MASK 0x00000030
#define INFRACFG_MM2ND_VIO_DOMAIN_SHIFT 4
#define INFRACFG_MM2ND_VIO_ID_MASK 0x00FFFF00
#define INFRACFG_MM2ND_VIO_ID_SHIFT 8
#define INFRACFG_MM2ND_VIO_RW_MASK 0x01000000
#define INFRACFG_MM2ND_VIO_RW_SHIFT 24
#define SRAM_START_ADDR (0x100000)
static struct mtk_device_info mt6833_devices_infra[] = {
/* sys_idx, ctrl_idx, vio_idx, device, vio_irq */
/* 0 */
{0, 0, 0, "SPM_APB_S", true},
{0, 1, 1, "SPM_APB_S-1", true},
{0, 2, 2, "SPM_APB_S-2", true},
{0, 3, 3, "SPM_APB_S-4", true},
{0, 4, 4, "APMIXEDSYS_APB_S", true},
{0, 5, 5, "APMIXEDSYS_APB_S-1", true},
{0, 6, 6, "TOPCKGEN_APB_S", true},
{0, 7, 7, "INFRACFG_AO_APB_S", true},
{0, 8, 8, "INFRACFG_AO_MEM_APB_S", true},
{0, 9, 9, "PERICFG_AO_APB_S", true},
/* 10 */
{0, 10, 10, "GPIO_APB_S", true},
{0, 11, 12, "TOPRGU_APB_S", true},
{0, 12, 13, "RESERVED_APB_S", true},
{0, 13, 14, "DEVICE_APC_INFRA_AO_APB_S", true},
{0, 14, 15, "BCRM_INFRA_AO_APB_S", true},
{0, 15, 16, "DEBUG_CTRL_INFRA_AO_APB_S", true},
{0, 16, 17, "AP_CIRQ_EINT_APB_S", true},
{0, 17, 19, "PMIC_WRAP_APB_S", true},
{0, 18, 20, "KP_APB_S", true},
{0, 19, 21, "TOP_MISC_APB_S", true},
/* 20 */
{0, 20, 22, "DVFSRC_APB_S", true},
{0, 21, 23, "MBIST_AO_APB_S", true},
{0, 22, 24, "DPMAIF_AO_APB_S", true},
{0, 23, 25, "SYS_TIMER_APB_S", true},
{0, 24, 26, "MODEM_TEMP_SHARE_APB_S", true},
{0, 25, 27, "PMIF1_APB_S", true},
{0, 26, 28, "PMICSPI_MST_APB_S", true},
{0, 27, 29, "TIA_APB_S", true},
{0, 28, 30, "TOPCKGEN_INFRA_CFG_APB_S", true},
{0, 29, 31, "DRM_DEBUG_TOP_APB_S", true},
/* 30 */
{0, 30, 32, "EFUSE_DEBUG_AO_APB_S", true},
{0, 31, 33, "APXGPT_APB_S", true},
{0, 32, 34, "SEJ_APB_S", true},
{0, 33, 35, "AES_TOP0_APB_S", true},
{0, 34, 36, "SECURITY_AO_APB_S", true},
{0, 35, 37, "SPMI_MST_APB_S", true},
{0, 36, 38, "DEBUG_CTRL_FMEM_AO_APB_S", true},
{0, 37, 39, "BCRM_FMEM_AO_APB_S", true},
{0, 38, 40, "DEVICE_APC_FMEM_AO_APB_S", true},
{0, 39, 41, "PWM_APB_S", true},
/* 40 */
{0, 40, 42, "PMIF2_APB_S", true},
{0, 41, 43, "SPMI_MST2_APB_S", true},
{0, 42, 44, "PMSR_APB_S", true},
{0, 43, 45, "SRCLKEN_RC_APB_S", true},
{0, 44, 46, "MFGSYS", true},
{0, 45, 47, "MFGSYS", true},
{0, 46, 48, "MFGSYS", true},
{0, 47, 49, "MFGSYS", true},
{0, 48, 50, "MFGSYS", true},
{0, 49, 51, "MFGSYS", true},
/* 50 */
{0, 50, 52, "MFGSYS", true},
{0, 51, 53, "MFGSYS", true},
{0, 52, 54, "MFGSYS", true},
{0, 53, 55, "MFGSYS", true},
{0, 54, 56, "MFGSYS", true},
{0, 55, 57, "MFGSYS", true},
{0, 56, 58, "MFGSYS", true},
{0, 57, 59, "MFGSYS", true},
{0, 58, 60, "MFGSYS", true},
{0, 59, 61, "MFGSYS", true},
/* 60 */
{0, 60, 62, "MFGSYS", true},
{0, 61, 63, "MFGSYS", true},
{0, 62, 64, "MCUSYS_CFGREG_APB_S", true},
{0, 63, 65, "MCUSYS_CFGREG_APB_S-1", true},
{0, 64, 66, "MCUSYS_CFGREG_APB_S-2", true},
{0, 65, 67, "MCUSYS_CFGREG_APB_S-3", true},
{0, 66, 68, "MCUSYS_CFGREG_APB_S-4", true},
{0, 67, 69, "L3C_S", true},
{0, 68, 70, "L3C_S-1", true},
{1, 0, 71, "MMSYS_DISP", true},
/* 70 */
{1, 1, 72, "MMSYS_DISP", true},
{1, 2, 73, "MMSYS_DISP", true},
{1, 3, 74, "SMI", true},
{1, 4, 75, "SMI", true},
{1, 5, 76, "MMSYS_DISP", true},
{1, 6, 77, "MMSYS_DISP", true},
{1, 7, 78, "MMSYS_DISP", true},
{1, 8, 79, "MMSYS_DISP", true},
{1, 9, 80, "MMSYS_DISP", true},
{1, 10, 81, "MMSYS_DISP", true},
/* 80 */
{1, 11, 82, "MMSYS_DISP", true},
{1, 12, 83, "MMSYS_DISP", true},
{1, 13, 84, "MMSYS_DISP", true},
{1, 14, 85, "MMSYS_DISP", true},
{1, 15, 86, "MMSYS_DISP", true},
{1, 16, 87, "MMSYS_DISP", true},
{1, 17, 88, "MMSYS_DISP", true},
{1, 18, 89, "MMSYS_DISP", true},
{1, 19, 90, "MMSYS_DISP", true},
{1, 20, 91, "MMSYS_DISP", true},
/* 90 */
{1, 21, 92, "MMSYS_DISP", true},
{1, 22, 93, "MMSYS_IOMMU", true},
{1, 23, 94, "MMSYS_IOMMU", true},
{1, 24, 95, "MMSYS_IOMMU", true},
{1, 25, 96, "MMSYS_IOMMU", true},
{1, 26, 97, "MMSYS_IOMMU", true},
{1, 27, 98, "SMI", true},
{1, 28, 99, "SMI", true},
{1, 29, 100, "MMSYS_DISP", true},
{1, 30, 101, "SMI", true},
/* 100 */
{1, 31, 102, "MMSYS_DISP", true},
{1, 32, 103, "MMSYS_DISP", true},
{1, 33, 104, "IMGSYS", true},
{1, 34, 105, "IMGSYS", true},
{1, 35, 106, "IMGSYS", true},
{1, 36, 107, "IMGSYS", true},
{1, 37, 108, "IMGSYS", true},
{1, 38, 109, "IMGSYS", true},
{1, 39, 110, "IMGSYS", true},
{1, 40, 111, "IMGSYS", true},
/* 110 */
{1, 41, 112, "IMGSYS", true},
{1, 42, 113, "IMGSYS", true},
{1, 43, 114, "IMGSYS", true},
{1, 44, 115, "IMGSYS", true},
{1, 45, 116, "IMGSYS", true},
{1, 46, 117, "IMGSYS", true},
{1, 47, 118, "SMI", true},
{1, 48, 119, "IMGSYS", true},
{1, 49, 120, "IMGSYS", true},
{1, 50, 121, "IMGSYS", true},
/* 120 */
{1, 51, 122, "IMGSYS", true},
{1, 52, 123, "IMGSYS", true},
{1, 53, 124, "IMGSYS", true},
{1, 54, 125, "IMGSYS", true},
{1, 55, 126, "IMGSYS", true},
{1, 56, 127, "IMGSYS", true},
{1, 57, 128, "IMGSYS", true},
{1, 58, 129, "IMGSYS", true},
{1, 59, 130, "IMGSYS", true},
{1, 60, 131, "IMGSYS", true},
/* 130 */
{1, 61, 132, "IMGSYS", true},
{1, 62, 133, "IMGSYS", true},
{1, 63, 134, "IMGSYS", true},
{1, 64, 135, "IMGSYS", true},
{1, 65, 136, "IMGSYS", true},
{1, 66, 137, "IMGSYS", true},
{1, 67, 138, "IMGSYS", true},
{1, 68, 139, "IMGSYS", true},
{1, 69, 140, "SMI", true},
{1, 70, 141, "IMGSYS", true},
/* 140 */
{1, 71, 142, "IMGSYS", true},
{1, 72, 143, "IMGSYS", true},
{1, 73, 144, "IMGSYS", true},
{1, 74, 145, "IMGSYS", true},
{1, 75, 146, "IMGSYS", true},
{1, 76, 147, "IMGSYS", true},
{1, 77, 148, "VDECSYS", true},
{1, 78, 149, "VDECSYS", true},
{1, 79, 150, "VDECSYS", true},
{1, 80, 151, "VDECSYS", true},
/* 150 */
{1, 81, 152, "VDECSYS", true},
{1, 82, 153, "VDECSYS", true},
{1, 83, 154, "VDECSYS", true},
{1, 84, 155, "VDECSYS", true},
{1, 85, 156, "VENCSYS", true},
{1, 86, 157, "VENCSYS", true},
{1, 87, 158, "VENCSYS", true},
{1, 88, 159, "VENCSYS", true},
{1, 89, 160, "VENCSYS", true},
{1, 90, 161, "VENCSYS", true},
/* 160 */
{1, 91, 162, "VENCSYS", true},
{1, 92, 163, "VENCSYS", true},
{1, 93, 164, "CAMSYS", true},
{1, 94, 165, "SMI", true},
{1, 95, 166, "SMI", true},
{1, 96, 167, "CAMSYS", true},
{1, 97, 168, "CAMSYS_SENINF", true},
{1, 98, 169, "CAMSYS_SENINF", true},
{1, 99, 170, "CAMSYS_SENINF", true},
{1, 100, 171, "CAMSYS_SENINF", true},
/* 170 */
{1, 101, 172, "CAMSYS_SENINF", true},
{1, 102, 173, "CAMSYS_SENINF", true},
{1, 103, 174, "SMI", true},
{1, 104, 175, "SMI", true},
{1, 105, 176, "CAMSYS", true},
{1, 106, 177, "SMI", true},
{1, 107, 178, "SMI", true},
{1, 108, 179, "CAMSYS", true},
{1, 109, 180, "CAMSYS", true},
{1, 110, 181, "CAMSYS", true},
/* 180 */
{1, 111, 182, "CAMSYS", true},
{1, 112, 183, "CAMSYS", true},
{1, 113, 184, "CAMSYS", true},
{1, 114, 185, "CAMSYS", true},
{1, 115, 186, "CAMSYS", true},
{1, 116, 187, "CAMSYS", true},
{1, 117, 188, "CAMSYS", true},
{1, 118, 189, "CAMSYS", true},
{1, 119, 190, "CAMSYS", true},
{1, 120, 191, "CAMSYS", true},
/* 190 */
{1, 121, 192, "CAMSYS", true},
{1, 122, 193, "CAMSYS", true},
{1, 123, 194, "CAMSYS", true},
{1, 124, 195, "CAMSYS", true},
{1, 125, 196, "CAMSYS", true},
{1, 126, 197, "CAMSYS", true},
{1, 127, 198, "CAMSYS", true},
{1, 128, 199, "CAMSYS", true},
{1, 129, 200, "CAMSYS", true},
{1, 130, 201, "CAMSYS", true},
/* 200 */
{1, 131, 202, "CAMSYS", true},
{1, 132, 203, "CAMSYS", true},
{1, 133, 204, "CAMSYS", true},
{1, 134, 205, "CAMSYS", true},
{1, 135, 206, "CAMSYS", true},
{1, 136, 207, "CAMSYS", true},
{1, 137, 208, "CAMSYS", true},
{1, 138, 209, "CAMSYS", true},
{1, 139, 210, "CAMSYS", true},
{1, 140, 211, "CAMSYS", true},
/* 210 */
{1, 141, 212, "CAMSYS", true},
{1, 142, 213, "CAMSYS", true},
{1, 143, 214, "CAMSYS", true},
{1, 144, 215, "CAMSYS", true},
{1, 145, 216, "CAMSYS", true},
{1, 146, 217, "CAMSYS", true},
{1, 147, 218, "CAMSYS", true},
{1, 148, 219, "CAMSYS", true},
{1, 149, 220, "CAMSYS", true},
{1, 150, 221, "CAMSYS", true},
/* 220 */
{1, 151, 222, "CAMSYS", true},
{1, 152, 223, "CAMSYS", true},
{1, 153, 224, "CAMSYS", true},
{1, 154, 225, "CAMSYS", true},
{1, 155, 226, "CAMSYS", true},
{1, 156, 227, "CAMSYS", true},
{1, 157, 228, "CAMSYS", true},
{1, 158, 229, "CAMSYS", true},
{1, 159, 230, "CAMSYS", true},
{1, 160, 231, "CAMSYS", true},
/* 230 */
{1, 161, 232, "CAMSYS", true},
{1, 162, 233, "CAMSYS", true},
{1, 163, 234, "CAMSYS", true},
{1, 164, 235, "CAMSYS", true},
{1, 165, 236, "CAMSYS", true},
{1, 166, 237, "CAMSYS", true},
{1, 167, 238, "CAMSYS", true},
{1, 168, 239, "CAMSYS", true},
{1, 169, 240, "CAMSYS", true},
{1, 170, 241, "CAMSYS", true},
/* 240 */
{1, 171, 242, "CAMSYS", true},
{1, 172, 243, "CAMSYS", true},
{1, 173, 244, "CAMSYS", true},
{1, 174, 245, "CAMSYS", true},
{1, 175, 246, "CAMSYS", true},
{1, 176, 247, "CAMSYS", true},
{1, 177, 248, "CAMSYS", true},
{1, 178, 249, "CAMSYS", true},
{1, 179, 250, "CAMSYS", true},
{1, 180, 251, "CAMSYS", true},
/* 250 */
{1, 181, 252, "CAMSYS", true},
{1, 182, 253, "CAMSYS", true},
{1, 183, 254, "CAMSYS", true},
{1, 184, 255, "CAMSYS", true},
{1, 185, 256, "CAMSYS", true},
{1, 186, 257, "CAMSYS", true},
{1, 187, 258, "CAMSYS", true},
{1, 188, 259, "CAMSYS", true},
{1, 189, 260, "CAMSYS", true},
{1, 190, 261, "CAMSYS", true},
/* 260 */
{1, 191, 262, "CAMSYS", true},
{1, 192, 263, "CAMSYS", true},
{1, 193, 264, "CAMSYS", true},
{1, 194, 265, "CAMSYS", true},
{1, 195, 266, "CAMSYS", true},
{1, 196, 267, "CAMSYS", true},
{1, 197, 268, "CAMSYS", true},
{1, 198, 269, "CAMSYS", true},
{1, 199, 270, "CAMSYS", true},
{1, 200, 271, "CAMSYS", true},
/* 270 */
{1, 201, 272, "CAMSYS", true},
{1, 202, 273, "CAMSYS", true},
{1, 203, 274, "CAMSYS", true},
{1, 204, 275, "CAMSYS", true},
{1, 205, 276, "CAMSYS", true},
{1, 206, 277, "CAMSYS", true},
{1, 207, 278, "CAMSYS", true},
{1, 208, 279, "CAMSYS", true},
{1, 209, 280, "CAMSYS", true},
{1, 210, 281, "CAMSYS", true},
/* 280 */
{1, 211, 282, "CAMSYS", true},
{1, 212, 283, "CAMSYS", true},
{1, 213, 284, "CAMSYS", true},
{1, 214, 285, "CAMSYS", true},
{1, 215, 286, "CAMSYS", true},
{1, 216, 287, "CAMSYS", true},
{1, 217, 288, "CAMSYS", true},
{1, 218, 289, "CAMSYS", true},
{1, 219, 290, "CAMSYS", true},
{1, 220, 291, "CAMSYS", true},
/* 290 */
{1, 221, 292, "CAMSYS", true},
{1, 222, 293, "CAMSYS", true},
{1, 223, 294, "CAMSYS", true},
{1, 224, 295, "CAMSYS_CCU", true},
{1, 225, 296, "CAMSYS_CCU", true},
{1, 226, 297, "CAMSYS_CCU", true},
{1, 227, 298, "CAMSYS_CCU", true},
{1, 228, 299, "CAMSYS_CCU", true},
{1, 229, 300, "CAMSYS_CCU", true},
{1, 230, 301, "CAMSYS_CCU", true},
/* 300 */
{1, 231, 302, "CAMSYS_CCU", true},
{1, 232, 303, "CAMSYS_CCU", true},
{1, 233, 304, "CAMSYS_CCU", true},
{1, 234, 305, "CAMSYS_CCU", true},
{1, 235, 306, "CAMSYS_CCU", true},
{1, 236, 307, "CAMSYS_CCU", true},
{1, 237, 308, "CAMSYS_CCU", true},
{1, 238, 309, "CAMSYS_CCU", true},
{1, 239, 310, "CAMSYS_CCU", true},
{1, 240, 311, "CAMSYS_CCU", true},
/* 310 */
{1, 241, 312, "CAMSYS_CCU", true},
{1, 242, 313, "CAMSYS_CCU", true},
{1, 243, 314, "CAMSYS_CCU", true},
{1, 244, 315, "CAMSYS_CCU", true},
{1, 245, 316, "CAMSYS_CCU", true},
{1, 246, 317, "CAMSYS_CCU", true},
{1, 247, 318, "CAMSYS_CCU", true},
{1, 248, 319, "IPESYS", true},
{1, 249, 320, "IPESYS", true},
{1, 250, 321, "IPESYS", true},
/* 320 */
{1, 251, 322, "IPESYS", true},
{1, 252, 323, "IPESYS", true},
{1, 253, 324, "SMI", true},
{1, 254, 325, "SMI", true},
{1, 255, 326, "IPESYS", true},
{2, 0, 327, "IPESYS", true},
{2, 1, 328, "IPESYS", true},
{2, 2, 329, "SMI", true},
{2, 3, 330, "IPESYS", true},
{2, 4, 331, "MDPSYS", true},
/* 330 */
{2, 5, 332, "MDPSYS", true},
{2, 6, 333, "SMI", true},
{2, 7, 334, "MDPSYS", true},
{2, 8, 335, "MDPSYS", true},
{2, 9, 336, "MDPSYS", true},
{2, 10, 337, "MDPSYS", true},
{2, 11, 338, "MDPSYS", true},
{2, 12, 339, "MDPSYS", true},
{2, 13, 340, "MDPSYS", true},
{2, 14, 341, "MDPSYS", true},
/* 340 */
{2, 15, 342, "MDPSYS", true},
{2, 16, 343, "MDPSYS", true},
{2, 17, 344, "MDPSYS", true},
{2, 18, 345, "MDPSYS", true},
{2, 19, 346, "MDPSYS", true},
{-1, -1, 347, "OOB_way_en", true},
{-1, -1, 348, "OOB_way_en", true},
{-1, -1, 349, "OOB_way_en", true},
{-1, -1, 350, "OOB_way_en", true},
{-1, -1, 351, "OOB_way_en", true},
/* 350 */
{-1, -1, 352, "OOB_way_en", true},
{-1, -1, 353, "OOB_way_en", true},
{-1, -1, 354, "OOB_way_en", true},
{-1, -1, 355, "OOB_way_en", true},
{-1, -1, 356, "OOB_way_en", true},
{-1, -1, 357, "OOB_way_en", true},
{-1, -1, 358, "OOB_way_en", true},
{-1, -1, 359, "OOB_way_en", true},
{-1, -1, 360, "OOB_way_en", true},
{-1, -1, 361, "OOB_way_en", true},
/* 360 */
{-1, -1, 362, "OOB_way_en", true},
{-1, -1, 363, "OOB_way_en", true},
{-1, -1, 364, "OOB_way_en", true},
{-1, -1, 365, "OOB_way_en", true},
{-1, -1, 366, "OOB_way_en", true},
{-1, -1, 367, "OOB_way_en", true},
{-1, -1, 368, "OOB_way_en", true},
{-1, -1, 369, "OOB_way_en", true},
{-1, -1, 370, "OOB_way_en", true},
{-1, -1, 371, "OOB_way_en", true},
/* 370 */
{-1, -1, 372, "OOB_way_en", true},
{-1, -1, 373, "OOB_way_en", true},
{-1, -1, 374, "OOB_way_en", true},
{-1, -1, 375, "OOB_way_en", true},
{-1, -1, 376, "OOB_way_en", true},
{-1, -1, 377, "OOB_way_en", true},
{-1, -1, 378, "OOB_way_en", true},
{-1, -1, 379, "OOB_way_en", true},
{-1, -1, 380, "OOB_way_en", true},
{-1, -1, 381, "OOB_way_en", true},
/* 380 */
{-1, -1, 382, "OOB_way_en", true},
{-1, -1, 383, "OOB_way_en", true},
{-1, -1, 384, "OOB_way_en", true},
{-1, -1, 385, "OOB_way_en", true},
{-1, -1, 386, "OOB_way_en", true},
{-1, -1, 387, "OOB_way_en", true},
{-1, -1, 388, "OOB_way_en", true},
{-1, -1, 389, "OOB_way_en", true},
{-1, -1, 390, "OOB_way_en", true},
{-1, -1, 391, "OOB_way_en", true},
/* 390 */
{-1, -1, 392, "OOB_way_en", true},
{-1, -1, 393, "OOB_way_en", true},
{-1, -1, 394, "SRAMROM", true},
{-1, -1, 395, "MDP_MALI", true},
{-1, -1, 396, "OOB_way_en", true},
{-1, -1, 397, "MMSYS_MALI", true},
};
static struct mtk_device_info mt6833_devices_peri[] = {
/* sys_idx, ctrl_idx, vio_idx, device, vio_irq */
/* 0 */
{0, 0, 0, "DEVICE_APC_PERI_AO_APB_S", true},
{0, 1, 1, "BCRM_PERI_AO_APB_S", true},
{0, 2, 2, "DEBUG_CTRL_PERI_AO_APB_S", true},
{0, 3, 26, "PWR_MD32_S", true},
{0, 4, 27, "PWR_MD32_S-1", true},
{0, 5, 28, "PWR_MD32_S-2", true},
{0, 6, 29, "PWR_MD32_S-3", true},
{0, 7, 30, "PWR_MD32_S-4", true},
{0, 8, 31, "PWR_MD32_S-5", true},
{0, 9, 32, "PWR_MD32_S-6", true},
/* 10 */
{0, 10, 33, "PWR_MD32_S-7", true},
{0, 11, 34, "PWR_MD32_S-8", true},
{0, 12, 35, "PWR_MD32_S-9", true},
{0, 13, 36, "PWR_MD32_S-10", true},
{0, 14, 37, "PWR_MD32_S-11", true},
{0, 15, 38, "PWR_MD32_S-12", true},
{0, 16, 39, "PWR_MD32_S-13", true},
{0, 17, 40, "PWR_MD32_S-14", true},
{0, 18, 84, "AUDIO_S", true},
{0, 19, 85, "AUDIO_S-1", true},
/* 20 */
{0, 20, 86, "UFS_S", true},
{0, 21, 87, "UFS_S-1", true},
{0, 22, 88, "UFS_S-2", true},
{0, 23, 89, "UFS_S-3", true},
{0, 24, 91, "SSUSB_S", true},
{0, 25, 92, "SSUSB_S-1", true},
{0, 26, 93, "SSUSB_S-2", true},
{0, 27, 94, "DEBUGSYS_APB_S", true},
{0, 28, 95, "DRAMC_MD32_S0_APB_S", true},
{0, 29, 96, "DRAMC_MD32_S0_APB_S-1", true},
/* 30 */
{0, 30, 97, "DRAMC_CH0_TOP0_APB_S", true},
{0, 31, 98, "DRAMC_CH0_TOP1_APB_S", true},
{0, 32, 99, "DRAMC_CH0_TOP2_APB_S", true},
{0, 33, 100, "DRAMC_CH0_TOP3_APB_S", true},
{0, 34, 101, "DRAMC_CH0_TOP4_APB_S", true},
{0, 35, 102, "DRAMC_CH0_TOP5_APB_S", true},
{0, 36, 103, "DRAMC_CH0_TOP6_APB_S", true},
{0, 37, 104, "DRAMC_CH1_TOP0_APB_S", true},
{0, 38, 105, "DRAMC_CH1_TOP1_APB_S", true},
{0, 39, 106, "DRAMC_CH1_TOP2_APB_S", true},
/* 40 */
{0, 40, 107, "DRAMC_CH1_TOP3_APB_S", true},
{0, 41, 108, "DRAMC_CH1_TOP4_APB_S", true},
{0, 42, 109, "DRAMC_CH1_TOP5_APB_S", true},
{0, 43, 110, "DRAMC_CH1_TOP6_APB_S", true},
{0, 44, 112, "CCIF2_AP_APB_S", true},
{0, 45, 113, "CCIF2_MD_APB_S", true},
{0, 46, 114, "CCIF3_AP_APB_S", true},
{0, 47, 115, "CCIF3_MD_APB_S", true},
{0, 48, 116, "CCIF4_AP_APB_S", true},
{0, 49, 117, "CCIF4_MD_APB_S", true},
/* 50 */
{0, 50, 118, "CCIF5_AP_APB_S", true},
{0, 51, 119, "CCIF5_MD_APB_S", true},
{0, 52, 120, "SSC_INFRA_APB2_S", true},
{1, 0, 3, "TINYSYS", true},
{1, 1, 4, "TINYSYS", true},
{1, 2, 5, "TINYSYS", true},
{1, 3, 6, "TINYSYS", true},
{1, 4, 7, "TINYSYS", true},
{1, 5, 8, "TINYSYS", true},
{1, 6, 9, "TINYSYS", true},
/* 60 */
{1, 7, 10, "TINYSYS", true},
{1, 8, 11, "TINYSYS", true},
{1, 9, 12, "TINYSYS", true},
{1, 10, 13, "TINYSYS", true},
{1, 11, 14, "TINYSYS", true},
{1, 12, 15, "TINYSYS", true},
{1, 13, 16, "TINYSYS", true},
{1, 14, 17, "TINYSYS", true},
{1, 15, 18, "TINYSYS", true},
{1, 16, 19, "TINYSYS", true},
/* 70 */
{1, 17, 20, "TINYSYS", true},
{1, 18, 21, "TINYSYS", true},
{1, 19, 22, "TINYSYS", true},
{1, 20, 23, "TINYSYS", true},
{1, 21, 24, "TINYSYS", true},
{1, 22, 25, "TINYSYS", true},
{1, 23, 41, "MDSYS", true},
{1, 24, 42, "MDSYS", true},
{1, 25, 43, "MDSYS", true},
{1, 26, 44, "MDSYS", true},
/* 80 */
{1, 27, 45, "MDSYS", true},
{1, 28, 46, "MDSYS", true},
{1, 29, 47, "MDSYS", true},
{1, 30, 48, "MDSYS", true},
{1, 31, 49, "MDSYS", true},
{1, 32, 50, "MDSYS", true},
{1, 33, 51, "MDSYS", true},
{1, 34, 52, "MDSYS", true},
{1, 35, 53, "MDSYS", true},
{1, 36, 54, "MDSYS", true},
/* 90 */
{1, 37, 55, "MDSYS", true},
{1, 38, 56, "MDSYS", true},
{1, 39, 57, "MDSYS", true},
{1, 40, 58, "MDSYS", true},
{1, 41, 59, "MDSYS", true},
{1, 42, 60, "MDSYS", true},
{1, 43, 61, "MDSYS", true},
{1, 44, 62, "MDSYS", true},
{1, 45, 63, "MDSYS", true},
{1, 46, 64, "MDSYS", true},
/* 100 */
{1, 47, 65, "MDSYS", true},
{1, 48, 66, "MDSYS", true},
{1, 49, 67, "MDSYS", true},
{1, 50, 68, "MDSYS", true},
{1, 51, 69, "MDSYS", true},
{1, 52, 70, "MDSYS", true},
{1, 53, 71, "MDSYS", true},
{1, 54, 72, "MDSYS", true},
{1, 55, 73, "MDSYS", true},
{1, 56, 74, "MDSYS", true},
/* 110 */
{1, 57, 75, "MDSYS", true},
{1, 58, 76, "MDSYS", true},
{1, 59, 77, "MDSYS", true},
{1, 60, 78, "MDSYS", true},
{1, 61, 79, "MDSYS", true},
{1, 62, 80, "MDSYS", true},
{1, 63, 81, "MDSYS", true},
{1, 64, 82, "MDSYS", true},
{1, 65, 83, "MDSYS", true},
{2, 0, 90, "CONNSYS", true},
/* 120 */
{-1, -1, 121, "OOB_way_en", true},
{-1, -1, 122, "OOB_way_en", true},
{-1, -1, 123, "OOB_way_en", true},
{-1, -1, 124, "OOB_way_en", true},
{-1, -1, 125, "OOB_way_en", true},
{-1, -1, 126, "OOB_way_en", true},
{-1, -1, 127, "OOB_way_en", true},
{-1, -1, 128, "OOB_way_en", true},
{-1, -1, 129, "OOB_way_en", true},
{-1, -1, 130, "OOB_way_en", true},
/* 130 */
{-1, -1, 131, "OOB_way_en", true},
{-1, -1, 132, "OOB_way_en", true},
{-1, -1, 133, "OOB_way_en", true},
{-1, -1, 134, "OOB_way_en", true},
{-1, -1, 135, "OOB_way_en", true},
{-1, -1, 136, "OOB_way_en", true},
{-1, -1, 137, "OOB_way_en", true},
{-1, -1, 138, "OOB_way_en", true},
{-1, -1, 139, "OOB_way_en", true},
{-1, -1, 140, "OOB_way_en", true},
/* 140 */
{-1, -1, 141, "OOB_way_en", true},
{-1, -1, 142, "OOB_way_en", true},
{-1, -1, 143, "OOB_way_en", true},
{-1, -1, 144, "OOB_way_en", true},
{-1, -1, 145, "OOB_way_en", true},
{-1, -1, 146, "OOB_way_en", true},
{-1, -1, 147, "OOB_way_en", true},
{-1, -1, 148, "OOB_way_en", true},
{-1, -1, 149, "OOB_way_en", true},
{-1, -1, 150, "OOB_way_en", true},
/* 150 */
{-1, -1, 151, "OOB_way_en", true},
{-1, -1, 152, "OOB_way_en", true},
{-1, -1, 153, "OOB_way_en", true},
{-1, -1, 154, "OOB_way_en", true},
{-1, -1, 155, "OOB_way_en", true},
{-1, -1, 156, "OOB_way_en", true},
{-1, -1, 157, "OOB_way_en", true},
{-1, -1, 158, "OOB_way_en", true},
{-1, -1, 159, "OOB_way_en", true},
{-1, -1, 160, "OOB_way_en", true},
/* 160 */
{-1, -1, 161, "OOB_way_en", true},
{-1, -1, 162, "OOB_way_en", true},
{-1, -1, 163, "OOB_way_en", true},
};
static struct mtk_device_info mt6833_devices_peri2[] = {
/* sys_idx, ctrl_idx, vio_idx, device, vio_irq */
/* 0 */
{0, 0, 0, "DEVICE_APC_PERI_AO2_APB_S", true},
{0, 1, 1, "BCRM_PERI_AO2_APB_S", true},
{0, 2, 2, "DEBUG_CTRL_PERI_AO2_APB_S", true},
{0, 3, 3, "GCE_APB_S", true},
{0, 4, 4, "GCE_APB_S-1", true},
{0, 5, 5, "GCE_APB_S-2", true},
{0, 6, 6, "GCE_APB_S-3", true},
{0, 7, 7, "DPMAIF_PDN_APB_S", true},
{0, 8, 8, "DPMAIF_PDN_APB_S-1", true},
{0, 9, 9, "DPMAIF_PDN_APB_S-2", true},
/* 10 */
{0, 10, 10, "DPMAIF_PDN_APB_S-3", true},
{0, 11, 11, "BND_EAST_APB0_S", true},
{0, 12, 12, "BND_EAST_APB1_S", true},
{0, 13, 13, "BND_EAST_APB2_S", true},
{0, 14, 14, "BND_EAST_APB3_S", true},
{0, 15, 15, "BND_EAST_APB4_S", true},
{0, 16, 16, "BND_EAST_APB5_S", true},
{0, 17, 17, "BND_EAST_APB6_S", true},
{0, 18, 18, "BND_EAST_APB7_S", true},
{0, 19, 19, "BND_EAST_APB8_S", true},
/* 20 */
{0, 20, 20, "BND_EAST_APB9_S", true},
{0, 21, 21, "BND_EAST_APB10_S", true},
{0, 22, 22, "BND_EAST_APB11_S", true},
{0, 23, 23, "BND_EAST_APB12_S", true},
{0, 24, 24, "BND_EAST_APB13_S", true},
{0, 25, 25, "BND_EAST_APB14_S", true},
{0, 26, 26, "BND_EAST_APB15_S", true},
{0, 27, 27, "BND_WEST_APB0_S", true},
{0, 28, 28, "BND_WEST_APB1_S", true},
{0, 29, 29, "BND_WEST_APB2_S", true},
/* 30 */
{0, 30, 30, "BND_WEST_APB3_S", true},
{0, 31, 31, "BND_WEST_APB4_S", true},
{0, 32, 32, "BND_WEST_APB5_S", true},
{0, 33, 33, "BND_WEST_APB6_S", true},
{0, 34, 34, "BND_WEST_APB7_S", true},
{0, 35, 35, "BND_NORTH_APB0_S", true},
{0, 36, 36, "BND_NORTH_APB1_S", true},
{0, 37, 37, "BND_NORTH_APB2_S", true},
{0, 38, 38, "BND_NORTH_APB3_S", true},
{0, 39, 39, "BND_NORTH_APB4_S", true},
/* 40 */
{0, 40, 40, "BND_NORTH_APB5_S", true},
{0, 41, 41, "BND_NORTH_APB6_S", true},
{0, 42, 42, "BND_NORTH_APB7_S", true},
{0, 43, 43, "BND_NORTH_APB8_S", true},
{0, 44, 44, "BND_NORTH_APB9_S", true},
{0, 45, 45, "BND_NORTH_APB10_S", true},
{0, 46, 46, "BND_NORTH_APB11_S", true},
{0, 47, 47, "BND_NORTH_APB12_S", true},
{0, 48, 48, "BND_NORTH_APB13_S", true},
{0, 49, 49, "BND_NORTH_APB14_S", true},
/* 50 */
{0, 50, 50, "BND_NORTH_APB15_S", true},
{0, 51, 51, "BND_SOUTH_APB0_S", true},
{0, 52, 52, "BND_SOUTH_APB1_S", true},
{0, 53, 53, "BND_SOUTH_APB2_S", true},
{0, 54, 54, "BND_SOUTH_APB3_S", true},
{0, 55, 55, "BND_SOUTH_APB4_S", true},
{0, 56, 56, "BND_SOUTH_APB5_S", true},
{0, 57, 57, "BND_SOUTH_APB6_S", true},
{0, 58, 58, "BND_SOUTH_APB7_S", true},
{0, 59, 59, "BND_SOUTH_APB8_S", true},
/* 60 */
{0, 60, 60, "BND_SOUTH_APB9_S", true},
{0, 61, 61, "BND_SOUTH_APB10_S", true},
{0, 62, 62, "BND_SOUTH_APB11_S", true},
{0, 63, 63, "BND_SOUTH_APB12_S", true},
{0, 64, 64, "BND_SOUTH_APB13_S", true},
{0, 65, 65, "BND_SOUTH_APB14_S", true},
{0, 66, 66, "BND_SOUTH_APB15_S", true},
{0, 67, 67, "BND_EAST_NORTH_APB0_S", true},
{0, 68, 68, "BND_EAST_NORTH_APB1_S", true},
{0, 69, 69, "BND_EAST_NORTH_APB2_S", true},
/* 70 */
{0, 70, 70, "BND_EAST_NORTH_APB3_S", true},
{0, 71, 71, "BND_EAST_NORTH_APB4_S", true},
{0, 72, 72, "BND_EAST_NORTH_APB5_S", true},
{0, 73, 73, "BND_EAST_NORTH_APB6_S", true},
{0, 74, 74, "BND_EAST_NORTH_APB7_S", true},
{0, 75, 75, "SYS_CIRQ_APB_S", true},
{0, 76, 76, "DEVICE_APC_INFRA_PDN_APB_S", true},
{0, 77, 77, "DEBUG_TRACKER_APB_S", true},
{0, 78, 78, "CCIF0_AP_APB_S", true},
{0, 79, 79, "CCIF0_MD_APB_S", true},
/* 80 */
{0, 80, 80, "CCIF1_AP_APB_S", true},
{0, 81, 81, "CCIF1_MD_APB_S", true},
{0, 82, 82, "MBIST_PDN_APB_S", true},
{0, 83, 83, "INFRACFG_PDN_APB_S", true},
{0, 84, 84, "TRNG_APB_S", true},
{0, 85, 85, "DX_CC_APB_S", true},
{0, 86, 86, "CQ_DMA_APB_S", true},
{0, 87, 87, "SRAMROM_APB_S", true},
{0, 88, 88, "INFRACFG_MEM_APB_S", true},
{0, 89, 89, "RESERVED_DVFS_PROC_APB_S", true},
/* 90 */
{0, 90, 92, "SYS_CIRQ2_APB_S", true},
{0, 91, 93, "DEBUG_TRACKER_APB1_S", true},
{0, 92, 94, "EMI_APB_S", true},
{0, 93, 95, "EMI_MPU_APB_S", true},
{0, 94, 96, "DEVICE_MPU_PDN_APB_S", true},
{0, 95, 97, "APDMA_APB_S", true},
{0, 96, 98, "DEBUG_TRACKER_APB2_S", true},
{0, 97, 99, "BCRM_INFRA_PDN_APB_S", true},
{0, 98, 100, "BCRM_PERI_PDN_APB_S", true},
{0, 99, 101, "BCRM_PERI_PDN2_APB_S", true},
/* 100 */
{0, 100, 102, "DEVICE_APC_PERI_PDN_APB_S", true},
{0, 101, 103, "DEVICE_APC_PERI_PDN2_APB_S", true},
{0, 102, 104, "BCRM_FMEM_PDN_APB_S", true},
{0, 103, 105, "HWCCF_APB_S", true},
{-1, -1, 106, "OOB_way_en", true},
{-1, -1, 107, "OOB_way_en", true},
{-1, -1, 108, "OOB_way_en", true},
{-1, -1, 109, "OOB_way_en", true},
{-1, -1, 110, "OOB_way_en", true},
{-1, -1, 111, "OOB_way_en", true},
/* 110 */
{-1, -1, 112, "OOB_way_en", true},
{-1, -1, 113, "OOB_way_en", true},
{-1, -1, 114, "OOB_way_en", true},
{-1, -1, 115, "OOB_way_en", true},
{-1, -1, 116, "OOB_way_en", true},
{-1, -1, 117, "OOB_way_en", true},
{-1, -1, 118, "OOB_way_en", true},
{-1, -1, 119, "OOB_way_en", true},
{-1, -1, 120, "OOB_way_en", true},
{-1, -1, 121, "OOB_way_en", true},
/* 120 */
{-1, -1, 122, "OOB_way_en", true},
{-1, -1, 123, "OOB_way_en", true},
{-1, -1, 124, "OOB_way_en", true},
{-1, -1, 125, "OOB_way_en", true},
{-1, -1, 126, "OOB_way_en", true},
{-1, -1, 127, "OOB_way_en", true},
{-1, -1, 128, "OOB_way_en", true},
{-1, -1, 129, "OOB_way_en", true},
{-1, -1, 130, "OOB_way_en", true},
{-1, -1, 131, "OOB_way_en", true},
/* 130 */
{-1, -1, 132, "OOB_way_en", true},
{-1, -1, 133, "OOB_way_en", true},
{-1, -1, 134, "OOB_way_en", true},
{-1, -1, 135, "OOB_way_en", true},
{-1, -1, 136, "OOB_way_en", true},
{-1, -1, 137, "OOB_way_en", true},
{-1, -1, 138, "OOB_way_en", true},
{-1, -1, 139, "OOB_way_en", true},
{-1, -1, 140, "OOB_way_en", true},
{-1, -1, 141, "OOB_way_en", true},
/* 140 */
{-1, -1, 142, "OOB_way_en", true},
{-1, -1, 143, "OOB_way_en", true},
{-1, -1, 144, "OOB_way_en", true},
{-1, -1, 145, "OOB_way_en", true},
{-1, -1, 146, "OOB_way_en", true},
{-1, -1, 147, "OOB_way_en", true},
{-1, -1, 148, "OOB_way_en", true},
{-1, -1, 149, "OOB_way_en", true},
{-1, -1, 150, "OOB_way_en", true},
{-1, -1, 151, "OOB_way_en", true},
/* 150 */
{-1, -1, 152, "OOB_way_en", true},
{-1, -1, 153, "OOB_way_en", true},
{-1, -1, 154, "OOB_way_en", true},
{-1, -1, 155, "OOB_way_en", true},
{-1, -1, 156, "OOB_way_en", true},
{-1, -1, 157, "OOB_way_en", true},
{-1, -1, 158, "OOB_way_en", true},
{-1, -1, 159, "OOB_way_en", true},
{-1, -1, 160, "OOB_way_en", true},
{-1, -1, 161, "OOB_way_en", true},
/* 160 */
{-1, -1, 162, "OOB_way_en", true},
{-1, -1, 163, "OOB_way_en", true},
{-1, -1, 164, "OOB_way_en", true},
{-1, -1, 165, "OOB_way_en", true},
{-1, -1, 166, "OOB_way_en", true},
{-1, -1, 167, "OOB_way_en", true},
{-1, -1, 168, "OOB_way_en", true},
{-1, -1, 169, "OOB_way_en", true},
{-1, -1, 170, "OOB_way_en", true},
{-1, -1, 171, "OOB_way_en", true},
/* 170 */
{-1, -1, 172, "OOB_way_en", true},
{-1, -1, 173, "OOB_way_en", true},
{-1, -1, 174, "OOB_way_en", true},
{-1, -1, 175, "OOB_way_en", true},
{-1, -1, 176, "OOB_way_en", true},
{-1, -1, 177, "OOB_way_en", true},
{-1, -1, 178, "OOB_way_en", true},
{-1, -1, 179, "OOB_way_en", true},
{-1, -1, 180, "OOB_way_en", true},
{-1, -1, 181, "OOB_way_en", true},
/* 180 */
{-1, -1, 182, "OOB_way_en", true},
{-1, -1, 183, "OOB_way_en", true},
{-1, -1, 184, "OOB_way_en", true},
{-1, -1, 185, "OOB_way_en", true},
{-1, -1, 186, "OOB_way_en", true},
{-1, -1, 187, "OOB_way_en", true},
{-1, -1, 188, "OOB_way_en", true},
{-1, -1, 189, "OOB_way_en", true},
{-1, -1, 190, "OOB_way_en", true},
{-1, -1, 191, "OOB_way_en", true},
/* 190 */
{-1, -1, 192, "OOB_way_en", true},
{-1, -1, 193, "OOB_way_en", true},
{-1, -1, 194, "OOB_way_en", true},
{-1, -1, 195, "OOB_way_en", true},
{-1, -1, 196, "OOB_way_en", true},
{-1, -1, 197, "OOB_way_en", true},
{-1, -1, 198, "OOB_way_en", true},
{-1, -1, 199, "OOB_way_en", true},
{-1, -1, 200, "OOB_way_en", true},
{-1, -1, 201, "OOB_way_en", true},
/* 200 */
{-1, -1, 202, "OOB_way_en", true},
{-1, -1, 203, "OOB_way_en", true},
{-1, -1, 204, "OOB_way_en", true},
{-1, -1, 205, "OOB_way_en", true},
{-1, -1, 206, "OOB_way_en", true},
{-1, -1, 207, "OOB_way_en", true},
{-1, -1, 208, "OOB_way_en", true},
{-1, -1, 209, "OOB_way_en", true},
{-1, -1, 210, "OOB_way_en", true},
{-1, -1, 211, "OOB_way_en", true},
/* 210 */
{-1, -1, 212, "OOB_way_en", true},
{-1, -1, 213, "OOB_way_en", true},
{-1, -1, 214, "OOB_way_en", true},
{-1, -1, 215, "OOB_way_en", true},
{-1, -1, 216, "OOB_way_en", true},
{-1, -1, 217, "OOB_way_en", true},
{-1, -1, 218, "OOB_way_en", true},
{-1, -1, 219, "OOB_way_en", true},
};
static struct mtk_device_info mt6833_devices_peri_par[] = {
/* sys_idx, ctrl_idx, vio_idx, device, vio_irq */
/* 0 */
{0, 0, 0, "MSDC0_S", true},
{0, 1, 1, "MSDC1_S", true},
{0, 2, 2, "AUXADC_APB_S", true},
{0, 3, 3, "UART0_APB_S", true},
{0, 4, 4, "UART1_APB_S", true},
{0, 5, 5, "UART2_APB_S", true},
{0, 6, 6, "IIC_P2P_REMAP_APB4_S", true},
{0, 7, 7, "SPI0_APB_S", true},
{0, 8, 8, "PTP_THERM_CTRL_APB_S", true},
{0, 9, 9, "BTIF_APB_S", true},
/* 10 */
{0, 10, 10, "DISP_PWM_APB_S", true},
{0, 11, 11, "SPI1_APB_S", true},
{0, 12, 12, "SPI2_APB_S", true},
{0, 13, 13, "SPI3_APB_S", true},
{0, 14, 14, "IIC_P2P_REMAP_APB0_S", true},
{0, 15, 15, "IIC_P2P_REMAP_APB1_S", true},
{0, 16, 16, "SPI4_APB_S", true},
{0, 17, 17, "SPI5_APB_S", true},
{0, 18, 18, "IIC_P2P_REMAP_APB2_S", true},
{0, 19, 19, "IIC_P2P_REMAP_APB3_S", true},
/* 20 */
{0, 20, 20, "SPI6_APB_S", true},
{0, 21, 21, "SPI7_APB_S", true},
{0, 22, 22, "BCRM_PERI_PAR_PDN_APB_S", true},
{0, 23, 23, "DEVICE_APC_PERI_PAR_PDN_APB_S", true},
{0, 24, 24, "PTP_THERM_CTRL2_APB_S", true},
{0, 25, 25, "DEVICE_APC_PERI_PAR_AO_APB_S", true},
{0, 26, 26, "DEBUG_CTRL_PERI_PAR_AO_APB_S", true},
{0, 27, 27, "BCRM_PERI_PAR_AO_APB_S", true},
{-1, -1, 28, "OOB_way_en", true},
{-1, -1, 29, "OOB_way_en", true},
/* 30 */
{-1, -1, 30, "OOB_way_en", true},
{-1, -1, 31, "OOB_way_en", true},
{-1, -1, 32, "OOB_way_en", true},
{-1, -1, 33, "OOB_way_en", true},
{-1, -1, 34, "OOB_way_en", true},
{-1, -1, 35, "OOB_way_en", true},
{-1, -1, 36, "OOB_way_en", true},
{-1, -1, 37, "OOB_way_en", true},
{-1, -1, 38, "OOB_way_en", true},
{-1, -1, 39, "OOB_way_en", true},
/* 40 */
{-1, -1, 40, "OOB_way_en", true},
{-1, -1, 41, "OOB_way_en", true},
{-1, -1, 42, "OOB_way_en", true},
{-1, -1, 43, "OOB_way_en", true},
{-1, -1, 44, "OOB_way_en", true},
{-1, -1, 45, "OOB_way_en", true},
{-1, -1, 46, "OOB_way_en", true},
{-1, -1, 47, "OOB_way_en", true},
{-1, -1, 48, "OOB_way_en", true},
{-1, -1, 49, "OOB_way_en", true},
/* 50 */
{-1, -1, 50, "OOB_way_en", true},
{-1, -1, 51, "OOB_way_en", true},
{-1, -1, 52, "OOB_way_en", true},
{-1, -1, 53, "OOB_way_en", true},
{-1, -1, 54, "OOB_way_en", true},
{-1, -1, 55, "OOB_way_en", true},
{-1, -1, 56, "OOB_way_en", true},
{-1, -1, 57, "OOB_way_en", true},
{-1, -1, 58, "OOB_way_en", true},
{-1, -1, 59, "OOB_way_en", true},
/* 60 */
{-1, -1, 60, "OOB_way_en", true},
};
enum DEVAPC_VIO_SLAVE_NUM {
VIO_SLAVE_NUM_INFRA = ARRAY_SIZE(mt6833_devices_infra),
VIO_SLAVE_NUM_PERI = ARRAY_SIZE(mt6833_devices_peri),
VIO_SLAVE_NUM_PERI2 = ARRAY_SIZE(mt6833_devices_peri2),
VIO_SLAVE_NUM_PERI_PAR = ARRAY_SIZE(mt6833_devices_peri_par),
};
#endif /* __DEVAPC_MT6873_H__ */