From b6c80356c72ce1dfce688a99d36db2ea47a744d8 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 8 Aug 2017 00:38:56 -0500 Subject: arm: Try to lookup the SOC name from dt/compatible Just ARM for now, but maybe this will become more generic and it will be possible to have the processor package name and description seperate, even for x86 and whatnot. Also perhaps work in Sockets/Threads/Cores information. Signed-off-by: Burt P --- includes/dt_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/dt_util.h b/includes/dt_util.h index b4506d19..7ef6808b 100644 --- a/includes/dt_util.h +++ b/includes/dt_util.h @@ -31,9 +31,9 @@ enum { DTP_DMAS, /* dma-specifier list */ }; -/* simplest, no aliases. +/* simplest, no aliases, doesn't require an existing dt. * use dtr_get_prop_str() for complete. */ -char* dtr_get_string(const char *p); +char* dtr_get_string(const char *p, int decode); typedef uint32_t dt_uint; /* big-endian */ -- cgit v1.2.3