diff options
-rw-r--r-- | arch/arm/mach-omap2/pm.c | 20 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/common.h | 3 |
2 files changed, 17 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 68f9f2e95891..c93921d5cc20 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
@@ -21,8 +21,9 @@ | |||
21 | static struct omap_device_pm_latency *pm_lats; | 21 | static struct omap_device_pm_latency *pm_lats; |
22 | 22 | ||
23 | static struct device *mpu_dev; | 23 | static struct device *mpu_dev; |
24 | static struct device *dsp_dev; | 24 | static struct device *iva_dev; |
25 | static struct device *l3_dev; | 25 | static struct device *l3_dev; |
26 | static struct device *dsp_dev; | ||
26 | 27 | ||
27 | struct device *omap2_get_mpuss_device(void) | 28 | struct device *omap2_get_mpuss_device(void) |
28 | { | 29 | { |
@@ -30,10 +31,10 @@ struct device *omap2_get_mpuss_device(void) | |||
30 | return mpu_dev; | 31 | return mpu_dev; |
31 | } | 32 | } |
32 | 33 | ||
33 | struct device *omap2_get_dsp_device(void) | 34 | struct device *omap2_get_iva_device(void) |
34 | { | 35 | { |
35 | WARN_ON_ONCE(!dsp_dev); | 36 | WARN_ON_ONCE(!iva_dev); |
36 | return dsp_dev; | 37 | return iva_dev; |
37 | } | 38 | } |
38 | 39 | ||
39 | struct device *omap2_get_l3_device(void) | 40 | struct device *omap2_get_l3_device(void) |
@@ -42,6 +43,13 @@ struct device *omap2_get_l3_device(void) | |||
42 | return l3_dev; | 43 | return l3_dev; |
43 | } | 44 | } |
44 | 45 | ||
46 | struct device *omap4_get_dsp_device(void) | ||
47 | { | ||
48 | WARN_ON_ONCE(!dsp_dev); | ||
49 | return dsp_dev; | ||
50 | } | ||
51 | EXPORT_SYMBOL(omap4_get_dsp_device); | ||
52 | |||
45 | /* static int _init_omap_device(struct omap_hwmod *oh, void *user) */ | 53 | /* static int _init_omap_device(struct omap_hwmod *oh, void *user) */ |
46 | static int _init_omap_device(char *name, struct device **new_dev) | 54 | static int _init_omap_device(char *name, struct device **new_dev) |
47 | { | 55 | { |
@@ -69,7 +77,9 @@ static int _init_omap_device(char *name, struct device **new_dev) | |||
69 | static void omap2_init_processor_devices(void) | 77 | static void omap2_init_processor_devices(void) |
70 | { | 78 | { |
71 | _init_omap_device("mpu", &mpu_dev); | 79 | _init_omap_device("mpu", &mpu_dev); |
72 | _init_omap_device("iva", &dsp_dev); | 80 | _init_omap_device("iva", &iva_dev); |
81 | if (cpu_is_omap44xx()) | ||
82 | _init_omap_device("dsp", &dsp_dev); | ||
73 | _init_omap_device("l3_main", &l3_dev); | 83 | _init_omap_device("l3_main", &l3_dev); |
74 | } | 84 | } |
75 | 85 | ||
diff --git a/arch/arm/plat-omap/include/plat/common.h b/arch/arm/plat-omap/include/plat/common.h index 9776b41ad76f..c45dbb975e09 100644 --- a/arch/arm/plat-omap/include/plat/common.h +++ b/arch/arm/plat-omap/include/plat/common.h | |||
@@ -91,7 +91,8 @@ void omap3_map_io(void); | |||
91 | }) | 91 | }) |
92 | 92 | ||
93 | extern struct device *omap2_get_mpuss_device(void); | 93 | extern struct device *omap2_get_mpuss_device(void); |
94 | extern struct device *omap2_get_dsp_device(void); | 94 | extern struct device *omap2_get_iva_device(void); |
95 | extern struct device *omap2_get_l3_device(void); | 95 | extern struct device *omap2_get_l3_device(void); |
96 | extern struct device *omap4_get_dsp_device(void); | ||
96 | 97 | ||
97 | #endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */ | 98 | #endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */ |