mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
- Update license of all files in nvadsp that will be used - Remove kernel version checks in the code Bug 4164138 Bug 3682950 Change-Id: Ie1f9ba95c1d46c3dd9bc5614e502b1b444484df6 Signed-off-by: Viswanath L <viswanathl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2980528 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/**
|
|
* Copyright (c) 2014-2023, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __TEGRA_NVADSP_AMC_H
|
|
#define __TEGRA_NVADSP_AMC_H
|
|
|
|
#define AMC_CONFIG 0x00
|
|
#define AMC_CONFIG_ALIASING (1 << 0)
|
|
#define AMC_CONFIG_CARVEOUT (1 << 1)
|
|
#define AMC_CONFIG_ERR_RESP (1 << 2)
|
|
#define AMC_INT_STATUS (0x04)
|
|
#define AMC_INT_STATUS_ARAM (1 << 0)
|
|
#define AMC_INT_STATUS_REG (1 << 1)
|
|
#define AMC_INT_MASK 0x08
|
|
#define AMC_INT_SET 0x0C
|
|
#define AMC_INT_CLR 0x10
|
|
#define AMC_INT_INVALID_ARAM_ACCESS (1 << 0)
|
|
#define AMC_INT_INVALID_REG_ACCESS (1 << 1)
|
|
#define AMC_ERROR_ADDR 0x14
|
|
|
|
#define AMC_ERROR_ADDR_IGNORE SZ_4K
|
|
|
|
#define AMC_REGS 0x1000
|
|
|
|
#define AMC_ARAM_APERTURE_BASE 0x28
|
|
#define AMC_ARAM_APERTURE_DATA_START 0x800
|
|
#define AMC_ARAM_APERTURE_DATA_LEN 0x800 /* 2KB */
|
|
|
|
#define AMC_ARAM_ALIAS0 0x00400000
|
|
#define AMC_ARAM_ALIAS1 0x00500000
|
|
#define AMC_ARAM_ALIAS2 0x00600000
|
|
#define AMC_ARAM_ALIAS3 0x00700000
|
|
|
|
#define AMC_ARAM_START 0
|
|
#define AMC_ARAM_SIZE SZ_64K
|
|
#define AMC_ARAM_WSIZE (AMC_ARAM_SIZE >> 2)
|
|
|
|
int nvadsp_aram_save(struct platform_device *pdev);
|
|
int nvadsp_aram_restore(struct platform_device *pdev);
|
|
int nvadsp_amc_save(struct platform_device *pdev);
|
|
int nvadsp_amc_restore(struct platform_device *pdev);
|
|
|
|
#endif /* __TEGRA_NVADSP_AMC_H */
|