mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
nvadsp: Move DRAM map to custom property
Move DRAM map DT entries from 'reg' to a new custom property "nvidia,dram_map". This is to restrict the use of 'reg' only for actual registers, which will be tightly controlled by 'ranges' property. Bug 4164138 Bug 3682950 Change-Id: Ia535d136b15a0ba6d7758ed3a2d70ace2c8cf763 Signed-off-by: Viswanath L <viswanathl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2983549 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
fa4a7643c5
commit
e45c6bc8a9
@@ -32,12 +32,6 @@ enum {
|
||||
APE_MAX_REG
|
||||
};
|
||||
|
||||
enum {
|
||||
ADSP_DRAM1,
|
||||
ADSP_DRAM2,
|
||||
ADSP_MAX_DRAM_MAP
|
||||
};
|
||||
|
||||
/*
|
||||
* Note: These enums should be aligned to the adsp_mem node mentioned in the
|
||||
* device tree
|
||||
@@ -82,6 +76,14 @@ enum adsp_evp_dt {
|
||||
#define NVADSP_ELF "adsp.elf"
|
||||
#define MAX_FW_STR 30
|
||||
|
||||
/* Max no. of entries in "nvidia,cluster_mem" */
|
||||
#define MAX_DRAM_MAP 2
|
||||
|
||||
struct nvadsp_reg_map {
|
||||
u64 addr;
|
||||
u64 size;
|
||||
};
|
||||
|
||||
enum nvadsp_virqs {
|
||||
MBOX_SEND_VIRQ,
|
||||
MBOX_RECV_VIRQ,
|
||||
@@ -157,7 +159,6 @@ struct nvadsp_drv_data {
|
||||
void __iomem **base_regs;
|
||||
void __iomem **base_regs_saved;
|
||||
struct platform_device *pdev;
|
||||
struct resource *dram_region[ADSP_MAX_DRAM_MAP];
|
||||
struct hwmbox_queue hwmbox_send_queue;
|
||||
|
||||
struct nvadsp_mbox **mboxes;
|
||||
@@ -245,6 +246,9 @@ struct nvadsp_drv_data {
|
||||
|
||||
/* "nvidia,cluster_mem" */
|
||||
struct nvadsp_cluster_mem cluster_mem[MAX_CLUSTER_MEM];
|
||||
|
||||
/* "nvidia,dram_map" */
|
||||
struct nvadsp_reg_map dram_map[MAX_DRAM_MAP];
|
||||
};
|
||||
|
||||
#define ADSP_CONFIG 0x04
|
||||
|
||||
Reference in New Issue
Block a user