summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra3_speedo.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-01-22 20:07:49 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:14 -0800
commit3b1c140025159cc6527c10a177afb0acab53cc62 (patch)
tree0a021f6af14bc5aff3bd42add5f5f9f65dee66a0 /arch/arm/mach-tegra/tegra3_speedo.c
parentf8d192113bd72e0bbc9b48ff7bbee8e8ee3d6123 (diff)
ARM: tegra: Add Tegra3 speedo stubs
Original-Change-Id: I05b9b8014062a28a69407c08fc630a280214315e Reviewed-on: http://git-master/r/16661 Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Original-Change-Id: I190f04798473bf4452d00561cae96e45085c3dc0 Rebase-Id: Rad0832a8d7afd74adeaaaf0faaad40e0ac0a8f1d
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_speedo.c')
-rw-r--r--arch/arm/mach-tegra/tegra3_speedo.c53
1 files changed, 53 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra3_speedo.c b/arch/arm/mach-tegra/tegra3_speedo.c
new file mode 100644
index 000000000000..c5544d6d3ec1
--- /dev/null
+++ b/arch/arm/mach-tegra/tegra3_speedo.c
@@ -0,0 +1,53 @@
+/*
+ * arch/arm/mach-tegra/tegra3_speedo.c
+ *
+ * Copyright (c) 2011, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include <linux/kernel.h>
+#include <linux/io.h>
+#include <linux/err.h>
+
+#include <mach/iomap.h>
+
+#include "fuse.h"
+
+static int cpu_process_id;
+static int core_process_id;
+static int soc_speedo_id;
+
+void tegra_init_speedo_data(void)
+{
+ cpu_process_id = 0;
+ core_process_id = 0;
+ soc_speedo_id = 0;
+}
+
+int tegra_cpu_process_id(void)
+{
+ return cpu_process_id;
+}
+
+int tegra_core_process_id(void)
+{
+ return core_process_id;
+}
+
+int tegra_soc_speedo_id(void)
+{
+ return soc_speedo_id;
+}