mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvadsp: Use helper function __tegra_get_chip_id
tegra_get_chip_id() API is not exported from core kernel, so use __tegra_get_chip_id() from fuse-helper.h instead. Bug 4416828 Bug 4164138 Bug 3682950 Change-Id: Ieb6fde256c9fd7b5dfbd6975a030536834042cc5 Signed-off-by: Viswanath L <viswanathl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3078396 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
289095dfc6
commit
19c895951f
@@ -13,7 +13,7 @@
|
||||
#include <linux/firmware.h>
|
||||
#include <linux/tegra_nvadsp.h>
|
||||
#include <linux/version.h>
|
||||
#include <soc/tegra/fuse.h>
|
||||
#include <soc/tegra/fuse-helper.h>
|
||||
#include <soc/tegra/virt/hv-ivc.h>
|
||||
#include <linux/elf.h>
|
||||
#include <linux/device.h>
|
||||
@@ -111,9 +111,6 @@ struct nvadsp_mappings {
|
||||
int len;
|
||||
};
|
||||
|
||||
extern u8 tegra_get_major_rev(void);
|
||||
extern u8 tegra_get_minor_rev(void);
|
||||
|
||||
static struct nvadsp_mappings adsp_map[NM_LOAD_MAPPINGS];
|
||||
static int map_idx;
|
||||
static struct nvadsp_mbox adsp_com_mbox;
|
||||
@@ -889,9 +886,9 @@ static void nvadsp_set_shared_mem(struct platform_device *pdev,
|
||||
priv.logger.dev = dev;
|
||||
priv.adsp_os_fw_loaded = true;
|
||||
|
||||
chip_id = (u32)tegra_get_chip_id();
|
||||
chip_id = (u32)__tegra_get_chip_id();
|
||||
if (drv_data->chip_data->chipid_ext)
|
||||
chip_id = (chip_id << 4) | tegra_get_major_rev();
|
||||
chip_id = (chip_id << 4) | drv_data->chip_data->chipid_ext;
|
||||
|
||||
os_args = &shared_mem->os_args;
|
||||
/* Chip id info is communicated twice to ADSP
|
||||
|
||||
Reference in New Issue
Block a user