[U-Boot] [PATCH 2/3] mpc83xx/pci: Register IMMR region
Mario Six
mario.six at gdsys.cc
Wed Mar 28 12:40:11 UTC 2018
Register the IMMR region as a PCI region when PCI is used on MPC83xx.
Signed-off-by: Mario Six <mario.six at gdsys.cc>
---
drivers/pci/pci-uclass.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index ad43e8a27c..0778705f76 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -898,6 +898,11 @@ static int decode_regions(struct pci_controller *hose, ofnode parent_node,
size, PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
#endif
+#if defined(MPC83xx) && defined(CONFIG_SYS_IMMR)
+ pci_set_region(hose->regions + hose->region_count++,
+ CONFIG_SYS_IMMR, CONFIG_SYS_IMMR, 0x100000,
+ PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
+#endif
return 0;
}
--
2.16.1
More information about the U-Boot
mailing list