// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2014 NVIDIA CORPORATION. All rights reserved.
*/
#include <linux/of.h>
#include <linux/mm.h>
#include <dt-bindings/memory/tegra114-mc.h>
#include "mc.h"
static const struct tegra_mc_client tegra114_mc_clients[] = {
{
.id = 0 x00,
.name = "ptcr" ,
.swgroup = TEGRA_SWGROUP_PTC,
.regs = {
.la = {
.reg = 0 x34c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x0,
},
},
}, {
.id = 0 x01,
.name = "display0a" ,
.swgroup = TEGRA_SWGROUP_DC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 1 ,
},
.la = {
.reg = 0 x2e8,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x4e,
},
},
}, {
.id = 0 x02,
.name = "display0ab" ,
.swgroup = TEGRA_SWGROUP_DCB,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 2 ,
},
.la = {
.reg = 0 x2f4,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x4e,
},
},
}, {
.id = 0 x03,
.name = "display0b" ,
.swgroup = TEGRA_SWGROUP_DC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 3 ,
},
.la = {
.reg = 0 x2e8,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x4e,
},
},
}, {
.id = 0 x04,
.name = "display0bb" ,
.swgroup = TEGRA_SWGROUP_DCB,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 4 ,
},
.la = {
.reg = 0 x2f4,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x4e,
},
},
}, {
.id = 0 x05,
.name = "display0c" ,
.swgroup = TEGRA_SWGROUP_DC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 5 ,
},
.la = {
.reg = 0 x2ec,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x4e,
},
},
}, {
.id = 0 x06,
.name = "display0cb" ,
.swgroup = TEGRA_SWGROUP_DCB,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 6 ,
},
.la = {
.reg = 0 x2f8,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x4e,
},
},
}, {
.id = 0 x09,
.name = "eppup" ,
.swgroup = TEGRA_SWGROUP_EPP,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 9 ,
},
.la = {
.reg = 0 x300,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x33,
},
},
}, {
.id = 0 x0a,
.name = "g2pr" ,
.swgroup = TEGRA_SWGROUP_G2,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 10 ,
},
.la = {
.reg = 0 x308,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x09,
},
},
}, {
.id = 0 x0b,
.name = "g2sr" ,
.swgroup = TEGRA_SWGROUP_G2,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 11 ,
},
.la = {
.reg = 0 x308,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x09,
},
},
}, {
.id = 0 x0f,
.name = "avpcarm7r" ,
.swgroup = TEGRA_SWGROUP_AVPC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 15 ,
},
.la = {
.reg = 0 x2e4,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x04,
},
},
}, {
.id = 0 x10,
.name = "displayhc" ,
.swgroup = TEGRA_SWGROUP_DC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 16 ,
},
.la = {
.reg = 0 x2f0,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x68,
},
},
}, {
.id = 0 x11,
.name = "displayhcb" ,
.swgroup = TEGRA_SWGROUP_DCB,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 17 ,
},
.la = {
.reg = 0 x2fc,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x68,
},
},
}, {
.id = 0 x12,
.name = "fdcdrd" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 18 ,
},
.la = {
.reg = 0 x334,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x0c,
},
},
}, {
.id = 0 x13,
.name = "fdcdrd2" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 19 ,
},
.la = {
.reg = 0 x33c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x0c,
},
},
}, {
.id = 0 x14,
.name = "g2dr" ,
.swgroup = TEGRA_SWGROUP_G2,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 20 ,
},
.la = {
.reg = 0 x30c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x0a,
},
},
}, {
.id = 0 x15,
.name = "hdar" ,
.swgroup = TEGRA_SWGROUP_HDA,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 21 ,
},
.la = {
.reg = 0 x318,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x16,
.name = "host1xdmar" ,
.swgroup = TEGRA_SWGROUP_HC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 22 ,
},
.la = {
.reg = 0 x310,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x10,
},
},
}, {
.id = 0 x17,
.name = "host1xr" ,
.swgroup = TEGRA_SWGROUP_HC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 23 ,
},
.la = {
.reg = 0 x310,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xa5,
},
},
}, {
.id = 0 x18,
.name = "idxsrd" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 24 ,
},
.la = {
.reg = 0 x334,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x0b,
},
},
}, {
.id = 0 x1c,
.name = "msencsrd" ,
.swgroup = TEGRA_SWGROUP_MSENC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 28 ,
},
.la = {
.reg = 0 x328,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x1d,
.name = "ppcsahbdmar" ,
.swgroup = TEGRA_SWGROUP_PPCS,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 29 ,
},
.la = {
.reg = 0 x344,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x50,
},
},
}, {
.id = 0 x1e,
.name = "ppcsahbslvr" ,
.swgroup = TEGRA_SWGROUP_PPCS,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 30 ,
},
.la = {
.reg = 0 x344,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xe8,
},
},
}, {
.id = 0 x20,
.name = "texl2srd" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 0 ,
},
.la = {
.reg = 0 x338,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x0c,
},
},
}, {
.id = 0 x22,
.name = "vdebsevr" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 2 ,
},
.la = {
.reg = 0 x354,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x23,
.name = "vdember" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 3 ,
},
.la = {
.reg = 0 x354,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x24,
.name = "vdemcer" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 4 ,
},
.la = {
.reg = 0 x358,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xb8,
},
},
}, {
.id = 0 x25,
.name = "vdetper" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 5 ,
},
.la = {
.reg = 0 x358,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xee,
},
},
}, {
.id = 0 x26,
.name = "mpcorelpr" ,
.swgroup = TEGRA_SWGROUP_MPCORELP,
.regs = {
.la = {
.reg = 0 x324,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x04,
},
},
}, {
.id = 0 x27,
.name = "mpcorer" ,
.swgroup = TEGRA_SWGROUP_MPCORE,
.regs = {
.la = {
.reg = 0 x320,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x04,
},
},
}, {
.id = 0 x28,
.name = "eppu" ,
.swgroup = TEGRA_SWGROUP_EPP,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 8 ,
},
.la = {
.reg = 0 x300,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x33,
},
},
}, {
.id = 0 x29,
.name = "eppv" ,
.swgroup = TEGRA_SWGROUP_EPP,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 9 ,
},
.la = {
.reg = 0 x304,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x6c,
},
},
}, {
.id = 0 x2a,
.name = "eppy" ,
.swgroup = TEGRA_SWGROUP_EPP,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 10 ,
},
.la = {
.reg = 0 x304,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x6c,
},
},
}, {
.id = 0 x2b,
.name = "msencswr" ,
.swgroup = TEGRA_SWGROUP_MSENC,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 11 ,
},
.la = {
.reg = 0 x328,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x2c,
.name = "viwsb" ,
.swgroup = TEGRA_SWGROUP_VI,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 12 ,
},
.la = {
.reg = 0 x364,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x47,
},
},
}, {
.id = 0 x2d,
.name = "viwu" ,
.swgroup = TEGRA_SWGROUP_VI,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 13 ,
},
.la = {
.reg = 0 x368,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x2e,
.name = "viwv" ,
.swgroup = TEGRA_SWGROUP_VI,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 14 ,
},
.la = {
.reg = 0 x368,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x2f,
.name = "viwy" ,
.swgroup = TEGRA_SWGROUP_VI,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 15 ,
},
.la = {
.reg = 0 x36c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x47,
},
},
}, {
.id = 0 x30,
.name = "g2dw" ,
.swgroup = TEGRA_SWGROUP_G2,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 16 ,
},
.la = {
.reg = 0 x30c,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x9,
},
},
}, {
.id = 0 x32,
.name = "avpcarm7w" ,
.swgroup = TEGRA_SWGROUP_AVPC,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 18 ,
},
.la = {
.reg = 0 x2e4,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x0e,
},
},
}, {
.id = 0 x33,
.name = "fdcdwr" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 19 ,
},
.la = {
.reg = 0 x338,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x10,
},
},
}, {
.id = 0 x34,
.name = "fdcdwr2" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 20 ,
},
.la = {
.reg = 0 x340,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x10,
},
},
}, {
.id = 0 x35,
.name = "hdaw" ,
.swgroup = TEGRA_SWGROUP_HDA,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 21 ,
},
.la = {
.reg = 0 x318,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x36,
.name = "host1xw" ,
.swgroup = TEGRA_SWGROUP_HC,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 22 ,
},
.la = {
.reg = 0 x314,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x25,
},
},
}, {
.id = 0 x37,
.name = "ispw" ,
.swgroup = TEGRA_SWGROUP_ISP,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 23 ,
},
.la = {
.reg = 0 x31c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x38,
.name = "mpcorelpw" ,
.swgroup = TEGRA_SWGROUP_MPCORELP,
.regs = {
.la = {
.reg = 0 x324,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x39,
.name = "mpcorew" ,
.swgroup = TEGRA_SWGROUP_MPCORE,
.regs = {
.la = {
.reg = 0 x320,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x0e,
},
},
}, {
.id = 0 x3b,
.name = "ppcsahbdmaw" ,
.swgroup = TEGRA_SWGROUP_PPCS,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 27 ,
},
.la = {
.reg = 0 x348,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xa5,
},
},
}, {
.id = 0 x3c,
.name = "ppcsahbslvw" ,
.swgroup = TEGRA_SWGROUP_PPCS,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 28 ,
},
.la = {
.reg = 0 x348,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xe8,
},
},
}, {
.id = 0 x3e,
.name = "vdebsevw" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 30 ,
},
.la = {
.reg = 0 x35c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x3f,
.name = "vdedbgw" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 31 ,
},
.la = {
.reg = 0 x35c,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x40,
.name = "vdembew" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 0 ,
},
.la = {
.reg = 0 x360,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x89,
},
},
}, {
.id = 0 x41,
.name = "vdetpmw" ,
.swgroup = TEGRA_SWGROUP_VDE,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 1 ,
},
.la = {
.reg = 0 x360,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x59,
},
},
}, {
.id = 0 x4a,
.name = "xusb_hostr" ,
.swgroup = TEGRA_SWGROUP_XUSB_HOST,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 10 ,
},
.la = {
.reg = 0 x37c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xa5,
},
},
}, {
.id = 0 x4b,
.name = "xusb_hostw" ,
.swgroup = TEGRA_SWGROUP_XUSB_HOST,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 11 ,
},
.la = {
.reg = 0 x37c,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xa5,
},
},
}, {
.id = 0 x4c,
.name = "xusb_devr" ,
.swgroup = TEGRA_SWGROUP_XUSB_DEV,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 12 ,
},
.la = {
.reg = 0 x380,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xa5,
},
},
}, {
.id = 0 x4d,
.name = "xusb_devw" ,
.swgroup = TEGRA_SWGROUP_XUSB_DEV,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 13 ,
},
.la = {
.reg = 0 x380,
.shift = 16 ,
.mask = 0 xff,
.def = 0 xa5,
},
},
}, {
.id = 0 x4e,
.name = "fdcdwr3" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 14 ,
},
.la = {
.reg = 0 x388,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x10,
},
},
}, {
.id = 0 x4f,
.name = "fdcdrd3" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 15 ,
},
.la = {
.reg = 0 x384,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x0c,
},
},
}, {
.id = 0 x50,
.name = "fdcwr4" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 16 ,
},
.la = {
.reg = 0 x388,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x10,
},
},
}, {
.id = 0 x51,
.name = "fdcrd4" ,
.swgroup = TEGRA_SWGROUP_NV,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 17 ,
},
.la = {
.reg = 0 x384,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x0c,
},
},
}, {
.id = 0 x52,
.name = "emucifr" ,
.swgroup = TEGRA_SWGROUP_EMUCIF,
.regs = {
.la = {
.reg = 0 x38c,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x04,
},
},
}, {
.id = 0 x53,
.name = "emucifw" ,
.swgroup = TEGRA_SWGROUP_EMUCIF,
.regs = {
.la = {
.reg = 0 x38c,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x0e,
},
},
}, {
.id = 0 x54,
.name = "tsecsrd" ,
.swgroup = TEGRA_SWGROUP_TSEC,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 20 ,
},
.la = {
.reg = 0 x390,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x50,
},
},
}, {
.id = 0 x55,
.name = "tsecswr" ,
.swgroup = TEGRA_SWGROUP_TSEC,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 21 ,
},
.la = {
.reg = 0 x390,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x50,
},
},
},
};
static const struct tegra_smmu_swgroup tegra114_swgroups[] = {
{ .name = "dc" , .swgroup = TEGRA_SWGROUP_DC, .reg = 0 x240 },
{ .name = "dcb" , .swgroup = TEGRA_SWGROUP_DCB, .reg = 0 x244 },
{ .name = "epp" , .swgroup = TEGRA_SWGROUP_EPP, .reg = 0 x248 },
{ .name = "g2" , .swgroup = TEGRA_SWGROUP_G2, .reg = 0 x24c },
{ .name = "avpc" , .swgroup = TEGRA_SWGROUP_AVPC, .reg = 0 x23c },
{ .name = "nv" , .swgroup = TEGRA_SWGROUP_NV, .reg = 0 x268 },
{ .name = "hda" , .swgroup = TEGRA_SWGROUP_HDA, .reg = 0 x254 },
{ .name = "hc" , .swgroup = TEGRA_SWGROUP_HC, .reg = 0 x250 },
{ .name = "msenc" , .swgroup = TEGRA_SWGROUP_MSENC, .reg = 0 x264 },
{ .name = "ppcs" , .swgroup = TEGRA_SWGROUP_PPCS, .reg = 0 x270 },
{ .name = "vde" , .swgroup = TEGRA_SWGROUP_VDE, .reg = 0 x27c },
{ .name = "vi" , .swgroup = TEGRA_SWGROUP_VI, .reg = 0 x280 },
{ .name = "isp" , .swgroup = TEGRA_SWGROUP_ISP, .reg = 0 x258 },
{ .name = "xusb_host" , .swgroup = TEGRA_SWGROUP_XUSB_HOST, .reg = 0 x288 },
{ .name = "xusb_dev" , .swgroup = TEGRA_SWGROUP_XUSB_DEV, .reg = 0 x28c },
{ .name = "tsec" , .swgroup = TEGRA_SWGROUP_TSEC, .reg = 0 x294 },
};
static const unsigned int tegra114_group_drm[] = {
TEGRA_SWGROUP_DC,
TEGRA_SWGROUP_DCB,
TEGRA_SWGROUP_G2,
TEGRA_SWGROUP_NV,
};
static const struct tegra_smmu_group_soc tegra114_groups[] = {
{
.name = "drm" ,
.swgroups = tegra114_group_drm,
.num_swgroups = ARRAY_SIZE(tegra114_group_drm),
},
};
static const struct tegra_smmu_soc tegra114_smmu_soc = {
.clients = tegra114_mc_clients,
.num_clients = ARRAY_SIZE(tegra114_mc_clients),
.swgroups = tegra114_swgroups,
.num_swgroups = ARRAY_SIZE(tegra114_swgroups),
.groups = tegra114_groups,
.num_groups = ARRAY_SIZE(tegra114_groups),
.supports_round_robin_arbitration = false ,
.supports_request_limit = false ,
.num_tlb_lines = 32 ,
.num_asids = 4 ,
};
#define TEGRA114_MC_RESET(_name, _control, _status, _bit) \
{ \
.name = #_ name, \
.id = TEGRA114_MC_RESET_## _name, \
.control = _control, \
.status = _status, \
.bit = _bit, \
}
static const struct tegra_mc_reset tegra114_mc_resets[] = {
TEGRA114_MC_RESET(AVPC, 0 x200, 0 x204, 1 ),
TEGRA114_MC_RESET(DC, 0 x200, 0 x204, 2 ),
TEGRA114_MC_RESET(DCB, 0 x200, 0 x204, 3 ),
TEGRA114_MC_RESET(EPP, 0 x200, 0 x204, 4 ),
TEGRA114_MC_RESET(2 D, 0 x200, 0 x204, 5 ),
TEGRA114_MC_RESET(HC, 0 x200, 0 x204, 6 ),
TEGRA114_MC_RESET(HDA, 0 x200, 0 x204, 7 ),
TEGRA114_MC_RESET(ISP, 0 x200, 0 x204, 8 ),
TEGRA114_MC_RESET(MPCORE, 0 x200, 0 x204, 9 ),
TEGRA114_MC_RESET(MPCORELP, 0 x200, 0 x204, 10 ),
TEGRA114_MC_RESET(MPE, 0 x200, 0 x204, 11 ),
TEGRA114_MC_RESET(3 D, 0 x200, 0 x204, 12 ),
TEGRA114_MC_RESET(3 D2, 0 x200, 0 x204, 13 ),
TEGRA114_MC_RESET(PPCS, 0 x200, 0 x204, 14 ),
TEGRA114_MC_RESET(VDE, 0 x200, 0 x204, 16 ),
TEGRA114_MC_RESET(VI, 0 x200, 0 x204, 17 ),
};
const struct tegra_mc_soc tegra114_mc_soc = {
.clients = tegra114_mc_clients,
.num_clients = ARRAY_SIZE(tegra114_mc_clients),
.num_address_bits = 32 ,
.atom_size = 32 ,
.client_id_mask = 0 x7f,
.smmu = &tegra114_smmu_soc,
.intmask = MC_INT_INVALID_SMMU_PAGE | MC_INT_SECURITY_VIOLATION |
MC_INT_DECERR_EMEM,
.reset_ops = &tegra_mc_reset_ops_common,
.resets = tegra114_mc_resets,
.num_resets = ARRAY_SIZE(tegra114_mc_resets),
.ops = &tegra30_mc_ops,
};
Messung V0.5 in Prozent C=97 H=93 G=94