Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/tegra Remove tegra_chip_id vs compat string ...
details: https://anonhg.NetBSD.org/src/rev/30954fae4a1b
branches: trunk
changeset: 353854:30954fae4a1b
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri May 26 00:15:12 2017 +0000
description:
Remove tegra_chip_id vs compat string test in initarm.
diffstat:
sys/arch/evbarm/tegra/tegra_machdep.c | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
diffs (44 lines):
diff -r 7af917d641d9 -r 30954fae4a1b sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c Fri May 26 00:00:25 2017 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c Fri May 26 00:15:12 2017 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index