diff options
Diffstat (limited to 'common/fdt_decode.c')
-rw-r--r-- | common/fdt_decode.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/fdt_decode.c b/common/fdt_decode.c index 1bfee8c3b66..686b48c0cb5 100644 --- a/common/fdt_decode.c +++ b/common/fdt_decode.c @@ -563,6 +563,15 @@ int fdt_decode_sdmmc(const void *blob, int node, struct fdt_sdmmc *config) return 0; } +const char *fdt_decode_get_model(const void *blob) +{ + const char *model; + + model = fdt_getprop(blob, 0, "model", NULL); + return model ? model : "<not defined>"; +} + + char *fdt_decode_get_config_string(const void *blob, const char *prop_name) { const char *nodep; |