diff options
Diffstat (limited to 'arch/arm/mach-omap2/prm_common.c')
-rw-r--r-- | arch/arm/mach-omap2/prm_common.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index 945b4ad6ab84..f596e1e91ffd 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c | |||
@@ -24,12 +24,11 @@ | |||
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | 26 | ||
27 | #include <plat/prcm.h> | ||
28 | |||
29 | #include "prm2xxx_3xxx.h" | 27 | #include "prm2xxx_3xxx.h" |
30 | #include "prm2xxx.h" | 28 | #include "prm2xxx.h" |
31 | #include "prm3xxx.h" | 29 | #include "prm3xxx.h" |
32 | #include "prm44xx.h" | 30 | #include "prm44xx.h" |
31 | #include "common.h" | ||
33 | 32 | ||
34 | /* | 33 | /* |
35 | * OMAP_PRCM_MAX_NR_PENDING_REG: maximum number of PRM_IRQ*_MPU regs | 34 | * OMAP_PRCM_MAX_NR_PENDING_REG: maximum number of PRM_IRQ*_MPU regs |
@@ -54,6 +53,9 @@ static struct irq_chip_generic **prcm_irq_chips; | |||
54 | */ | 53 | */ |
55 | static struct omap_prcm_irq_setup *prcm_irq_setup; | 54 | static struct omap_prcm_irq_setup *prcm_irq_setup; |
56 | 55 | ||
56 | /* prm_base: base virtual address of the PRM IP block */ | ||
57 | void __iomem *prm_base; | ||
58 | |||
57 | /* | 59 | /* |
58 | * prm_ll_data: function pointers to SoC-specific implementations of | 60 | * prm_ll_data: function pointers to SoC-specific implementations of |
59 | * common PRM functions | 61 | * common PRM functions |
@@ -328,6 +330,17 @@ err: | |||
328 | } | 330 | } |
329 | 331 | ||
330 | /** | 332 | /** |
333 | * omap2_set_globals_prm - set the PRM base address (for early use) | ||
334 | * @prm: PRM base virtual address | ||
335 | * | ||
336 | * XXX Will be replaced when the PRM/CM drivers are completed. | ||
337 | */ | ||
338 | void __init omap2_set_globals_prm(void __iomem *prm) | ||
339 | { | ||
340 | prm_base = prm; | ||
341 | } | ||
342 | |||
343 | /** | ||
331 | * prm_read_reset_sources - return the sources of the SoC's last reset | 344 | * prm_read_reset_sources - return the sources of the SoC's last reset |
332 | * | 345 | * |
333 | * Return a u32 bitmask representing the reset sources that caused the | 346 | * Return a u32 bitmask representing the reset sources that caused the |