vic.c (58ef3aeb9ac3b2c542d85a2e6b4af8ff12c09b68) vic.c (59e520a695e7c775d787d7108becc2662bde8061)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2015, NVIDIA Corporation.
4 */
5
6#include <linux/clk.h>
7#include <linux/delay.h>
8#include <linux/host1x.h>

--- 103 unchanged lines hidden (view full) ---

112
113 value = TRANSCFG_ATT(1, TRANSCFG_SID_FALCON) |
114 TRANSCFG_ATT(0, TRANSCFG_SID_HW);
115 vic_writel(vic, value, VIC_TFBIF_TRANSCFG);
116
117 if (spec->num_ids > 0) {
118 value = spec->ids[0] & 0xffff;
119
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2015, NVIDIA Corporation.
4 */
5
6#include <linux/clk.h>
7#include <linux/delay.h>
8#include <linux/host1x.h>

--- 103 unchanged lines hidden (view full) ---

112
113 value = TRANSCFG_ATT(1, TRANSCFG_SID_FALCON) |
114 TRANSCFG_ATT(0, TRANSCFG_SID_HW);
115 vic_writel(vic, value, VIC_TFBIF_TRANSCFG);
116
117 if (spec->num_ids > 0) {
118 value = spec->ids[0] & 0xffff;
119
120 /*
121 * STREAMID0 is used for input/output buffers.
122 * Initialize it to SID_VIC in case context isolation
123 * is not enabled, and SID_VIC is used for both firmware
124 * and data buffers.
125 *
126 * If context isolation is enabled, it will be
127 * overridden by the SETSTREAMID opcode as part of
128 * each job.
129 */
120 vic_writel(vic, value, VIC_THI_STREAMID0);
130 vic_writel(vic, value, VIC_THI_STREAMID0);
131
132 /* STREAMID1 is used for firmware loading. */
121 vic_writel(vic, value, VIC_THI_STREAMID1);
122 }
123 }
124#endif
125
126 /* setup clockgating registers */
127 vic_writel(vic, CG_IDLE_CG_DLY_CNT(4) |
128 CG_IDLE_CG_EN |

--- 415 unchanged lines hidden ---
133 vic_writel(vic, value, VIC_THI_STREAMID1);
134 }
135 }
136#endif
137
138 /* setup clockgating registers */
139 vic_writel(vic, CG_IDLE_CG_DLY_CNT(4) |
140 CG_IDLE_CG_EN |

--- 415 unchanged lines hidden ---