mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvadsp: Make function ptrs available in virt mode
Some device specific programming was moved from os.c to dev-t18x.c as function pointers. Move the pointer assignments so that they are not skipped in virt mode. Bug 3682950 Change-Id: I8f2d0bde8cd37507d3bdfcd9ac7fb9fe344b891f Signed-off-by: Viswanath L <viswanathl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3128039 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8090af66dd
commit
52d1f0e2c1
@@ -629,6 +629,11 @@ static int nvadsp_dev_t18x_init(struct platform_device *pdev)
|
||||
struct device *dev = &pdev->dev;
|
||||
int ret = 0;
|
||||
|
||||
d->set_boot_vec = __set_boot_vec_t18x;
|
||||
d->set_boot_freqs = __set_boot_freqs_t18x;
|
||||
d->check_wfi_status = __check_wfi_status_t18x;
|
||||
d->dump_core_state = __dump_core_state_t18x;
|
||||
|
||||
#ifdef CONFIG_TEGRA_VIRT_AUDIO_IVC
|
||||
|
||||
if (is_tegra_hypervisor_mode()) {
|
||||
@@ -639,11 +644,6 @@ static int nvadsp_dev_t18x_init(struct platform_device *pdev)
|
||||
}
|
||||
#endif
|
||||
|
||||
d->set_boot_vec = __set_boot_vec_t18x;
|
||||
d->set_boot_freqs = __set_boot_freqs_t18x;
|
||||
d->check_wfi_status = __check_wfi_status_t18x;
|
||||
d->dump_core_state = __dump_core_state_t18x;
|
||||
|
||||
d->assert_adsp = __assert_t18x_adsp;
|
||||
d->deassert_adsp = __deassert_t18x_adsp;
|
||||
d->adspall_rst = devm_reset_control_get(dev, "adspall");
|
||||
|
||||
Reference in New Issue
Block a user