diff options
Diffstat (limited to 'drivers/staging/tidspbridge/rmgr/drv_interface.c')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/drv_interface.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c index f0f089b5b8b..27db84286ad 100644 --- a/drivers/staging/tidspbridge/rmgr/drv_interface.c +++ b/drivers/staging/tidspbridge/rmgr/drv_interface.c | |||
@@ -62,7 +62,7 @@ | |||
62 | #include <dspbridge/drvdefs.h> | 62 | #include <dspbridge/drvdefs.h> |
63 | #include <dspbridge/drv.h> | 63 | #include <dspbridge/drv.h> |
64 | 64 | ||
65 | #ifdef CONFIG_BRIDGE_DVFS | 65 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
66 | #include <mach-omap2/omap3-opp.h> | 66 | #include <mach-omap2/omap3-opp.h> |
67 | #endif | 67 | #endif |
68 | 68 | ||
@@ -88,7 +88,7 @@ static char *base_img; | |||
88 | char *iva_img; | 88 | char *iva_img; |
89 | static s32 shm_size = 0x500000; /* 5 MB */ | 89 | static s32 shm_size = 0x500000; /* 5 MB */ |
90 | static int tc_wordswapon; /* Default value is always false */ | 90 | static int tc_wordswapon; /* Default value is always false */ |
91 | #ifdef CONFIG_BRIDGE_RECOVERY | 91 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
92 | #define REC_TIMEOUT 5000 /*recovery timeout in msecs */ | 92 | #define REC_TIMEOUT 5000 /*recovery timeout in msecs */ |
93 | static atomic_t bridge_cref; /* number of bridge open handles */ | 93 | static atomic_t bridge_cref; /* number of bridge open handles */ |
94 | static struct workqueue_struct *bridge_rec_queue; | 94 | static struct workqueue_struct *bridge_rec_queue; |
@@ -148,13 +148,13 @@ static const struct file_operations bridge_fops = { | |||
148 | 148 | ||
149 | #ifdef CONFIG_PM | 149 | #ifdef CONFIG_PM |
150 | static u32 time_out = 1000; | 150 | static u32 time_out = 1000; |
151 | #ifdef CONFIG_BRIDGE_DVFS | 151 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
152 | s32 dsp_max_opps = VDD1_OPP5; | 152 | s32 dsp_max_opps = VDD1_OPP5; |
153 | #endif | 153 | #endif |
154 | 154 | ||
155 | /* Maximum Opps that can be requested by IVA */ | 155 | /* Maximum Opps that can be requested by IVA */ |
156 | /*vdd1 rate table */ | 156 | /*vdd1 rate table */ |
157 | #ifdef CONFIG_BRIDGE_DVFS | 157 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
158 | const struct omap_opp vdd1_rate_table_bridge[] = { | 158 | const struct omap_opp vdd1_rate_table_bridge[] = { |
159 | {0, 0, 0}, | 159 | {0, 0, 0}, |
160 | /*OPP1 */ | 160 | /*OPP1 */ |
@@ -187,7 +187,7 @@ u32 vdd1_dsp_freq[6][4] = { | |||
187 | {0, 430000, 355000, 430000}, | 187 | {0, 430000, 355000, 430000}, |
188 | }; | 188 | }; |
189 | 189 | ||
190 | #ifdef CONFIG_BRIDGE_RECOVERY | 190 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
191 | static void bridge_recover(struct work_struct *work) | 191 | static void bridge_recover(struct work_struct *work) |
192 | { | 192 | { |
193 | struct dev_object *dev; | 193 | struct dev_object *dev; |
@@ -214,7 +214,7 @@ void bridge_recover_schedule(void) | |||
214 | queue_work(bridge_rec_queue, &bridge_recovery_work); | 214 | queue_work(bridge_rec_queue, &bridge_recovery_work); |
215 | } | 215 | } |
216 | #endif | 216 | #endif |
217 | #ifdef CONFIG_BRIDGE_DVFS | 217 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
218 | static int dspbridge_scale_notification(struct notifier_block *op, | 218 | static int dspbridge_scale_notification(struct notifier_block *op, |
219 | unsigned long val, void *ptr) | 219 | unsigned long val, void *ptr) |
220 | { | 220 | { |
@@ -247,7 +247,7 @@ static int omap3_bridge_startup(struct platform_device *pdev) | |||
247 | u32 phys_membase, phys_memsize; | 247 | u32 phys_membase, phys_memsize; |
248 | int err; | 248 | int err; |
249 | 249 | ||
250 | #ifdef CONFIG_BRIDGE_RECOVERY | 250 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
251 | bridge_rec_queue = create_workqueue("bridge_rec_queue"); | 251 | bridge_rec_queue = create_workqueue("bridge_rec_queue"); |
252 | INIT_WORK(&bridge_recovery_work, bridge_recover); | 252 | INIT_WORK(&bridge_recovery_work, bridge_recover); |
253 | INIT_COMPLETION(bridge_comp); | 253 | INIT_COMPLETION(bridge_comp); |
@@ -258,7 +258,7 @@ static int omap3_bridge_startup(struct platform_device *pdev) | |||
258 | bridge_suspend_data.suspended = 0; | 258 | bridge_suspend_data.suspended = 0; |
259 | init_waitqueue_head(&bridge_suspend_data.suspend_wq); | 259 | init_waitqueue_head(&bridge_suspend_data.suspend_wq); |
260 | 260 | ||
261 | #ifdef CONFIG_BRIDGE_DVFS | 261 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
262 | for (i = 0; i < 6; i++) | 262 | for (i = 0; i < 6; i++) |
263 | pdata->mpu_speed[i] = vdd1_rate_table_bridge[i].rate; | 263 | pdata->mpu_speed[i] = vdd1_rate_table_bridge[i].rate; |
264 | 264 | ||
@@ -323,7 +323,7 @@ err3: | |||
323 | err2: | 323 | err2: |
324 | kfree(drv_datap); | 324 | kfree(drv_datap); |
325 | err1: | 325 | err1: |
326 | #ifdef CONFIG_BRIDGE_DVFS | 326 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
327 | cpufreq_unregister_notifier(&iva_clk_notifier, | 327 | cpufreq_unregister_notifier(&iva_clk_notifier, |
328 | CPUFREQ_TRANSITION_NOTIFIER); | 328 | CPUFREQ_TRANSITION_NOTIFIER); |
329 | #endif | 329 | #endif |
@@ -337,7 +337,7 @@ static int __devinit omap34_xx_bridge_probe(struct platform_device *pdev) | |||
337 | { | 337 | { |
338 | int err; | 338 | int err; |
339 | dev_t dev = 0; | 339 | dev_t dev = 0; |
340 | #ifdef CONFIG_BRIDGE_DVFS | 340 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
341 | int i = 0; | 341 | int i = 0; |
342 | #endif | 342 | #endif |
343 | 343 | ||
@@ -400,12 +400,12 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev) | |||
400 | if (DSP_FAILED(status)) | 400 | if (DSP_FAILED(status)) |
401 | goto func_cont; | 401 | goto func_cont; |
402 | 402 | ||
403 | #ifdef CONFIG_BRIDGE_DVFS | 403 | #ifdef CONFIG_TIDSPBRIDGE_DVFS |
404 | if (cpufreq_unregister_notifier(&iva_clk_notifier, | 404 | if (cpufreq_unregister_notifier(&iva_clk_notifier, |
405 | CPUFREQ_TRANSITION_NOTIFIER)) | 405 | CPUFREQ_TRANSITION_NOTIFIER)) |
406 | pr_err("%s: cpufreq_unregister_notifier failed for iva2_ck\n", | 406 | pr_err("%s: cpufreq_unregister_notifier failed for iva2_ck\n", |
407 | __func__); | 407 | __func__); |
408 | #endif /* #ifdef CONFIG_BRIDGE_DVFS */ | 408 | #endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */ |
409 | 409 | ||
410 | if (driver_context) { | 410 | if (driver_context) { |
411 | /* Put the DSP in reset state */ | 411 | /* Put the DSP in reset state */ |
@@ -497,7 +497,7 @@ static int bridge_open(struct inode *ip, struct file *filp) | |||
497 | * process context list. | 497 | * process context list. |
498 | */ | 498 | */ |
499 | 499 | ||
500 | #ifdef CONFIG_BRIDGE_RECOVERY | 500 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
501 | if (recover) { | 501 | if (recover) { |
502 | if (filp->f_flags & O_NONBLOCK || | 502 | if (filp->f_flags & O_NONBLOCK || |
503 | wait_for_completion_interruptible(&bridge_open_comp)) | 503 | wait_for_completion_interruptible(&bridge_open_comp)) |
@@ -518,7 +518,7 @@ static int bridge_open(struct inode *ip, struct file *filp) | |||
518 | } | 518 | } |
519 | 519 | ||
520 | filp->private_data = pr_ctxt; | 520 | filp->private_data = pr_ctxt; |
521 | #ifdef CONFIG_BRIDGE_RECOVERY | 521 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
522 | if (!status) | 522 | if (!status) |
523 | atomic_inc(&bridge_cref); | 523 | atomic_inc(&bridge_cref); |
524 | #endif | 524 | #endif |
@@ -548,7 +548,7 @@ static int bridge_release(struct inode *ip, struct file *filp) | |||
548 | filp->private_data = NULL; | 548 | filp->private_data = NULL; |
549 | 549 | ||
550 | err: | 550 | err: |
551 | #ifdef CONFIG_BRIDGE_RECOVERY | 551 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
552 | if (!atomic_dec_return(&bridge_cref)) | 552 | if (!atomic_dec_return(&bridge_cref)) |
553 | complete(&bridge_comp); | 553 | complete(&bridge_comp); |
554 | #endif | 554 | #endif |
@@ -564,7 +564,7 @@ static long bridge_ioctl(struct file *filp, unsigned int code, | |||
564 | union Trapped_Args buf_in; | 564 | union Trapped_Args buf_in; |
565 | 565 | ||
566 | DBC_REQUIRE(filp != NULL); | 566 | DBC_REQUIRE(filp != NULL); |
567 | #ifdef CONFIG_BRIDGE_RECOVERY | 567 | #ifdef CONFIG_TIDSPBRIDGE_RECOVERY |
568 | if (recover) { | 568 | if (recover) { |
569 | status = -EIO; | 569 | status = -EIO; |
570 | goto err; | 570 | goto err; |