summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include/mach/kfuse.h
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2011-01-05 11:18:46 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:36:59 -0800
commitd983e43d000450d65e0cc9d645382f053471cefb (patch)
tree7881a001a9ed21ea8a44206c1ca2d8186d7dbc84 /arch/arm/mach-tegra/include/mach/kfuse.h
parent6bc28bc798c7c37f109e5d7539178708d97ba711 (diff)
[ARM] tegra: kfuse driver
factory programmed encrypted key fuses held in kfuse module. use APB DMA for accessing kfuse registers, reading directly can hang if any other DMA is active. Change-Id: I85e44cc169607bc22116075e28938014aa299d75 Reviewed-by: Jon Mayo <jmayo@nvidia.com> Tested-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/kfuse.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/kfuse.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/kfuse.h b/arch/arm/mach-tegra/include/mach/kfuse.h
new file mode 100644
index 000000000000..cfe85cc86ff2
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/kfuse.h
@@ -0,0 +1,20 @@
+/*
+ * arch/arm/mach-tegra/kfuse.h
+ *
+ * Copyright (C) 2010-2011 NVIDIA Corporation.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * 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.
+ *
+ */
+
+/* there are 144 32-bit values in total */
+#define KFUSE_DATA_SZ (144 * 4)
+
+int tegra_kfuse_read(void *dest, size_t len);