| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2015, NVIDIA Corporation. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 6 | | - * published by the Free Software Foundation. |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | #ifndef TEGRA_VIC_H |
|---|
| .. | .. |
|---|
| 17 | 14 | |
|---|
| 18 | 15 | /* VIC registers */ |
|---|
| 19 | 16 | |
|---|
| 17 | +#define VIC_THI_STREAMID0 0x00000030 |
|---|
| 18 | +#define VIC_THI_STREAMID1 0x00000034 |
|---|
| 19 | + |
|---|
| 20 | 20 | #define NV_PVIC_MISC_PRI_VIC_CG 0x000016d0 |
|---|
| 21 | 21 | #define CG_IDLE_CG_DLY_CNT(val) ((val & 0x3f) << 0) |
|---|
| 22 | 22 | #define CG_IDLE_CG_EN (1 << 6) |
|---|
| 23 | 23 | #define CG_WAKEUP_DLY_CNT(val) ((val & 0xf) << 16) |
|---|
| 24 | 24 | |
|---|
| 25 | +#define VIC_TFBIF_TRANSCFG 0x00002044 |
|---|
| 26 | +#define TRANSCFG_ATT(i, v) (((v) & 0x3) << (i * 4)) |
|---|
| 27 | +#define TRANSCFG_SID_HW 0 |
|---|
| 28 | +#define TRANSCFG_SID_PHY 1 |
|---|
| 29 | +#define TRANSCFG_SID_FALCON 2 |
|---|
| 30 | + |
|---|
| 25 | 31 | /* Firmware offsets */ |
|---|
| 26 | 32 | |
|---|
| 27 | 33 | #define VIC_UCODE_FCE_HEADER_OFFSET (6*4) |
|---|