// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2015 NVIDIA CORPORATION. All rights reserved.
*/
#include <dt-bindings/memory/tegra210-mc.h>
#include "mc.h"
static const struct tegra_mc_client tegra210_mc_clients[] = {
{
.id = 0 x00,
.name = "ptcr" ,
.swgroup = TEGRA_SWGROUP_PTC,
}, {
.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 x1e,
},
},
}, {
.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 x1e,
},
},
}, {
.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 x1e,
},
},
}, {
.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 x1e,
},
},
}, {
.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 x1e,
},
},
}, {
.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 x1e,
},
},
}, {
.id = 0 x0e,
.name = "afir" ,
.swgroup = TEGRA_SWGROUP_AFI,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 14 ,
},
.la = {
.reg = 0 x2e0,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x2e,
},
},
}, {
.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 x1e,
},
},
}, {
.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 x1e,
},
},
}, {
.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 x24,
},
},
}, {
.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 x1e,
},
},
}, {
.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 x50,
},
},
}, {
.id = 0 x1c,
.name = "nvencsrd" ,
.swgroup = TEGRA_SWGROUP_NVENC,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 28 ,
},
.la = {
.reg = 0 x328,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x23,
},
},
}, {
.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 x49,
},
},
}, {
.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 x1a,
},
},
}, {
.id = 0 x1f,
.name = "satar" ,
.swgroup = TEGRA_SWGROUP_SATA,
.regs = {
.smmu = {
.reg = 0 x228,
.bit = 31 ,
},
.la = {
.reg = 0 x350,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x65,
},
},
}, {
.id = 0 x27,
.name = "mpcorer" ,
.swgroup = TEGRA_SWGROUP_MPCORE,
.regs = {
.la = {
.reg = 0 x320,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x04,
},
},
}, {
.id = 0 x2b,
.name = "nvencswr" ,
.swgroup = TEGRA_SWGROUP_NVENC,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 11 ,
},
.la = {
.reg = 0 x328,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x31,
.name = "afiw" ,
.swgroup = TEGRA_SWGROUP_AFI,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 17 ,
},
.la = {
.reg = 0 x2e0,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.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 x80,
},
},
}, {
.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 x80,
},
},
}, {
.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 x80,
},
},
}, {
.id = 0 x39,
.name = "mpcorew" ,
.swgroup = TEGRA_SWGROUP_MPCORE,
.regs = {
.la = {
.reg = 0 x320,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.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 x80,
},
},
}, {
.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 x80,
},
},
}, {
.id = 0 x3d,
.name = "sataw" ,
.swgroup = TEGRA_SWGROUP_SATA,
.regs = {
.smmu = {
.reg = 0 x22c,
.bit = 29 ,
},
.la = {
.reg = 0 x350,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x44,
.name = "ispra" ,
.swgroup = TEGRA_SWGROUP_ISP2,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 4 ,
},
.la = {
.reg = 0 x370,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x18,
},
},
}, {
.id = 0 x46,
.name = "ispwa" ,
.swgroup = TEGRA_SWGROUP_ISP2,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 6 ,
},
.la = {
.reg = 0 x374,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x47,
.name = "ispwb" ,
.swgroup = TEGRA_SWGROUP_ISP2,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 7 ,
},
.la = {
.reg = 0 x374,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.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 x7a,
},
},
}, {
.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 x80,
},
},
}, {
.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 x39,
},
},
}, {
.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 x80,
},
},
}, {
.id = 0 x4e,
.name = "isprab" ,
.swgroup = TEGRA_SWGROUP_ISP2B,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 14 ,
},
.la = {
.reg = 0 x384,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x18,
},
},
}, {
.id = 0 x50,
.name = "ispwab" ,
.swgroup = TEGRA_SWGROUP_ISP2B,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 16 ,
},
.la = {
.reg = 0 x388,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x51,
.name = "ispwbb" ,
.swgroup = TEGRA_SWGROUP_ISP2B,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 17 ,
},
.la = {
.reg = 0 x388,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.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 x9b,
},
},
}, {
.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 x80,
},
},
}, {
.id = 0 x56,
.name = "a9avpscr" ,
.swgroup = TEGRA_SWGROUP_A9AVP,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 22 ,
},
.la = {
.reg = 0 x3a4,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x04,
},
},
}, {
.id = 0 x57,
.name = "a9avpscw" ,
.swgroup = TEGRA_SWGROUP_A9AVP,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 23 ,
},
.la = {
.reg = 0 x3a4,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x58,
.name = "gpusrd" ,
.swgroup = TEGRA_SWGROUP_GPU,
.regs = {
.smmu = {
/* read-only */
.reg = 0 x230,
.bit = 24 ,
},
.la = {
.reg = 0 x3c8,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x1a,
},
},
}, {
.id = 0 x59,
.name = "gpuswr" ,
.swgroup = TEGRA_SWGROUP_GPU,
.regs = {
.smmu = {
/* read-only */
.reg = 0 x230,
.bit = 25 ,
},
.la = {
.reg = 0 x3c8,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x5a,
.name = "displayt" ,
.swgroup = TEGRA_SWGROUP_DC,
.regs = {
.smmu = {
.reg = 0 x230,
.bit = 26 ,
},
.la = {
.reg = 0 x2f0,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x1e,
},
},
}, {
.id = 0 x60,
.name = "sdmmcra" ,
.swgroup = TEGRA_SWGROUP_SDMMC1A,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 0 ,
},
.la = {
.reg = 0 x3b8,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x49,
},
},
}, {
.id = 0 x61,
.name = "sdmmcraa" ,
.swgroup = TEGRA_SWGROUP_SDMMC2A,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 1 ,
},
.la = {
.reg = 0 x3bc,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x5a,
},
},
}, {
.id = 0 x62,
.name = "sdmmcr" ,
.swgroup = TEGRA_SWGROUP_SDMMC3A,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 2 ,
},
.la = {
.reg = 0 x3c0,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x49,
},
},
}, {
.id = 0 x63,
.swgroup = TEGRA_SWGROUP_SDMMC4A,
.name = "sdmmcrab" ,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 3 ,
},
.la = {
.reg = 0 x3c4,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x5a,
},
},
}, {
.id = 0 x64,
.name = "sdmmcwa" ,
.swgroup = TEGRA_SWGROUP_SDMMC1A,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 4 ,
},
.la = {
.reg = 0 x3b8,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x65,
.name = "sdmmcwaa" ,
.swgroup = TEGRA_SWGROUP_SDMMC2A,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 5 ,
},
.la = {
.reg = 0 x3bc,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x66,
.name = "sdmmcw" ,
.swgroup = TEGRA_SWGROUP_SDMMC3A,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 6 ,
},
.la = {
.reg = 0 x3c0,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x67,
.name = "sdmmcwab" ,
.swgroup = TEGRA_SWGROUP_SDMMC4A,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 7 ,
},
.la = {
.reg = 0 x3c4,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x6c,
.name = "vicsrd" ,
.swgroup = TEGRA_SWGROUP_VIC,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 12 ,
},
.la = {
.reg = 0 x394,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x1a,
},
},
}, {
.id = 0 x6d,
.name = "vicswr" ,
.swgroup = TEGRA_SWGROUP_VIC,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 13 ,
},
.la = {
.reg = 0 x394,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x72,
.name = "viw" ,
.swgroup = TEGRA_SWGROUP_VI,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 18 ,
},
.la = {
.reg = 0 x398,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x73,
.name = "displayd" ,
.swgroup = TEGRA_SWGROUP_DC,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 19 ,
},
.la = {
.reg = 0 x3c8,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x50,
},
},
}, {
.id = 0 x78,
.name = "nvdecsrd" ,
.swgroup = TEGRA_SWGROUP_NVDEC,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 24 ,
},
.la = {
.reg = 0 x3d8,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x23,
},
},
}, {
.id = 0 x79,
.name = "nvdecswr" ,
.swgroup = TEGRA_SWGROUP_NVDEC,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 25 ,
},
.la = {
.reg = 0 x3d8,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x7a,
.name = "aper" ,
.swgroup = TEGRA_SWGROUP_APE,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 26 ,
},
.la = {
.reg = 0 x3dc,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x7b,
.name = "apew" ,
.swgroup = TEGRA_SWGROUP_APE,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 27 ,
},
.la = {
.reg = 0 x3dc,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x7e,
.name = "nvjpgsrd" ,
.swgroup = TEGRA_SWGROUP_NVJPG,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 30 ,
},
.la = {
.reg = 0 x3e4,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x23,
},
},
}, {
.id = 0 x7f,
.name = "nvjpgswr" ,
.swgroup = TEGRA_SWGROUP_NVJPG,
.regs = {
.smmu = {
.reg = 0 x234,
.bit = 31 ,
},
.la = {
.reg = 0 x3e4,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x80,
.name = "sesrd" ,
.swgroup = TEGRA_SWGROUP_SE,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 0 ,
},
.la = {
.reg = 0 x3e0,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x2e,
},
},
}, {
.id = 0 x81,
.name = "seswr" ,
.swgroup = TEGRA_SWGROUP_SE,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 1 ,
},
.la = {
.reg = 0 x3e0,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x82,
.name = "axiapr" ,
.swgroup = TEGRA_SWGROUP_AXIAP,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 2 ,
},
.la = {
.reg = 0 x3a0,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x83,
.name = "axiapw" ,
.swgroup = TEGRA_SWGROUP_AXIAP,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 3 ,
},
.la = {
.reg = 0 x3a0,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x84,
.name = "etrr" ,
.swgroup = TEGRA_SWGROUP_ETR,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 4 ,
},
.la = {
.reg = 0 x3ec,
.shift = 0 ,
.mask = 0 xff,
.def = 0 xff,
},
},
}, {
.id = 0 x85,
.name = "etrw" ,
.swgroup = TEGRA_SWGROUP_ETR,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 5 ,
},
.la = {
.reg = 0 x3ec,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x86,
.name = "tsecsrdb" ,
.swgroup = TEGRA_SWGROUP_TSECB,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 6 ,
},
.la = {
.reg = 0 x3f0,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x9b,
},
},
}, {
.id = 0 x87,
.name = "tsecswrb" ,
.swgroup = TEGRA_SWGROUP_TSECB,
.regs = {
.smmu = {
.reg = 0 xb98,
.bit = 7 ,
},
.la = {
.reg = 0 x3f0,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
}, {
.id = 0 x88,
.name = "gpusrd2" ,
.swgroup = TEGRA_SWGROUP_GPU,
.regs = {
.smmu = {
/* read-only */
.reg = 0 xb98,
.bit = 8 ,
},
.la = {
.reg = 0 x3e8,
.shift = 0 ,
.mask = 0 xff,
.def = 0 x1a,
},
},
}, {
.id = 0 x89,
.name = "gpuswr2" ,
.swgroup = TEGRA_SWGROUP_GPU,
.regs = {
.smmu = {
/* read-only */
.reg = 0 xb98,
.bit = 9 ,
},
.la = {
.reg = 0 x3e8,
.shift = 16 ,
.mask = 0 xff,
.def = 0 x80,
},
},
},
};
static const struct tegra_smmu_swgroup tegra210_swgroups[] = {
{ .name = "afi" , .swgroup = TEGRA_SWGROUP_AFI, .reg = 0 x238 },
{ .name = "avpc" , .swgroup = TEGRA_SWGROUP_AVPC, .reg = 0 x23c },
{ .name = "dc" , .swgroup = TEGRA_SWGROUP_DC, .reg = 0 x240 },
{ .name = "dcb" , .swgroup = TEGRA_SWGROUP_DCB, .reg = 0 x244 },
{ .name = "hc" , .swgroup = TEGRA_SWGROUP_HC, .reg = 0 x250 },
{ .name = "hda" , .swgroup = TEGRA_SWGROUP_HDA, .reg = 0 x254 },
{ .name = "isp2" , .swgroup = TEGRA_SWGROUP_ISP2, .reg = 0 x258 },
{ .name = "nvenc" , .swgroup = TEGRA_SWGROUP_NVENC, .reg = 0 x264 },
{ .name = "nv" , .swgroup = TEGRA_SWGROUP_NV, .reg = 0 x268 },
{ .name = "nv2" , .swgroup = TEGRA_SWGROUP_NV2, .reg = 0 x26c },
{ .name = "ppcs" , .swgroup = TEGRA_SWGROUP_PPCS, .reg = 0 x270 },
{ .name = "sata" , .swgroup = TEGRA_SWGROUP_SATA, .reg = 0 x274 },
{ .name = "vi" , .swgroup = TEGRA_SWGROUP_VI, .reg = 0 x280 },
{ .name = "vic" , .swgroup = TEGRA_SWGROUP_VIC, .reg = 0 x284 },
{ .name = "xusb_host" , .swgroup = TEGRA_SWGROUP_XUSB_HOST, .reg = 0 x288 },
{ .name = "xusb_dev" , .swgroup = TEGRA_SWGROUP_XUSB_DEV, .reg = 0 x28c },
{ .name = "a9avp" , .swgroup = TEGRA_SWGROUP_A9AVP, .reg = 0 x290 },
{ .name = "tsec" , .swgroup = TEGRA_SWGROUP_TSEC, .reg = 0 x294 },
{ .name = "ppcs1" , .swgroup = TEGRA_SWGROUP_PPCS1, .reg = 0 x298 },
{ .name = "dc1" , .swgroup = TEGRA_SWGROUP_DC1, .reg = 0 xa88 },
{ .name = "sdmmc1a" , .swgroup = TEGRA_SWGROUP_SDMMC1A, .reg = 0 xa94 },
{ .name = "sdmmc2a" , .swgroup = TEGRA_SWGROUP_SDMMC2A, .reg = 0 xa98 },
{ .name = "sdmmc3a" , .swgroup = TEGRA_SWGROUP_SDMMC3A, .reg = 0 xa9c },
{ .name = "sdmmc4a" , .swgroup = TEGRA_SWGROUP_SDMMC4A, .reg = 0 xaa0 },
{ .name = "isp2b" , .swgroup = TEGRA_SWGROUP_ISP2B, .reg = 0 xaa4 },
{ .name = "gpu" , .swgroup = TEGRA_SWGROUP_GPU, .reg = 0 xaac },
{ .name = "ppcs2" , .swgroup = TEGRA_SWGROUP_PPCS2, .reg = 0 xab0 },
{ .name = "nvdec" , .swgroup = TEGRA_SWGROUP_NVDEC, .reg = 0 xab4 },
{ .name = "ape" , .swgroup = TEGRA_SWGROUP_APE, .reg = 0 xab8 },
{ .name = "se" , .swgroup = TEGRA_SWGROUP_SE, .reg = 0 xabc },
{ .name = "nvjpg" , .swgroup = TEGRA_SWGROUP_NVJPG, .reg = 0 xac0 },
{ .name = "hc1" , .swgroup = TEGRA_SWGROUP_HC1, .reg = 0 xac4 },
{ .name = "se1" , .swgroup = TEGRA_SWGROUP_SE1, .reg = 0 xac8 },
{ .name = "axiap" , .swgroup = TEGRA_SWGROUP_AXIAP, .reg = 0 xacc },
{ .name = "etr" , .swgroup = TEGRA_SWGROUP_ETR, .reg = 0 xad0 },
{ .name = "tsecb" , .swgroup = TEGRA_SWGROUP_TSECB, .reg = 0 xad4 },
{ .name = "tsec1" , .swgroup = TEGRA_SWGROUP_TSEC1, .reg = 0 xad8 },
{ .name = "tsecb1" , .swgroup = TEGRA_SWGROUP_TSECB1, .reg = 0 xadc },
{ .name = "nvdec1" , .swgroup = TEGRA_SWGROUP_NVDEC1, .reg = 0 xae0 },
};
static const unsigned int tegra210_group_display[] = {
TEGRA_SWGROUP_DC,
TEGRA_SWGROUP_DCB,
};
static const struct tegra_smmu_group_soc tegra210_groups[] = {
{
.name = "display" ,
.swgroups = tegra210_group_display,
.num_swgroups = ARRAY_SIZE(tegra210_group_display),
},
};
static const struct tegra_smmu_soc tegra210_smmu_soc = {
.clients = tegra210_mc_clients,
.num_clients = ARRAY_SIZE(tegra210_mc_clients),
.swgroups = tegra210_swgroups,
.num_swgroups = ARRAY_SIZE(tegra210_swgroups),
.groups = tegra210_groups,
.num_groups = ARRAY_SIZE(tegra210_groups),
.supports_round_robin_arbitration = true ,
.supports_request_limit = true ,
.num_tlb_lines = 48 ,
.num_asids = 128 ,
};
#define TEGRA210_MC_RESET(_name, _control, _status, _bit) \
{ \
.name = #_ name, \
.id = TEGRA210_MC_RESET_## _name, \
.control = _control, \
.status = _status, \
.bit = _bit, \
}
static const struct tegra_mc_reset tegra210_mc_resets[] = {
TEGRA210_MC_RESET(AFI, 0 x200, 0 x204, 0 ),
TEGRA210_MC_RESET(AVPC, 0 x200, 0 x204, 1 ),
TEGRA210_MC_RESET(DC, 0 x200, 0 x204, 2 ),
TEGRA210_MC_RESET(DCB, 0 x200, 0 x204, 3 ),
TEGRA210_MC_RESET(HC, 0 x200, 0 x204, 6 ),
TEGRA210_MC_RESET(HDA, 0 x200, 0 x204, 7 ),
TEGRA210_MC_RESET(ISP2, 0 x200, 0 x204, 8 ),
TEGRA210_MC_RESET(MPCORE, 0 x200, 0 x204, 9 ),
TEGRA210_MC_RESET(NVENC, 0 x200, 0 x204, 11 ),
TEGRA210_MC_RESET(PPCS, 0 x200, 0 x204, 14 ),
TEGRA210_MC_RESET(SATA, 0 x200, 0 x204, 15 ),
TEGRA210_MC_RESET(VI, 0 x200, 0 x204, 17 ),
TEGRA210_MC_RESET(VIC, 0 x200, 0 x204, 18 ),
TEGRA210_MC_RESET(XUSB_HOST, 0 x200, 0 x204, 19 ),
TEGRA210_MC_RESET(XUSB_DEV, 0 x200, 0 x204, 20 ),
TEGRA210_MC_RESET(A9AVP, 0 x200, 0 x204, 21 ),
TEGRA210_MC_RESET(TSEC, 0 x200, 0 x204, 22 ),
TEGRA210_MC_RESET(SDMMC1, 0 x200, 0 x204, 29 ),
TEGRA210_MC_RESET(SDMMC2, 0 x200, 0 x204, 30 ),
TEGRA210_MC_RESET(SDMMC3, 0 x200, 0 x204, 31 ),
TEGRA210_MC_RESET(SDMMC4, 0 x970, 0 x974, 0 ),
TEGRA210_MC_RESET(ISP2B, 0 x970, 0 x974, 1 ),
TEGRA210_MC_RESET(GPU, 0 x970, 0 x974, 2 ),
TEGRA210_MC_RESET(NVDEC, 0 x970, 0 x974, 5 ),
TEGRA210_MC_RESET(APE, 0 x970, 0 x974, 6 ),
TEGRA210_MC_RESET(SE, 0 x970, 0 x974, 7 ),
TEGRA210_MC_RESET(NVJPG, 0 x970, 0 x974, 8 ),
TEGRA210_MC_RESET(AXIAP, 0 x970, 0 x974, 11 ),
TEGRA210_MC_RESET(ETR, 0 x970, 0 x974, 12 ),
TEGRA210_MC_RESET(TSECB, 0 x970, 0 x974, 13 ),
};
const struct tegra_mc_soc tegra210_mc_soc = {
.clients = tegra210_mc_clients,
.num_clients = ARRAY_SIZE(tegra210_mc_clients),
.num_address_bits = 34 ,
.atom_size = 64 ,
.client_id_mask = 0 xff,
.smmu = &tegra210_smmu_soc,
.intmask = MC_INT_DECERR_MTS | MC_INT_SECERR_SEC | MC_INT_DECERR_VPR |
MC_INT_INVALID_APB_ASID_UPDATE | MC_INT_INVALID_SMMU_PAGE |
MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM,
.reset_ops = &tegra_mc_reset_ops_common,
.resets = tegra210_mc_resets,
.num_resets = ARRAY_SIZE(tegra210_mc_resets),
.ops = &tegra30_mc_ops,
};
Messung V0.5 in Prozent C=97 H=93 G=94
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-06-08)
¤
*© Formatika GbR, Deutschland