diff options
| author | Arto Merilainen <amerilainen@nvidia.com> | 2015-09-10 18:46:29 -0400 |
|---|---|---|
| committer | Arto Merilainen <amerilainen@nvidia.com> | 2015-09-25 03:11:46 -0400 |
| commit | 5bfc0aacb32e6991555497ba1683aeedcf9beb01 (patch) | |
| tree | 16c37a79d0a75d9dcf5bc7494e3311f0f92eac89 /include/linux/platform | |
| parent | 312862c573a17102208191d99d89a311db6aad4b (diff) | |
platform: tegra: Add kfuse support
This patch adds kfuse support for T186. As a new feature it
introduces a reference counted in-kernel API for enabling and
disabling kfuse sensing
Bug 200117545
Change-Id: I03c6e360c70a9243f1284dc98ccc4122fb993f59
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/797418
(cherry picked from commit d67bf71ef1e6f9e3c9acb6b366f6e8a7a2ff4acf)
Reviewed-on: http://git-master/r/804437
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stefan Kristiansson <stefank@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'include/linux/platform')
| -rw-r--r-- | include/linux/platform/tegra/tegra18_kfuse.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/linux/platform/tegra/tegra18_kfuse.h b/include/linux/platform/tegra/tegra18_kfuse.h new file mode 100644 index 000000000..2ceb706f1 --- /dev/null +++ b/include/linux/platform/tegra/tegra18_kfuse.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef TEGRA18_KFUSE_H | ||
| 15 | #define TEGRA18_KFUSE_H | ||
| 16 | |||
| 17 | #include <linux/platform/tegra/tegra_kfuse.h> | ||
| 18 | |||
| 19 | struct kfuse; | ||
| 20 | |||
| 21 | #ifdef CONFIG_TEGRA_KFUSE | ||
| 22 | void tegra_kfuse_disable_sensing(void); | ||
| 23 | int tegra_kfuse_enable_sensing(void); | ||
| 24 | #else | ||
| 25 | |||
| 26 | static inline void tegra_kfuse_disable_sensing(void) | ||
| 27 | { | ||
| 28 | } | ||
| 29 | |||
| 30 | static inline int tegra_kfuse_enable_sensing(void) | ||
| 31 | { | ||
| 32 | return -ENOSYS; | ||
| 33 | } | ||
| 34 | |||
| 35 | #endif | ||
| 36 | |||
| 37 | #endif | ||
