Module Name:    src
Committed By:   jmcneill
Date:           Fri May 26 00:15:12 UTC 2017

Modified Files:
        src/sys/arch/evbarm/tegra: tegra_machdep.c

Log Message:
Remove tegra_chip_id vs compat string test in initarm.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/evbarm/tegra/tegra_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/tegra/tegra_machdep.c
diff -u src/sys/arch/evbarm/tegra/tegra_machdep.c:1.40 src/sys/arch/evbarm/tegra/tegra_machdep.c:1.41
--- src/sys/arch/evbarm/tegra/tegra_machdep.c:1.40	Fri Apr 21 23:36:58 2017
+++ src/sys/arch/evbarm/tegra/tegra_machdep.c	Fri May 26 00:15:12 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.40 2017/04/21 23:36:58 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.41 2017/05/26 00:15:12 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.40 2017/04/21 23:36:58 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.41 2017/05/26 00:15:12 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -281,25 +281,6 @@ initarm(void *arg)
 	parse_mi_bootargs(mi_bootargs);
 #endif
 
-	const u_int chip_id = tegra_chip_id();
-	switch (chip_id) {
-#ifdef SOC_TEGRA124
-        case CHIP_ID_TEGRA124: {
-		const char * const tegra124_compatible_strings[] = {
-			"nvidia,tegra124",
-			NULL
-		};
-		const int node = OF_peer(0);
-                if (of_compatible(node, tegra124_compatible_strings) < 0) {
-			panic("FDT is not compatible with Tegra124");
-		}
-                break;
-	}
-#endif
-	default:
-		panic("Kernel does not support Tegra SOC ID %#x", chip_id);
-	}
-
 	DPRINTF("KERNEL_BASE=0x%x, KERNEL_VM_BASE=0x%x, KERNEL_VM_BASE - KERNEL_BASE=0x%x, KERNEL_BASE_VOFFSET=0x%x\n",
 		KERNEL_BASE, KERNEL_VM_BASE, KERNEL_VM_BASE - KERNEL_BASE, KERNEL_BASE_VOFFSET);
 

Reply via email to