[v6,01/22] OPAL: Add OPAL boot entry address to device tree
diff mbox series

Message ID 20181128110244.17664-2-hegdevasant@linux.vnet.ibm.com
State Superseded
Headers show
  • MPIPL support
Related show


Context Check Description
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied

Commit Message

Vasant Hegde Nov. 28, 2018, 11:02 a.m. UTC
Add OPAL boot entry address to device tree. Needed for creating
OPAL core file.

Sample output:
  sys/firmware/devicetree/base/ibm,opal # lsprop
		 00000000 30002560

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
 core/opal.c | 2 ++
 1 file changed, 2 insertions(+)

diff mbox series

diff --git a/core/opal.c b/core/opal.c
index 63a08510f..c1c5f20b9 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -379,6 +379,7 @@  void add_opal_node(void)
 	uint64_t base, entry, size;
 	extern uint32_t opal_entry;
+	extern uint32_t boot_entry;
 	struct dt_node *opal_event;
 	/* XXX TODO: Reorg this. We should create the base OPAL
@@ -408,6 +409,7 @@  void add_opal_node(void)
 	dt_add_property_cells(opal_node, "opal-msg-size", sizeof(struct opal_msg));
 	dt_add_property_u64(opal_node, "opal-base-address", base);
 	dt_add_property_u64(opal_node, "opal-entry-address", entry);
+	dt_add_property_u64(opal_node, "opal-boot-address", (uint64_t)&boot_entry);
 	dt_add_property_u64(opal_node, "opal-runtime-size", size);
 	/* Add irqchip interrupt controller */