Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / tegra / vic.h
blobbe898bee6a576a69b6c99edaf126480b531b32b8
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2015, NVIDIA Corporation.
4 */
6 #ifndef TEGRA_VIC_H
7 #define TEGRA_VIC_H
9 /* VIC methods */
11 #define VIC_SET_APPLICATION_ID 0x00000200
12 #define VIC_SET_FCE_UCODE_SIZE 0x0000071C
13 #define VIC_SET_FCE_UCODE_OFFSET 0x0000072C
15 /* VIC registers */
17 #define VIC_THI_STREAMID0 0x00000030
18 #define VIC_THI_STREAMID1 0x00000034
20 #define NV_PVIC_MISC_PRI_VIC_CG 0x000016d0
21 #define CG_IDLE_CG_DLY_CNT(val) ((val & 0x3f) << 0)
22 #define CG_IDLE_CG_EN (1 << 6)
23 #define CG_WAKEUP_DLY_CNT(val) ((val & 0xf) << 16)
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
31 /* Firmware offsets */
33 #define VIC_UCODE_FCE_HEADER_OFFSET (6*4)
34 #define VIC_UCODE_FCE_DATA_OFFSET (7*4)
35 #define FCE_UCODE_SIZE_OFFSET (2*4)
37 #endif /* TEGRA_VIC_H */