]> git.baikalelectronics.ru Git - uboot.git/commit
pci: pcie_dw_rockchip: Disable unused BARs of the root complex
authorJon Lin <jon.lin@rock-chips.com>
Sat, 22 Jul 2023 13:30:20 +0000 (13:30 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 28 Jul 2023 10:45:03 +0000 (18:45 +0800)
commitc053a077bca2f5ea4bfed9d31e8a8492625dba1d
tree130cf9e5f5667ee92f76198f38f8fa6eff6c9d4e
parent5d6411ea033829bf74648ff38130c27db97bc7db
pci: pcie_dw_rockchip: Disable unused BARs of the root complex

The Root Complex BARs default to claim the full 1 GiB memory region on
RK3568, leaving no space for any attached device.

Fix this by disable the unused BAR 0 and BAR 1 of the RC.

Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
[jonas@kwiboo.se: Move to rk_pcie_configure and use PCI_BASE_ADDRESS_0/1 const]
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/pci/pcie_dw_rockchip.c