summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/include
diff options
context:
space:
mode:
authorKan-Ru Chen <kanru@0xlab.org>2010-08-02 14:21:41 +0300
committerTony Lindgren <tony@atomide.com>2010-08-02 14:21:41 +0300
commit2e130fc3d4fd5b38ee5d3c0a5c7f9fb85bce698e (patch)
treec0d9f4d97d17d74e71f5fde9534fdc6380a914ed /arch/arm/mach-omap2/include
parentad0c63f1d623ea9d3e0c0521d5ce9cd522c4e1f0 (diff)
downloadtalos-op-linux-2e130fc3d4fd5b38ee5d3c0a5c7f9fb85bce698e.tar.gz
talos-op-linux-2e130fc3d4fd5b38ee5d3c0a5c7f9fb85bce698e.zip
omap: Add new interface omap_get_die_id
Allow DIE id to be get and used by others. Signed-off-by: Kan-Ru Chen <kanru@0xlab.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/include')
-rw-r--r--arch/arm/mach-omap2/include/mach/id.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/include/mach/id.h b/arch/arm/mach-omap2/include/mach/id.h
new file mode 100644
index 000000000000..02ed3aa56f1e
--- /dev/null
+++ b/arch/arm/mach-omap2/include/mach/id.h
@@ -0,0 +1,22 @@
+/*
+ * OMAP2 CPU identification code
+ *
+ * Copyright (C) 2010 Kan-Ru Chen <kanru@0xlab.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef OMAP2_ARCH_ID_H
+#define OMAP2_ARCH_ID_H
+
+struct omap_die_id {
+ u32 id_0;
+ u32 id_1;
+ u32 id_2;
+ u32 id_3;
+};
+
+void omap_get_die_id(struct omap_die_id *odi);
+
+#endif
OpenPOWER on IntegriCloud