diff mbox

[PATCHv7,6/9] TEMP: power: omap-prm: added omap3 static init

Message ID 1315495344-23133-7-git-send-email-t-kristo@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tero Kristo Sept. 8, 2011, 3:22 p.m. UTC
This is a temporary hack until PRM hwmod data is available.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
---
 drivers/power/omap_prm.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/drivers/power/omap_prm.c b/drivers/power/omap_prm.c
index ce0a872..7d59d92 100644
--- a/drivers/power/omap_prm.c
+++ b/drivers/power/omap_prm.c
@@ -264,14 +264,16 @@  static int __devexit omap_prm_complete(struct platform_device *pdev)
 
 static int __init omap_prm_probe(struct platform_device *pdev)
 {
-	/* XXX: prm_dev.irq_setup should be populated here */
+	prm_dev.irq_setup.ack = 0xb2000000 + 0x48306818;
+	prm_dev.irq_setup.mask = 0xb2000000 + 0x4830681c;
+	prm_dev.irq_setup.irq = INT_34XX_PRCM_MPU_IRQ;
+	prm_dev.irq_setup.nr_regs = 1;
+	prm_dev.irq_setup.nr_irqs = 32;
 
-	/* XXX: following calls should be enabled once irq_setup is done */
-#if 0
 	omap_prcm_irq_init();
 
 	prm_dev.irq_setup.io_irq = omap_prcm_event_to_irq("io");
-#endif
+
 	return 0;
 }