aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/emif.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/emif.c')
-rw-r--r--arch/arm/mach-omap2/emif.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/emif.c b/arch/arm/mach-omap2/emif.c
index 50f1128..968bcde 100644
--- a/arch/arm/mach-omap2/emif.c
+++ b/arch/arm/mach-omap2/emif.c
@@ -60,6 +60,20 @@ static struct omap_device_pm_latency omap_emif_latency[] = {
},
};
+static u32 get_temperature_level(u32 emif_nr);
+
+void emif_dump(int emif_nr)
+{
+ void __iomem *base = emif[emif_nr].base;
+
+ printk("EMIF%d s=0x%x is_sys=0x%x is_ll=0x%x temp=0x%02x\n",
+ emif_nr + 1,
+ __raw_readl(base + OMAP44XX_EMIF_STATUS),
+ __raw_readl(base + OMAP44XX_EMIF_IRQSTATUS_SYS),
+ __raw_readl(base + OMAP44XX_EMIF_IRQSTATUS_LL),
+ get_temperature_level(emif_nr));
+}
+
static void do_cancel_out(u32 *num, u32 *den, u32 factor)
{
while (1) {