diff options
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/common.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/common.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h index 4e3d97890d69..ace4bb550edc 100644 --- a/arch/arm/plat-mxc/include/mach/common.h +++ b/arch/arm/plat-mxc/include/mach/common.h | |||
@@ -66,10 +66,35 @@ extern int mx53_clocks_init(unsigned long ckil, unsigned long osc, | |||
66 | unsigned long ckih1, unsigned long ckih2); | 66 | unsigned long ckih1, unsigned long ckih2); |
67 | extern struct platform_device *mxc_register_gpio(char *name, int id, | 67 | extern struct platform_device *mxc_register_gpio(char *name, int id, |
68 | resource_size_t iobase, resource_size_t iosize, int irq, int irq_high); | 68 | resource_size_t iobase, resource_size_t iosize, int irq, int irq_high); |
69 | extern int mxc_register_device(struct platform_device *pdev, void *data); | ||
70 | extern void mxc_set_cpu_type(unsigned int type); | 69 | extern void mxc_set_cpu_type(unsigned int type); |
71 | extern void mxc_arch_reset_init(void __iomem *); | 70 | extern void mxc_arch_reset_init(void __iomem *); |
72 | extern void mx51_efikamx_reset(void); | 71 | extern void mx51_efikamx_reset(void); |
73 | extern int mx53_revision(void); | 72 | extern int mx53_revision(void); |
74 | extern int mx53_display_revision(void); | 73 | extern int mx53_display_revision(void); |
74 | |||
75 | enum mxc_cpu_pwr_mode { | ||
76 | WAIT_CLOCKED, /* wfi only */ | ||
77 | WAIT_UNCLOCKED, /* WAIT */ | ||
78 | WAIT_UNCLOCKED_POWER_OFF, /* WAIT + SRPG */ | ||
79 | STOP_POWER_ON, /* just STOP */ | ||
80 | STOP_POWER_OFF, /* STOP + SRPG */ | ||
81 | }; | ||
82 | |||
83 | extern void mx5_cpu_lp_set(enum mxc_cpu_pwr_mode mode); | ||
84 | extern void (*imx_idle)(void); | ||
85 | extern void imx_print_silicon_rev(const char *cpu, int srev); | ||
86 | |||
87 | void avic_handle_irq(struct pt_regs *); | ||
88 | void tzic_handle_irq(struct pt_regs *); | ||
89 | |||
90 | #define imx1_handle_irq avic_handle_irq | ||
91 | #define imx21_handle_irq avic_handle_irq | ||
92 | #define imx25_handle_irq avic_handle_irq | ||
93 | #define imx27_handle_irq avic_handle_irq | ||
94 | #define imx31_handle_irq avic_handle_irq | ||
95 | #define imx35_handle_irq avic_handle_irq | ||
96 | #define imx50_handle_irq tzic_handle_irq | ||
97 | #define imx51_handle_irq tzic_handle_irq | ||
98 | #define imx53_handle_irq tzic_handle_irq | ||
99 | |||
75 | #endif | 100 | #endif |