aboutsummaryrefslogtreecommitdiff
path: root/include/linux/tegra-soc.h
diff options
context:
space:
mode:
authorGravatar Prashant Gaikwad <pgaikwad@nvidia.com> 2013-01-11 13:16:19 +0530
committerGravatar Stephen Warren <swarren@nvidia.com> 2013-01-28 11:19:06 -0700
commitc7736edf1b1734455c186deec53a0aa7f8fa87ea (patch)
treec2333faf5e2dacb726f60591ddb1e27d611dc7d4 /include/linux/tegra-soc.h
parentARM: tegra: fix compile error when disable CPU_IDLE (diff)
downloadlinux-c7736edf1b1734455c186deec53a0aa7f8fa87ea.tar.gz
linux-c7736edf1b1734455c186deec53a0aa7f8fa87ea.tar.bz2
linux-c7736edf1b1734455c186deec53a0aa7f8fa87ea.zip
ARM: tegra: add function to read chipid
Add function to read chip id from APB MISC registers. This function will also get called from clock driver to flush write operations on apb bus. Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/linux/tegra-soc.h')
-rw-r--r--include/linux/tegra-soc.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/tegra-soc.h b/include/linux/tegra-soc.h
new file mode 100644
index 000000000000..95f611d78f3a
--- /dev/null
+++ b/include/linux/tegra-soc.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __LINUX_TEGRA_SOC_H_
+#define __LINUX_TEGRA_SOC_H_
+
+u32 tegra_read_chipid(void);
+
+#endif /* __LINUX_TEGRA_SOC_H_ */