mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
As long as the subcomponents in the engine are active, we consider the engine as active and the engine should export active signal to the actmon. Bug 4179140 Signed-off-by: Johnny Liu <johnliu@nvidia.com> Change-Id: Ic4cccf29e8ac87da24f6fe3bf1f1e93a11511762 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2930445 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2015-2023, NVIDIA Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef TEGRA_VIC_H
|
|
#define TEGRA_VIC_H
|
|
|
|
/* VIC methods */
|
|
|
|
#define VIC_SET_FCE_UCODE_SIZE 0x0000071C
|
|
#define VIC_SET_FCE_UCODE_OFFSET 0x0000072C
|
|
|
|
/* VIC registers */
|
|
|
|
#define NV_PVIC_MISC_PRI_VIC_CG 0x000016d0
|
|
#define CG_IDLE_CG_DLY_CNT(val) ((val & 0x3f) << 0)
|
|
#define CG_IDLE_CG_EN (1 << 6)
|
|
#define CG_WAKEUP_DLY_CNT(val) ((val & 0xf) << 16)
|
|
|
|
#define NV_PVIC_TFBIF_ACTMON_ACTIVE_MASK 0x0000204c
|
|
#define NV_PVIC_TFBIF_ACTMON_ACTIVE_BORPS 0x00002050
|
|
#define NV_PVIC_TFBIF_ACTMON_ACTIVE_WEIGHT 0x00002054
|
|
|
|
#define VIC_TFBIF_ACTMON_ACTIVE_MASK_STARVED BIT(0)
|
|
#define VIC_TFBIF_ACTMON_ACTIVE_MASK_STALLED BIT(1)
|
|
#define VIC_TFBIF_ACTMON_ACTIVE_MASK_DELAYED BIT(2)
|
|
#define VIC_TFBIF_ACTMON_ACTIVE_BORPS_ACTIVE BIT(7)
|
|
|
|
#define VIC_TFBIF_TRANSCFG 0x00002044
|
|
|
|
/* Firmware offsets */
|
|
|
|
#define VIC_UCODE_FCE_HEADER_OFFSET (6*4)
|
|
#define VIC_UCODE_FCE_DATA_OFFSET (7*4)
|
|
#define FCE_UCODE_SIZE_OFFSET (2*4)
|
|
|
|
/*
|
|
* VIC AXI read bus is 256-bits width
|
|
* VIC AXI write bus is 256-bits width
|
|
*/
|
|
#define VIC_AXI_RW_BANDWIDTH 512
|
|
|
|
#endif /* TEGRA_VIC_H */
|