summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/prminst44xx.h
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2014-05-22 14:53:54 -0500
committerNishanth Menon <nm@ti.com>2014-09-08 10:53:25 -0500
commite3002d1ae16812ba6c1479a25cce77fd0d175838 (patch)
treef04508a29363b279d11a8d550f6a83ef42028465 /arch/arm/mach-omap2/prminst44xx.h
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
ARM: OMAP4+: prminst: provide function to find prm_dev instance offset
PRM device instance can vary depending on SoC. We already handle the same during reset of the device, However, this is also needed for other logic instances. So, first abstract this out to a generic function. Signed-off-by: Nishanth Menon <nm@ti.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/prminst44xx.h')
-rw-r--r--arch/arm/mach-omap2/prminst44xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prminst44xx.h b/arch/arm/mach-omap2/prminst44xx.h
index a2ede2d65481..583aa3774571 100644
--- a/arch/arm/mach-omap2/prminst44xx.h
+++ b/arch/arm/mach-omap2/prminst44xx.h
@@ -12,6 +12,9 @@
#ifndef __ARCH_ASM_MACH_OMAP2_PRMINST44XX_H
#define __ARCH_ASM_MACH_OMAP2_PRMINST44XX_H
+#define PRM_INSTANCE_UNKNOWN -1
+extern s32 omap4_prmst_get_prm_dev_inst(void);
+
/*
* In an ideal world, we would not export these low-level functions,
* but this will probably take some time to fix properly