mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
nvadsp: Add provision to specify ADSP ELF name
Provision is added to specify ADSP ELF name from DT, using prop 'nvidia,adsp_elf'. This will be picked from /lib/firmware/ when ADSP boots in backdoor mode. Default name remains "adsp.elf", if the prop is not specified. Bug 200746669 Bug 200773359 Change-Id: Ie5a4ba60fa2c049b7895967326a325257a65bb82 Signed-off-by: Viswanath L <viswanathl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2662909 Reviewed-by: Mohan Kumar D <mkumard@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Asha Talambedu <atalambedu@nvidia.com> Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Sharad Gupta <sharadg@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Laxman Dewangan
parent
35393d7615
commit
a99d68a86e
@@ -263,6 +263,7 @@ static int __init nvadsp_parse_dt(struct platform_device *pdev)
|
||||
{
|
||||
struct nvadsp_drv_data *drv_data = platform_get_drvdata(pdev);
|
||||
struct device *dev = &pdev->dev;
|
||||
const char *adsp_elf;
|
||||
u32 *adsp_reset;
|
||||
u32 *adsp_mem;
|
||||
int iter;
|
||||
@@ -287,6 +288,12 @@ static int __init nvadsp_parse_dt(struct platform_device *pdev)
|
||||
}
|
||||
}
|
||||
|
||||
if (!of_property_read_string(dev->of_node,
|
||||
"nvidia,adsp_elf", &adsp_elf))
|
||||
strcpy(drv_data->adsp_elf, adsp_elf);
|
||||
else
|
||||
strcpy(drv_data->adsp_elf, NVADSP_ELF);
|
||||
|
||||
drv_data->adsp_unit_fpga = of_property_read_bool(dev->of_node,
|
||||
"nvidia,adsp_unit_fpga");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user