@@ -523,6 +523,7 @@ extern int omap_prcm_register_chain_handler(
extern int omap_prcm_event_to_irq(const char *event);
extern void omap_prcm_irq_prepare(void);
extern void omap_prcm_irq_complete(void);
+void omap_pcs_legacy_init(int irq, void (*rearm)(void));
# endif
@@ -18,8 +18,6 @@
#include <linux/io.h>
#include <linux/irq.h>
-#include "soc.h"
-#include "common.h"
#include "vp.h"
#include "powerdomain.h"
#include "prm3xxx.h"
@@ -40,7 +38,7 @@ static struct omap_prcm_irq_setup omap3_prcm_irq_setup = {
.nr_regs = 1,
.irqs = omap3_prcm_irqs,
.nr_irqs = ARRAY_SIZE(omap3_prcm_irqs),
- .irq = 11 + OMAP_INTC_START,
+ .irq = 11 + NR_IRQS,
.read_pending_irqs = &omap3xxx_prm_read_pending_irqs,
.ocp_barrier = &omap3xxx_prm_ocp_barrier,
.save_and_clear_irqen = &omap3xxx_prm_save_and_clear_irqen,
@@ -19,9 +19,6 @@
#include <linux/io.h>
-#include "soc.h"
-#include "iomap.h"
-#include "common.h"
#include "vp.h"
#include "prm44xx.h"
#include "prm54xx.h"
@@ -33,6 +30,8 @@
/* Static data */
+#define OMAP44XX_IRQ_GIC_START 32
+
static const struct omap_prcm_irq omap4_prcm_irqs[] = {
OMAP_PRCM_IRQ("wkup", 0, 0),
OMAP_PRCM_IRQ("io", 9, 1),
@@ -28,12 +28,10 @@
#include <linux/clk-provider.h>
#include <linux/clk/ti.h>
-#include "soc.h"
#include "prm2xxx_3xxx.h"
#include "prm2xxx.h"
#include "prm3xxx.h"
#include "prm44xx.h"
-#include "common.h"
#include "clock.h"
/*
@@ -16,8 +16,6 @@
#include <linux/err.h>
#include <linux/io.h>
-#include "iomap.h"
-#include "common.h"
#include "prcm-common.h"
#include "prm44xx.h"
#include "prm54xx.h"
@@ -26,7 +24,6 @@
#include "prm-regbits-44xx.h"
#include "prcm44xx.h"
#include "prcm_mpu44xx.h"
-#include "soc.h"
static void __iomem *_prm_bases[OMAP4_MAX_PRCM_PARTITIONS];
Done in preparation to make PRM a separate driver. Signed-off-by: Tero Kristo <t-kristo@ti.com> --- arch/arm/mach-omap2/prcm-common.h | 1 + arch/arm/mach-omap2/prm3xxx.c | 4 +--- arch/arm/mach-omap2/prm44xx.c | 5 ++--- arch/arm/mach-omap2/prm_common.c | 2 -- arch/arm/mach-omap2/prminst44xx.c | 3 --- 5 files changed, 4 insertions(+), 11 deletions(-)