mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvethernet: Get HV window base from DT
Issue: SID needs to be programmed through HV window to get it reflected in controller register space. Currently its programmed through RM window. Fix: Get HV window base address from DT. Bug 3358505 Bug 200761024 Change-Id: Ia878e1d4e7f81e4c6531de00b87a1804238dde9e Signed-off-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2582063 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
6af51eded8
commit
76fe45ab4f
@@ -5046,6 +5046,19 @@ static int ether_init_plat_resources(struct platform_device *pdev,
|
||||
return PTR_ERR(osi_core->base);
|
||||
}
|
||||
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
|
||||
"hv-base");
|
||||
if (res) {
|
||||
osi_core->hv_base = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(osi_core->hv_base)) {
|
||||
dev_err(&pdev->dev, "failed to ioremap HV address\n");
|
||||
return PTR_ERR(osi_core->hv_base);
|
||||
}
|
||||
} else {
|
||||
osi_core->hv_base = NULL;
|
||||
dev_dbg(&pdev->dev, "HV base address is not present\n");
|
||||
}
|
||||
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
|
||||
"dma_base");
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user