summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include/mach/fuse.h
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2010-11-10 00:43:19 -0800
committerVarun Colbert <vcolbert@nvidia.com>2010-11-15 20:21:45 -0800
commitf91ff9b31a37b11df8636fa886b01dbdc47587f1 (patch)
tree6b9a676298e5e9827a17999f835ba3908ed2ac2d /arch/arm/mach-tegra/include/mach/fuse.h
parentb79646f0a0cbfe48558980215794c178d814585e (diff)
[arm/tegra] cache kfuses on boottegra-10.9.5
Cache the fuse contents early in boot before DMA is active to ensure exclusive access on that bus. This cache is exposed at /sys/firmware/fuse/kfuse_raw and it can be read() or mmap()'d. Bug 741232 Change-Id: I83bc991c89beb837ec22b2e03ceac11ab696cb6f Reviewed-on: http://git-master/r/10482 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/fuse.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/fuse.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/fuse.h b/arch/arm/mach-tegra/include/mach/fuse.h
new file mode 100644
index 000000000000..3a4f71e46b94
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/fuse.h
@@ -0,0 +1,25 @@
+/*
+ * arch/arm/mach-tegra/fuse.h
+ *
+ * Copyright (c) 2010, 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.
+ *
+ */
+
+#ifndef __MACH_TEGRA_FUSE_H
+#define __MACH_TEGRA_FUSE_H
+
+#include <linux/init.h>
+
+void __init tegra_init_fuse_cache(void);
+const u32 *tegra_kfuse_cache_get(size_t *size);
+
+#endif