Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/nvidia Apply initial fuse offset in tegra_fuse_...
details: https://anonhg.NetBSD.org/src/rev/022d8480bf2e
branches: trunk
changeset: 341769:022d8480bf2e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Nov 21 22:52:31 2015 +0000
description:
Apply initial fuse offset in tegra_fuse_read instead of in each reg def
diffstat:
sys/arch/arm/nvidia/soc_tegra124.c | 26 +++++++++++++-------------
sys/arch/arm/nvidia/tegra_fuse.c | 6 +++---
2 files changed, 16 insertions(+), 16 deletions(-)
diffs (74 lines):
diff -r fd6f3552e6c2 -r 022d8480bf2e sys/arch/arm/nvidia/soc_tegra124.c
--- a/sys/arch/arm/nvidia/soc_tegra124.c Sat Nov 21 16:50:29 2015 +0000
+++ b/sys/arch/arm/nvidia/soc_tegra124.c Sat Nov 21 22:52:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: soc_tegra124.c,v 1.9 2015/11/21 12:09:39 jmcneill Exp $ */
+/* $NetBSD: soc_tegra124.c,v 1.10 2015/11/21 22:52:31 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: soc_tegra124.c,v 1.9 2015/11/21 12:09:39 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: soc_tegra124.c,v 1.10 2015/11/21 22:52:31 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -47,17 +47,17 @@
#define EVP_RESET_VECTOR_0_REG 0x100
-#define FUSE_SKU_INFO_REG 0x110
-#define FUSE_CPU_SPEEDO_0_REG 0x114
-#define FUSE_CPU_IDDQ_REG 0x118
-#define FUSE_FT_REV_REG 0x128
-#define FUSE_CPU_SPEEDO_1_REG 0x12c
-#define FUSE_CPU_SPEEDO_2_REG 0x130
-#define FUSE_SOC_SPEEDO_0_REG 0x134
-#define FUSE_SOC_SPEEDO_1_REG 0x138
-#define FUSE_SOC_SPEEDO_2_REG 0x13c
-#define FUSE_SOC_IDDQ_REG 0x140
-#define FUSE_GPU_IDDQ_REG 0x228
+#define FUSE_SKU_INFO_REG 0x010
+#define FUSE_CPU_SPEEDO_0_REG 0x014
+#define FUSE_CPU_IDDQ_REG 0x018
+#define FUSE_FT_REV_REG 0x028
+#define FUSE_CPU_SPEEDO_1_REG 0x02c
+#define FUSE_CPU_SPEEDO_2_REG 0x030
+#define FUSE_SOC_SPEEDO_0_REG 0x034
+#define FUSE_SOC_SPEEDO_1_REG 0x038
+#define FUSE_SOC_SPEEDO_2_REG 0x03c
+#define FUSE_SOC_IDDQ_REG 0x040
+#define FUSE_GPU_IDDQ_REG 0x128
static void tegra124_speedo_init(void);
static int tegra124_speedo_init_ids(uint32_t);
diff -r fd6f3552e6c2 -r 022d8480bf2e sys/arch/arm/nvidia/tegra_fuse.c
--- a/sys/arch/arm/nvidia/tegra_fuse.c Sat Nov 21 16:50:29 2015 +0000
+++ b/sys/arch/arm/nvidia/tegra_fuse.c Sat Nov 21 22:52:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_fuse.c,v 1.1 2015/11/21 12:09:39 jmcneill Exp $ */
+/* $NetBSD: tegra_fuse.c,v 1.2 2015/11/21 22:52:31 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "locators.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_fuse.c,v 1.1 2015/11/21 12:09:39 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_fuse.c,v 1.2 2015/11/21 22:52:31 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -96,7 +96,7 @@
}
tegra_car_fuse_enable();
- const uint32_t v = bus_space_read_4(bst, bsh, offset);
+ const uint32_t v = bus_space_read_4(bst, bsh, 0x100 + offset);
tegra_car_fuse_disable();
return v;
Home |
Main Index |
Thread Index |
Old Index