summaryrefslogtreecommitdiff
path: root/host/arch/arm/lib/crossystem_arch.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/arch/arm/lib/crossystem_arch.c')
-rw-r--r--host/arch/arm/lib/crossystem_arch.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c
index ff59da15..76c6d3a1 100644
--- a/host/arch/arm/lib/crossystem_arch.c
+++ b/host/arch/arm/lib/crossystem_arch.c
@@ -50,26 +50,6 @@
#define SECTOR_SIZE 512
#define MAX_NMMCBLK 9
-typedef struct PlatformFamily {
- const char* compatible_string; /* Last string in FDT compatible entry */
- const char* platform_string; /* String to return */
-} PlatformFamily;
-
-/* Array of platform family names, terminated with a NULL entry */
-const PlatformFamily platform_family_array[] = {
- {"nvidia,tegra124", "Tegra5"},
- {"nvidia,tegra250", "Tegra2"},
- {"nvidia,tegra20", "Tegra2"},
- {"ti,omap4", "OMAP4"},
- {"ti,omap3", "OMAP3"},
- {"samsung,exynos4210", "EXYNOS4"},
- {"samsung,exynos5250", "EXYNOS5"},
- {"samsung,exynos5420", "EXYNOS5"},
- {"qcom,ipq8064", "IPQ8064"},
- /* Terminate with NULL entry */
- {NULL, NULL}
-};
-
static int InAndroid() {
int fd;
struct stat s;
@@ -201,37 +181,6 @@ static char * ReadFdtString(const char *property) {
return (char *)str;
}
-static char * ReadFdtPlatformFamily(void) {
- char *compat = NULL;
- char *s;
- const PlatformFamily* p;
- size_t size = 0;
- int slen;
-
- if(ReadFdtBlock(FDT_COMPATIBLE_PATH, (void **)&compat, &size))
- return NULL;
-
- if (size > 0)
- compat[size-1] = 0;
-
- /* Check each null separated string in compatible against the family array */
- s = compat;
- while ((s-compat) < size) {
- slen = strlen(s);
- for (p = platform_family_array; p->compatible_string; p++) {
- if (!strcmp(s, p->compatible_string)) {
- free(compat);
- return strdup(p->platform_string);
- }
- }
- s += slen + 1;
- }
-
- /* No recognized 'compatible' entry found */
- free(compat);
- return NULL;
-}
-
static int VbGetPlatformGpioStatus(const char* name) {
char gpio_name[FNAME_SIZE];
unsigned value;
@@ -593,9 +542,6 @@ const char* VbGetArchPropertyString(const char* name, char* dest,
if (prop)
str = ReadFdtString(prop);
- if (!strcasecmp(name, "platform_family"))
- str = ReadFdtPlatformFamily();
-
if (str) {
rv = StrCopy(dest, str, size);
free(str);