diff --git a/common/oftree.c b/common/oftree.c index a38dfff..5bb5420 100644 --- a/common/oftree.c +++ b/common/oftree.c @@ -13,6 +13,7 @@ #include #include #include +#include #define MAX_LEVEL 32 /* how deeply nested we will go */ @@ -158,6 +159,10 @@ if (err) return err; + of_property_write_string(node, "reset-source", reset_source_name()); + of_property_write_u32(node, "reset-source-instance", + reset_source_get_instance()); + return of_fixup_bootargs_bootsource(root, node); }