summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/id.c
diff options
context:
space:
mode:
authorKan-Ru Chen <kanru@0xlab.org>2010-08-02 13:21:41 +0200
committerTony Lindgren <tony@atomide.com>2010-08-02 13:21:41 +0200
commit2e130fc3d4fd5b38ee5d3c0a5c7f9fb85bce698e (patch)
treec0d9f4d97d17d74e71f5fde9534fdc6380a914ed /arch/arm/mach-omap2/id.c
parentOMAP3: AM3505/3517 do not have IO wakeup capability (diff)
downloadlinux-2e130fc3d4fd5b38ee5d3c0a5c7f9fb85bce698e.tar.xz
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/id.c')
-rw-r--r--arch/arm/mach-omap2/id.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index ccaa1ed8e0f1..d079ccfa294e 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -25,6 +25,8 @@
#include <plat/control.h>
#include <plat/cpu.h>
+#include <mach/id.h>
+
static struct omap_chip_id omap_chip;
static unsigned int omap_revision;
@@ -102,6 +104,14 @@ static struct omap_id omap_ids[] __initdata = {
static void __iomem *tap_base;
static u16 tap_prod_id;
+void omap_get_die_id(struct omap_die_id *odi)
+{
+ odi->id_0 = read_tap_reg(OMAP_TAP_DIE_ID_0);
+ odi->id_1 = read_tap_reg(OMAP_TAP_DIE_ID_1);
+ odi->id_2 = read_tap_reg(OMAP_TAP_DIE_ID_2);
+ odi->id_3 = read_tap_reg(OMAP_TAP_DIE_ID_3);
+}
+
static void __init omap24xx_check_revision(void)
{
int i, j;