From: Mario Six Date: Fri, 27 Apr 2018 14:53:38 +0200 Subject: [U-Boot] [PATCH v2 2/3] mpc83xx/pci: Register IMMR region In-Reply-To: <20180427125339.1308-1-mario.six@gdsys.cc> References: <20180427125339.1308-1-mario.six@gdsys.cc> Message-ID: <20180427125339.1308-2-mario.six@gdsys.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Register the IMMR region as a PCI region when PCI is used on MPC83xx. Signed-off-by: Mario Six --- v1 -> v2: No changes --- 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 a2e829608a..37ca09d76b 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -902,6 +902,11 @@ static int decode_regions(struct pci_controller *hose, ofnode parent_node, base, 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