diff options
-rw-r--r-- | common/oftree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/oftree.c b/common/oftree.c index a38dfff293..5bb5420a78 100644 --- a/common/oftree.c +++ b/common/oftree.c @@ -13,6 +13,7 @@ #include <boot.h> #include <bootsource.h> #include <i2c/i2c.h> +#include <reset_source.h> #define MAX_LEVEL 32 /* how deeply nested we will go */ @@ -158,6 +159,10 @@ static int of_fixup_bootargs(struct device_node *root, void *unused) 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); } |