OPAL: Add OPAL boot entry address to device tree
Needed for creating OPAL core file.
Sample output:
sys/firmware/devicetree/base/ibm,opal # lsprop
...
opal-boot-address
30002560
...
[oliver: rebased]
@@ -375,6 +375,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
@@ -404,6 +405,7 @@ void add_opal_node(void)
dt_add_property_cells(opal_node, "opal-msg-size", OPAL_MSG_SIZE);
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 */
