fix(gic): add support for passing GIC data from DT in boot flow

This change allows GIC information parsed from DT to be passed and
utilised in the boot flow.

Change-Id: Ifc4ababba02a43b82704f4d8ea2f7b8e085a12d4
Signed-off-by: Jerry Wang <Jerry.Wang4@arm.com>
diff --git a/src/init.c b/src/init.c
index b536e04..8b73bed 100644
--- a/src/init.c
+++ b/src/init.c
@@ -160,10 +160,6 @@
 		panic("Could not initialize IOMMUs.");
 	}
 
-	if (!fdt_unmap(&fdt, mm_stage1_locked, &ppool)) {
-		panic("Unable to unmap FDT.");
-	}
-
 	cpu_module_init(params->cpu_ids, params->cpu_count);
 
 	if (!plat_interrupts_controller_driver_init(&fdt, mm_stage1_locked,
@@ -171,6 +167,10 @@
 		panic("Could not initialize Interrupt Controller driver.");
 	}
 
+	if (!fdt_unmap(&fdt, mm_stage1_locked, &ppool)) {
+		panic("Unable to unmap FDT.");
+	}
+
 	/* Load all VMs. */
 	update.reserved_ranges_count = 0;
 	if (!load_vms(mm_stage1_locked, manifest, &cpio, params, &update,