Lines Matching +full:reg +full:- +full:shift
1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <dt-bindings/memory/tegra124-mc.h>
21 .reg = 0x34c,
22 .shift = 0,
33 .reg = 0x228,
37 .reg = 0x2e8,
38 .shift = 0,
49 .reg = 0x228,
53 .reg = 0x2f4,
54 .shift = 0,
65 .reg = 0x228,
69 .reg = 0x2e8,
70 .shift = 16,
81 .reg = 0x228,
85 .reg = 0x2f4,
86 .shift = 16,
97 .reg = 0x228,
101 .reg = 0x2ec,
102 .shift = 0,
113 .reg = 0x228,
117 .reg = 0x2f8,
118 .shift = 0,
129 .reg = 0x228,
133 .reg = 0x2e0,
134 .shift = 0,
145 .reg = 0x228,
149 .reg = 0x2e4,
150 .shift = 0,
161 .reg = 0x228,
165 .reg = 0x2f0,
166 .shift = 0,
177 .reg = 0x228,
181 .reg = 0x2fc,
182 .shift = 0,
193 .reg = 0x228,
197 .reg = 0x318,
198 .shift = 0,
209 .reg = 0x228,
213 .reg = 0x310,
214 .shift = 0,
225 .reg = 0x228,
229 .reg = 0x310,
230 .shift = 16,
241 .reg = 0x228,
245 .reg = 0x328,
246 .shift = 0,
257 .reg = 0x228,
261 .reg = 0x344,
262 .shift = 0,
273 .reg = 0x228,
277 .reg = 0x344,
278 .shift = 16,
289 .reg = 0x228,
293 .reg = 0x350,
294 .shift = 0,
305 .reg = 0x22c,
309 .reg = 0x354,
310 .shift = 0,
321 .reg = 0x22c,
325 .reg = 0x354,
326 .shift = 16,
337 .reg = 0x22c,
341 .reg = 0x358,
342 .shift = 0,
353 .reg = 0x22c,
357 .reg = 0x358,
358 .shift = 16,
369 .reg = 0x324,
370 .shift = 0,
381 .reg = 0x320,
382 .shift = 0,
393 .reg = 0x22c,
397 .reg = 0x328,
398 .shift = 16,
409 .reg = 0x22c,
413 .reg = 0x2e0,
414 .shift = 16,
425 .reg = 0x22c,
429 .reg = 0x2e4,
430 .shift = 16,
441 .reg = 0x22c,
445 .reg = 0x318,
446 .shift = 16,
457 .reg = 0x22c,
461 .reg = 0x314,
462 .shift = 0,
473 .reg = 0x324,
474 .shift = 16,
485 .reg = 0x320,
486 .shift = 16,
497 .reg = 0x22c,
501 .reg = 0x348,
502 .shift = 0,
513 .reg = 0x22c,
517 .reg = 0x348,
518 .shift = 16,
529 .reg = 0x22c,
533 .reg = 0x350,
534 .shift = 16,
545 .reg = 0x22c,
549 .reg = 0x35c,
550 .shift = 0,
561 .reg = 0x22c,
565 .reg = 0x35c,
566 .shift = 16,
577 .reg = 0x230,
581 .reg = 0x360,
582 .shift = 0,
593 .reg = 0x230,
597 .reg = 0x360,
598 .shift = 16,
609 .reg = 0x230,
613 .reg = 0x370,
614 .shift = 0,
625 .reg = 0x230,
629 .reg = 0x374,
630 .shift = 0,
641 .reg = 0x230,
645 .reg = 0x374,
646 .shift = 16,
657 .reg = 0x230,
661 .reg = 0x37c,
662 .shift = 0,
673 .reg = 0x230,
677 .reg = 0x37c,
678 .shift = 16,
689 .reg = 0x230,
693 .reg = 0x380,
694 .shift = 0,
705 .reg = 0x230,
709 .reg = 0x380,
710 .shift = 16,
721 .reg = 0x230,
725 .reg = 0x384,
726 .shift = 0,
737 .reg = 0x230,
741 .reg = 0x388,
742 .shift = 0,
753 .reg = 0x230,
757 .reg = 0x388,
758 .shift = 16,
769 .reg = 0x230,
773 .reg = 0x390,
774 .shift = 0,
785 .reg = 0x230,
789 .reg = 0x390,
790 .shift = 16,
801 .reg = 0x230,
805 .reg = 0x3a4,
806 .shift = 0,
817 .reg = 0x230,
821 .reg = 0x3a4,
822 .shift = 16,
833 /* read-only */
834 .reg = 0x230,
838 .reg = 0x3c8,
839 .shift = 0,
850 /* read-only */
851 .reg = 0x230,
855 .reg = 0x3c8,
856 .shift = 16,
867 .reg = 0x230,
871 .reg = 0x2f0,
872 .shift = 16,
883 .reg = 0x234,
887 .reg = 0x3b8,
888 .shift = 0,
899 .reg = 0x234,
903 .reg = 0x3bc,
904 .shift = 0,
915 .reg = 0x234,
919 .reg = 0x3c0,
920 .shift = 0,
931 .reg = 0x234,
935 .reg = 0x3c4,
936 .shift = 0,
947 .reg = 0x234,
951 .reg = 0x3b8,
952 .shift = 16,
963 .reg = 0x234,
967 .reg = 0x3bc,
968 .shift = 16,
979 .reg = 0x234,
983 .reg = 0x3c0,
984 .shift = 16,
995 .reg = 0x234,
999 .reg = 0x3c4,
1000 .shift = 16,
1011 .reg = 0x234,
1015 .reg = 0x394,
1016 .shift = 0,
1027 .reg = 0x234,
1031 .reg = 0x394,
1032 .shift = 16,
1043 .reg = 0x234,
1047 .reg = 0x398,
1048 .shift = 0,
1059 .reg = 0x234,
1063 .reg = 0x3c8,
1064 .shift = 0,
1073 { .name = "dc", .swgroup = TEGRA_SWGROUP_DC, .reg = 0x240 },
1074 { .name = "dcb", .swgroup = TEGRA_SWGROUP_DCB, .reg = 0x244 },
1075 { .name = "afi", .swgroup = TEGRA_SWGROUP_AFI, .reg = 0x238 },
1076 { .name = "avpc", .swgroup = TEGRA_SWGROUP_AVPC, .reg = 0x23c },
1077 { .name = "hda", .swgroup = TEGRA_SWGROUP_HDA, .reg = 0x254 },
1078 { .name = "hc", .swgroup = TEGRA_SWGROUP_HC, .reg = 0x250 },
1079 { .name = "msenc", .swgroup = TEGRA_SWGROUP_MSENC, .reg = 0x264 },
1080 { .name = "ppcs", .swgroup = TEGRA_SWGROUP_PPCS, .reg = 0x270 },
1081 { .name = "sata", .swgroup = TEGRA_SWGROUP_SATA, .reg = 0x274 },
1082 { .name = "vde", .swgroup = TEGRA_SWGROUP_VDE, .reg = 0x27c },
1083 { .name = "isp2", .swgroup = TEGRA_SWGROUP_ISP2, .reg = 0x258 },
1084 { .name = "xusb_host", .swgroup = TEGRA_SWGROUP_XUSB_HOST, .reg = 0x288 },
1085 { .name = "xusb_dev", .swgroup = TEGRA_SWGROUP_XUSB_DEV, .reg = 0x28c },
1086 { .name = "isp2b", .swgroup = TEGRA_SWGROUP_ISP2B, .reg = 0xaa4 },
1087 { .name = "tsec", .swgroup = TEGRA_SWGROUP_TSEC, .reg = 0x294 },
1088 { .name = "a9avp", .swgroup = TEGRA_SWGROUP_A9AVP, .reg = 0x290 },
1089 { .name = "gpu", .swgroup = TEGRA_SWGROUP_GPU, .reg = 0xaac },
1090 { .name = "sdmmc1a", .swgroup = TEGRA_SWGROUP_SDMMC1A, .reg = 0xa94 },
1091 { .name = "sdmmc2a", .swgroup = TEGRA_SWGROUP_SDMMC2A, .reg = 0xa98 },
1092 { .name = "sdmmc3a", .swgroup = TEGRA_SWGROUP_SDMMC3A, .reg = 0xa9c },
1093 { .name = "sdmmc4a", .swgroup = TEGRA_SWGROUP_SDMMC4A, .reg = 0xaa0 },
1094 { .name = "vic", .swgroup = TEGRA_SWGROUP_VIC, .reg = 0x284 },
1095 { .name = "vi", .swgroup = TEGRA_SWGROUP_VI, .reg = 0x280 },
1158 * ISO clients need to reserve extra bandwidth up-front because in tegra124_mc_icc_aggreate()
1177 unsigned int i, idx = spec->args[0]; in tegra124_mc_of_icc_xlate_extended()
1181 list_for_each_entry(node, &mc->provider.nodes, node_list) { in tegra124_mc_of_icc_xlate_extended()
1182 if (node->id != idx) in tegra124_mc_of_icc_xlate_extended()
1187 return ERR_PTR(-ENOMEM); in tegra124_mc_of_icc_xlate_extended()
1189 client = &mc->soc->clients[idx]; in tegra124_mc_of_icc_xlate_extended()
1190 ndata->node = node; in tegra124_mc_of_icc_xlate_extended()
1192 switch (client->swgroup) { in tegra124_mc_of_icc_xlate_extended()
1198 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in tegra124_mc_of_icc_xlate_extended()
1202 ndata->tag = TEGRA_MC_ICC_TAG_DEFAULT; in tegra124_mc_of_icc_xlate_extended()
1209 for (i = 0; i < mc->soc->num_clients; i++) { in tegra124_mc_of_icc_xlate_extended()
1210 if (mc->soc->clients[i].id == idx) in tegra124_mc_of_icc_xlate_extended()
1211 return ERR_PTR(-EPROBE_DEFER); in tegra124_mc_of_icc_xlate_extended()
1214 dev_err(mc->dev, "invalid ICC client ID %u\n", idx); in tegra124_mc_of_icc_xlate_extended()
1216 return ERR_PTR(-EINVAL); in tegra124_mc_of_icc_xlate_extended()