aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2010-07-04 09:36:23 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-08 16:34:53 -0400
commitb3d23688a15c4c332942f9428e0d708e7362e29e (patch)
treec2a7e5eca57aef6c1f85df675e50655ab50b5987 /drivers
parent94e7e5260723870329f04b0bd8eeb41322895bf1 (diff)
staging: ti dspbridge: prefix configs with TIDSPBRIDGE
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/tidspbridge/Kconfig18
-rw-r--r--drivers/staging/tidspbridge/core/io_sm.c2
-rw-r--r--drivers/staging/tidspbridge/core/tiomap3430_pwr.c30
-rw-r--r--drivers/staging/tidspbridge/core/tiomap_io.c4
-rw-r--r--drivers/staging/tidspbridge/core/ue_deh.c2
-rw-r--r--drivers/staging/tidspbridge/core/wdt.c4
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h2
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/dbc.h2
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/drv.h2
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/io_sm.h2
-rw-r--r--drivers/staging/tidspbridge/rmgr/drv.c2
-rw-r--r--drivers/staging/tidspbridge/rmgr/drv_interface.c32
-rw-r--r--drivers/staging/tidspbridge/rmgr/node.c6
-rw-r--r--drivers/staging/tidspbridge/rmgr/proc.c8
14 files changed, 58 insertions, 58 deletions
diff --git a/drivers/staging/tidspbridge/Kconfig b/drivers/staging/tidspbridge/Kconfig
index 45372cd6b0e..6ce443a54ee 100644
--- a/drivers/staging/tidspbridge/Kconfig
+++ b/drivers/staging/tidspbridge/Kconfig
@@ -14,7 +14,7 @@ menuconfig TIDSPBRIDGE
14 14
15 This driver depends on OMAP Mailbox (OMAP_MBOX_FWK). 15 This driver depends on OMAP Mailbox (OMAP_MBOX_FWK).
16 16
17config BRIDGE_DVFS 17config TIDSPBRIDGE_DVFS
18 bool "Enable Bridge Dynamic Voltage and Frequency Scaling (DVFS)" 18 bool "Enable Bridge Dynamic Voltage and Frequency Scaling (DVFS)"
19 depends on TIDSPBRIDGE && OMAP_PM_SRF && CPU_FREQ 19 depends on TIDSPBRIDGE && OMAP_PM_SRF && CPU_FREQ
20 default n 20 default n
@@ -24,7 +24,7 @@ config BRIDGE_DVFS
24 performance and power consumption to the current processing 24 performance and power consumption to the current processing
25 requirements. 25 requirements.
26 26
27config BRIDGE_MEMPOOL_SIZE 27config TIDSPBRIDGE_MEMPOOL_SIZE
28 hex "Physical memory pool size (Byte)" 28 hex "Physical memory pool size (Byte)"
29 depends on TIDSPBRIDGE 29 depends on TIDSPBRIDGE
30 default 0x600000 30 default 0x600000
@@ -32,20 +32,20 @@ config BRIDGE_MEMPOOL_SIZE
32 Allocate specified size of memory at booting time to avoid allocation 32 Allocate specified size of memory at booting time to avoid allocation
33 failure under heavy memory fragmentation after some use time. 33 failure under heavy memory fragmentation after some use time.
34 34
35config BRIDGE_DEBUG 35config TIDSPBRIDGE_DEBUG
36 bool "DSP Bridge Debug Support" 36 bool "DSP Bridge Debug Support"
37 depends on TIDSPBRIDGE 37 depends on TIDSPBRIDGE
38 help 38 help
39 Say Y to enable Bridge debugging capabilities 39 Say Y to enable Bridge debugging capabilities
40 40
41config BRIDGE_RECOVERY 41config TIDSPBRIDGE_RECOVERY
42 bool "DSP Recovery Support" 42 bool "DSP Recovery Support"
43 depends on TIDSPBRIDGE 43 depends on TIDSPBRIDGE
44 help 44 help
45 In case of DSP fatal error, BRIDGE driver will try to 45 In case of DSP fatal error, BRIDGE driver will try to
46 recover itself. 46 recover itself.
47 47
48config BRIDGE_CACHE_LINE_CHECK 48config TIDSPBRIDGE_CACHE_LINE_CHECK
49 bool "Check buffers to be 128 byte aligned" 49 bool "Check buffers to be 128 byte aligned"
50 depends on TIDSPBRIDGE 50 depends on TIDSPBRIDGE
51 default n 51 default n
@@ -59,7 +59,7 @@ config BRIDGE_CACHE_LINE_CHECK
59 This can lead to heap corruption. Say Y, to enforce the check for 128 59 This can lead to heap corruption. Say Y, to enforce the check for 128
60 byte alignment, buffers failing this check will be rejected. 60 byte alignment, buffers failing this check will be rejected.
61 61
62config BRIDGE_WDT3 62config TIDSPBRIDGE_WDT3
63 bool "Enable WDT3 interruptions" 63 bool "Enable WDT3 interruptions"
64 depends on TIDSPBRIDGE 64 depends on TIDSPBRIDGE
65 default n 65 default n
@@ -68,9 +68,9 @@ config BRIDGE_WDT3
68 charge of refreshing the timer before overflow, if the DSP hangs MPU 68 charge of refreshing the timer before overflow, if the DSP hangs MPU
69 will caught the interrupt and try to recover DSP. 69 will caught the interrupt and try to recover DSP.
70 70
71config WDT_TIMEOUT 71config TIDSPBRIDGE_WDT_TIMEOUT
72 int "DSP watchdog timer timeout (in secs)" 72 int "DSP watchdog timer timeout (in secs)"
73 depends on BRIDGE_WDT3 73 depends on TIDSPBRIDGE_WDT3
74 default 5 74 default 5
75 help 75 help
76 Watchdog timer timeout value, after that time if the watchdog timer 76 Watchdog timer timeout value, after that time if the watchdog timer
@@ -79,7 +79,7 @@ config WDT_TIMEOUT
79comment "Bridge Notifications" 79comment "Bridge Notifications"
80 depends on TIDSPBRIDGE 80 depends on TIDSPBRIDGE
81 81
82config BRIDGE_NTFY_PWRERR 82config TIDSPBRIDGE_NTFY_PWRERR
83 bool "Notify DSP Power Error" 83 bool "Notify DSP Power Error"
84 depends on TIDSPBRIDGE 84 depends on TIDSPBRIDGE
85 help 85 help
diff --git a/drivers/staging/tidspbridge/core/io_sm.c b/drivers/staging/tidspbridge/core/io_sm.c
index 7fb840da627..ee33abb42fc 100644
--- a/drivers/staging/tidspbridge/core/io_sm.c
+++ b/drivers/staging/tidspbridge/core/io_sm.c
@@ -1731,7 +1731,7 @@ void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val)
1731 */ 1731 */
1732int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs) 1732int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs)
1733{ 1733{
1734#ifdef CONFIG_BRIDGE_DVFS 1734#ifdef CONFIG_TIDSPBRIDGE_DVFS
1735 u32 i; 1735 u32 i;
1736 struct dspbridge_platform_data *pdata = 1736 struct dspbridge_platform_data *pdata =
1737 omap_dspbridge_dev->dev.platform_data; 1737 omap_dspbridge_dev->dev.platform_data;
diff --git a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
index 00ebc0b1d51..5df9421ec6d 100644
--- a/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
+++ b/drivers/staging/tidspbridge/core/tiomap3430_pwr.c
@@ -52,7 +52,7 @@
52int handle_constraints_set(struct bridge_dev_context *dev_context, 52int handle_constraints_set(struct bridge_dev_context *dev_context,
53 IN void *pargs) 53 IN void *pargs)
54{ 54{
55#ifdef CONFIG_BRIDGE_DVFS 55#ifdef CONFIG_TIDSPBRIDGE_DVFS
56 u32 *constraint_val; 56 u32 *constraint_val;
57 struct dspbridge_platform_data *pdata = 57 struct dspbridge_platform_data *pdata =
58 omap_dspbridge_dev->dev.platform_data; 58 omap_dspbridge_dev->dev.platform_data;
@@ -65,7 +65,7 @@ int handle_constraints_set(struct bridge_dev_context *dev_context,
65 /* Set the new opp value */ 65 /* Set the new opp value */
66 if (pdata->dsp_set_min_opp) 66 if (pdata->dsp_set_min_opp)
67 (*pdata->dsp_set_min_opp) ((u32) *(constraint_val + 1)); 67 (*pdata->dsp_set_min_opp) ((u32) *(constraint_val + 1));
68#endif /* #ifdef CONFIG_BRIDGE_DVFS */ 68#endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */
69 return 0; 69 return 0;
70} 70}
71 71
@@ -79,7 +79,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context)
79#ifdef CONFIG_PM 79#ifdef CONFIG_PM
80 u16 timeout = PWRSTST_TIMEOUT / 10; 80 u16 timeout = PWRSTST_TIMEOUT / 10;
81 u32 pwr_state; 81 u32 pwr_state;
82#ifdef CONFIG_BRIDGE_DVFS 82#ifdef CONFIG_TIDSPBRIDGE_DVFS
83 u32 opplevel; 83 u32 opplevel;
84 struct io_mgr *hio_mgr; 84 struct io_mgr *hio_mgr;
85#endif 85#endif
@@ -115,7 +115,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context)
115 if (DSP_SUCCEEDED(status)) { 115 if (DSP_SUCCEEDED(status)) {
116 /* Update the Bridger Driver state */ 116 /* Update the Bridger Driver state */
117 dev_context->dw_brd_state = BRD_DSP_HIBERNATION; 117 dev_context->dw_brd_state = BRD_DSP_HIBERNATION;
118#ifdef CONFIG_BRIDGE_DVFS 118#ifdef CONFIG_TIDSPBRIDGE_DVFS
119 status = 119 status =
120 dev_get_io_mgr(dev_context->hdev_obj, &hio_mgr); 120 dev_get_io_mgr(dev_context->hdev_obj, &hio_mgr);
121 if (!hio_mgr) { 121 if (!hio_mgr) {
@@ -131,7 +131,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context)
131 if (pdata->dsp_set_min_opp) 131 if (pdata->dsp_set_min_opp)
132 (*pdata->dsp_set_min_opp) (VDD1_OPP1); 132 (*pdata->dsp_set_min_opp) (VDD1_OPP1);
133 status = 0; 133 status = 0;
134#endif /* CONFIG_BRIDGE_DVFS */ 134#endif /* CONFIG_TIDSPBRIDGE_DVFS */
135 } 135 }
136 } 136 }
137#endif 137#endif
@@ -147,9 +147,9 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
147{ 147{
148 int status = 0; 148 int status = 0;
149#ifdef CONFIG_PM 149#ifdef CONFIG_PM
150#ifdef CONFIG_BRIDGE_NTFY_PWRERR 150#ifdef CONFIG_TIDSPBRIDGE_NTFY_PWRERR
151 struct deh_mgr *hdeh_mgr; 151 struct deh_mgr *hdeh_mgr;
152#endif /* CONFIG_BRIDGE_NTFY_PWRERR */ 152#endif /* CONFIG_TIDSPBRIDGE_NTFY_PWRERR */
153 u16 timeout = PWRSTST_TIMEOUT / 10; 153 u16 timeout = PWRSTST_TIMEOUT / 10;
154 u32 pwr_state, target_pwr_state; 154 u32 pwr_state, target_pwr_state;
155 struct dspbridge_platform_data *pdata = 155 struct dspbridge_platform_data *pdata =
@@ -211,10 +211,10 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
211 if (!timeout) { 211 if (!timeout) {
212 pr_err("%s: Timed out waiting for DSP off mode, state %x\n", 212 pr_err("%s: Timed out waiting for DSP off mode, state %x\n",
213 __func__, pwr_state); 213 __func__, pwr_state);
214#ifdef CONFIG_BRIDGE_NTFY_PWRERR 214#ifdef CONFIG_TIDSPBRIDGE_NTFY_PWRERR
215 dev_get_deh_mgr(dev_context->hdev_obj, &hdeh_mgr); 215 dev_get_deh_mgr(dev_context->hdev_obj, &hdeh_mgr);
216 bridge_deh_notify(hdeh_mgr, DSP_PWRERROR, 0); 216 bridge_deh_notify(hdeh_mgr, DSP_PWRERROR, 0);
217#endif /* CONFIG_BRIDGE_NTFY_PWRERR */ 217#endif /* CONFIG_TIDSPBRIDGE_NTFY_PWRERR */
218 return -ETIMEDOUT; 218 return -ETIMEDOUT;
219 } else { 219 } else {
220 /* Update the Bridger Driver state */ 220 /* Update the Bridger Driver state */
@@ -230,7 +230,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
230 status = dsp_clock_disable_all(dev_context->dsp_per_clks); 230 status = dsp_clock_disable_all(dev_context->dsp_per_clks);
231 if (DSP_FAILED(status)) 231 if (DSP_FAILED(status))
232 return status; 232 return status;
233#ifdef CONFIG_BRIDGE_DVFS 233#ifdef CONFIG_TIDSPBRIDGE_DVFS
234 else if (target_pwr_state == PWRDM_POWER_OFF) { 234 else if (target_pwr_state == PWRDM_POWER_OFF) {
235 /* 235 /*
236 * Set the OPP to low level before moving to OFF mode 236 * Set the OPP to low level before moving to OFF mode
@@ -238,7 +238,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
238 if (pdata->dsp_set_min_opp) 238 if (pdata->dsp_set_min_opp)
239 (*pdata->dsp_set_min_opp) (VDD1_OPP1); 239 (*pdata->dsp_set_min_opp) (VDD1_OPP1);
240 } 240 }
241#endif /* CONFIG_BRIDGE_DVFS */ 241#endif /* CONFIG_TIDSPBRIDGE_DVFS */
242 } 242 }
243#endif /* CONFIG_PM */ 243#endif /* CONFIG_PM */
244 return status; 244 return status;
@@ -338,7 +338,7 @@ int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context,
338 */ 338 */
339int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs) 339int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs)
340{ 340{
341#ifdef CONFIG_BRIDGE_DVFS 341#ifdef CONFIG_TIDSPBRIDGE_DVFS
342 u32 level; 342 u32 level;
343 u32 voltage_domain; 343 u32 voltage_domain;
344 344
@@ -360,7 +360,7 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs)
360 } else { 360 } else {
361 return -EPERM; 361 return -EPERM;
362 } 362 }
363#endif /* #ifdef CONFIG_BRIDGE_DVFS */ 363#endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */
364 return 0; 364 return 0;
365} 365}
366 366
@@ -373,7 +373,7 @@ int post_scale_dsp(struct bridge_dev_context *dev_context,
373 IN void *pargs) 373 IN void *pargs)
374{ 374{
375 int status = 0; 375 int status = 0;
376#ifdef CONFIG_BRIDGE_DVFS 376#ifdef CONFIG_TIDSPBRIDGE_DVFS
377 u32 level; 377 u32 level;
378 u32 voltage_domain; 378 u32 voltage_domain;
379 struct io_mgr *hio_mgr; 379 struct io_mgr *hio_mgr;
@@ -403,7 +403,7 @@ int post_scale_dsp(struct bridge_dev_context *dev_context,
403 } else { 403 } else {
404 status = -EPERM; 404 status = -EPERM;
405 } 405 }
406#endif /* #ifdef CONFIG_BRIDGE_DVFS */ 406#endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */
407 return status; 407 return status;
408} 408}
409 409
diff --git a/drivers/staging/tidspbridge/core/tiomap_io.c b/drivers/staging/tidspbridge/core/tiomap_io.c
index 3b2ea700844..e7cfbee5707 100644
--- a/drivers/staging/tidspbridge/core/tiomap_io.c
+++ b/drivers/staging/tidspbridge/core/tiomap_io.c
@@ -388,7 +388,7 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context,
388 388
389int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val) 389int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val)
390{ 390{
391#ifdef CONFIG_BRIDGE_DVFS 391#ifdef CONFIG_TIDSPBRIDGE_DVFS
392 u32 opplevel = 0; 392 u32 opplevel = 0;
393#endif 393#endif
394 struct dspbridge_platform_data *pdata = 394 struct dspbridge_platform_data *pdata =
@@ -405,7 +405,7 @@ int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val)
405 405
406 if (dev_context->dw_brd_state == BRD_DSP_HIBERNATION || 406 if (dev_context->dw_brd_state == BRD_DSP_HIBERNATION ||
407 dev_context->dw_brd_state == BRD_HIBERNATION) { 407 dev_context->dw_brd_state == BRD_HIBERNATION) {
408#ifdef CONFIG_BRIDGE_DVFS 408#ifdef CONFIG_TIDSPBRIDGE_DVFS
409 if (pdata->dsp_get_opp) 409 if (pdata->dsp_get_opp)
410 opplevel = (*pdata->dsp_get_opp) (); 410 opplevel = (*pdata->dsp_get_opp) ();
411 if (opplevel == VDD1_OPP1) { 411 if (opplevel == VDD1_OPP1) {
diff --git a/drivers/staging/tidspbridge/core/ue_deh.c b/drivers/staging/tidspbridge/core/ue_deh.c
index f73604fefa4..2bdf92e7657 100644
--- a/drivers/staging/tidspbridge/core/ue_deh.c
+++ b/drivers/staging/tidspbridge/core/ue_deh.c
@@ -250,7 +250,7 @@ void bridge_deh_notify(struct deh_mgr *deh, int event, int info)
250 /* Filter subsequent notifications when an error occurs */ 250 /* Filter subsequent notifications when an error occurs */
251 if (dev_context->dw_brd_state != BRD_ERROR) { 251 if (dev_context->dw_brd_state != BRD_ERROR) {
252 ntfy_notify(deh->ntfy_obj, event); 252 ntfy_notify(deh->ntfy_obj, event);
253#ifdef CONFIG_BRIDGE_RECOVERY 253#ifdef CONFIG_TIDSPBRIDGE_RECOVERY
254 bridge_recover_schedule(); 254 bridge_recover_schedule();
255#endif 255#endif
256 } 256 }
diff --git a/drivers/staging/tidspbridge/core/wdt.c b/drivers/staging/tidspbridge/core/wdt.c
index 5881fe040d7..dd1afe7a9e7 100644
--- a/drivers/staging/tidspbridge/core/wdt.c
+++ b/drivers/staging/tidspbridge/core/wdt.c
@@ -25,7 +25,7 @@
25#include <dspbridge/host_os.h> 25#include <dspbridge/host_os.h>
26 26
27 27
28#ifdef CONFIG_BRIDGE_WDT3 28#ifdef CONFIG_TIDSPBRIDGE_WDT3
29 29
30#define OMAP34XX_WDT3_BASE (L4_PER_34XX_BASE + 0x30000) 30#define OMAP34XX_WDT3_BASE (L4_PER_34XX_BASE + 0x30000)
31 31
@@ -84,7 +84,7 @@ int dsp_wdt_init(void)
84void dsp_wdt_sm_set(void *data) 84void dsp_wdt_sm_set(void *data)
85{ 85{
86 dsp_wdt.sm_wdt = data; 86 dsp_wdt.sm_wdt = data;
87 dsp_wdt.sm_wdt->wdt_overflow = CONFIG_WDT_TIMEOUT; 87 dsp_wdt.sm_wdt->wdt_overflow = CONFIG_TIDSPBRIDGE_WDT_TIMEOUT;
88} 88}
89 89
90 90
diff --git a/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h b/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h
index cdca1721067..8efd1fba2f6 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/_chnl_sm.h
@@ -99,7 +99,7 @@ struct shm {
99 struct opp_rqst_struct opp_request; 99 struct opp_rqst_struct opp_request;
100 /* load monitor information structure */ 100 /* load monitor information structure */
101 struct load_mon_struct load_mon_info; 101 struct load_mon_struct load_mon_info;
102#ifdef CONFIG_BRIDGE_WDT3 102#ifdef CONFIG_TIDSPBRIDGE_WDT3
103 /* Flag for WDT enable/disable F/I clocks */ 103 /* Flag for WDT enable/disable F/I clocks */
104 u32 wdt_setclocks; 104 u32 wdt_setclocks;
105 u32 wdt_overflow; /* WDT overflow time */ 105 u32 wdt_overflow; /* WDT overflow time */
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbc.h b/drivers/staging/tidspbridge/include/dspbridge/dbc.h
index 76f049eab02..463760f499a 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/dbc.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/dbc.h
@@ -26,7 +26,7 @@
26#define DBC_ 26#define DBC_
27 27
28/* Assertion Macros: */ 28/* Assertion Macros: */
29#ifdef CONFIG_BRIDGE_DEBUG 29#ifdef CONFIG_TIDSPBRIDGE_DEBUG
30 30
31#define DBC_ASSERT(exp) \ 31#define DBC_ASSERT(exp) \
32 if (!(exp)) \ 32 if (!(exp)) \
diff --git a/drivers/staging/tidspbridge/include/dspbridge/drv.h b/drivers/staging/tidspbridge/include/dspbridge/drv.h
index 66f12ef8201..020bed008b8 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/drv.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/drv.h
@@ -419,7 +419,7 @@ extern int drv_release_resources(IN u32 dw_context,
419 */ 419 */
420int drv_request_bridge_res_dsp(void **phost_resources); 420int drv_request_bridge_res_dsp(void **phost_resources);
421 421
422#ifdef CONFIG_BRIDGE_RECOVERY 422#ifdef CONFIG_TIDSPBRIDGE_RECOVERY
423void bridge_recover_schedule(void); 423void bridge_recover_schedule(void);
424#endif 424#endif
425 425
diff --git a/drivers/staging/tidspbridge/include/dspbridge/io_sm.h b/drivers/staging/tidspbridge/include/dspbridge/io_sm.h
index 3ffd5424a27..c3557efed49 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/io_sm.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/io_sm.h
@@ -41,7 +41,7 @@
41#define IO_SET_LONG(pContext, type, base, field, value) (base->field = value) 41#define IO_SET_LONG(pContext, type, base, field, value) (base->field = value)
42#define IO_GET_LONG(pContext, type, base, field) (base->field) 42#define IO_GET_LONG(pContext, type, base, field) (base->field)
43 43
44#ifdef CONFIG_BRIDGE_DVFS 44#ifdef CONFIG_TIDSPBRIDGE_DVFS
45/* The maximum number of OPPs that are supported */ 45/* The maximum number of OPPs that are supported */
46extern s32 dsp_max_opps; 46extern s32 dsp_max_opps;
47/* The Vdd1 opp table information */ 47/* The Vdd1 opp table information */
diff --git a/drivers/staging/tidspbridge/rmgr/drv.c b/drivers/staging/tidspbridge/rmgr/drv.c
index c6e38e5fe94..72e28044e43 100644
--- a/drivers/staging/tidspbridge/rmgr/drv.c
+++ b/drivers/staging/tidspbridge/rmgr/drv.c
@@ -517,7 +517,7 @@ int drv_get_dev_object(u32 index, struct drv_object *hdrv_obj,
517 struct dev_object **phDevObject) 517 struct dev_object **phDevObject)
518{ 518{
519 int status = 0; 519 int status = 0;
520#ifdef CONFIG_BRIDGE_DEBUG 520#ifdef CONFIG_TIDSPBRIDGE_DEBUG
521 /* used only for Assertions and debug messages */ 521 /* used only for Assertions and debug messages */
522 struct drv_object *pdrv_obj = (struct drv_object *)hdrv_obj; 522 struct drv_object *pdrv_obj = (struct drv_object *)hdrv_obj;
523#endif 523#endif
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;
88char *iva_img; 88char *iva_img;
89static s32 shm_size = 0x500000; /* 5 MB */ 89static s32 shm_size = 0x500000; /* 5 MB */
90static int tc_wordswapon; /* Default value is always false */ 90static 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 */
93static atomic_t bridge_cref; /* number of bridge open handles */ 93static atomic_t bridge_cref; /* number of bridge open handles */
94static struct workqueue_struct *bridge_rec_queue; 94static 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
150static u32 time_out = 1000; 150static u32 time_out = 1000;
151#ifdef CONFIG_BRIDGE_DVFS 151#ifdef CONFIG_TIDSPBRIDGE_DVFS
152s32 dsp_max_opps = VDD1_OPP5; 152s32 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
158const struct omap_opp vdd1_rate_table_bridge[] = { 158const 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
191static void bridge_recover(struct work_struct *work) 191static 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
218static int dspbridge_scale_notification(struct notifier_block *op, 218static 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:
323err2: 323err2:
324 kfree(drv_datap); 324 kfree(drv_datap);
325err1: 325err1:
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
550err: 550err:
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;
diff --git a/drivers/staging/tidspbridge/rmgr/node.c b/drivers/staging/tidspbridge/rmgr/node.c
index b5c99dcfa3b..329fe5eec6c 100644
--- a/drivers/staging/tidspbridge/rmgr/node.c
+++ b/drivers/staging/tidspbridge/rmgr/node.c
@@ -1156,7 +1156,7 @@ int node_create(struct node_object *hnode)
1156 u32 proc_id = 255; 1156 u32 proc_id = 255;
1157 struct dsp_processorstate proc_state; 1157 struct dsp_processorstate proc_state;
1158 struct proc_object *hprocessor; 1158 struct proc_object *hprocessor;
1159#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) 1159#if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
1160 struct dspbridge_platform_data *pdata = 1160 struct dspbridge_platform_data *pdata =
1161 omap_dspbridge_dev->dev.platform_data; 1161 omap_dspbridge_dev->dev.platform_data;
1162#endif 1162#endif
@@ -1208,7 +1208,7 @@ int node_create(struct node_object *hnode)
1208 if (DSP_SUCCEEDED(status)) { 1208 if (DSP_SUCCEEDED(status)) {
1209 /* If node's create function is not loaded, load it */ 1209 /* If node's create function is not loaded, load it */
1210 /* Boost the OPP level to max level that DSP can be requested */ 1210 /* Boost the OPP level to max level that DSP can be requested */
1211#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) 1211#if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
1212 if (pdata->cpu_set_freq) 1212 if (pdata->cpu_set_freq)
1213 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP3]); 1213 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP3]);
1214#endif 1214#endif
@@ -1226,7 +1226,7 @@ int node_create(struct node_object *hnode)
1226 __func__, status); 1226 __func__, status);
1227 } 1227 }
1228 /* Request the lowest OPP level */ 1228 /* Request the lowest OPP level */
1229#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) 1229#if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
1230 if (pdata->cpu_set_freq) 1230 if (pdata->cpu_set_freq)
1231 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]); 1231 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]);
1232#endif 1232#endif
diff --git a/drivers/staging/tidspbridge/rmgr/proc.c b/drivers/staging/tidspbridge/rmgr/proc.c
index 084f7b959af..d138d110bd6 100644
--- a/drivers/staging/tidspbridge/rmgr/proc.c
+++ b/drivers/staging/tidspbridge/rmgr/proc.c
@@ -1081,7 +1081,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index,
1081 struct timeval tv2; 1081 struct timeval tv2;
1082#endif 1082#endif
1083 1083
1084#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) 1084#if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
1085 struct dspbridge_platform_data *pdata = 1085 struct dspbridge_platform_data *pdata =
1086 omap_dspbridge_dev->dev.platform_data; 1086 omap_dspbridge_dev->dev.platform_data;
1087#endif 1087#endif
@@ -1218,7 +1218,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index,
1218 /* Now, attempt to load an exec: */ 1218 /* Now, attempt to load an exec: */
1219 1219
1220 /* Boost the OPP level to Maximum level supported by baseport */ 1220 /* Boost the OPP level to Maximum level supported by baseport */
1221#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) 1221#if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
1222 if (pdata->cpu_set_freq) 1222 if (pdata->cpu_set_freq)
1223 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP5]); 1223 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP5]);
1224#endif 1224#endif
@@ -1236,7 +1236,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index,
1236 } 1236 }
1237 } 1237 }
1238 /* Requesting the lowest opp supported */ 1238 /* Requesting the lowest opp supported */
1239#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) 1239#if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
1240 if (pdata->cpu_set_freq) 1240 if (pdata->cpu_set_freq)
1241 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]); 1241 (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]);
1242#endif 1242#endif
@@ -1338,7 +1338,7 @@ int proc_map(void *hprocessor, void *pmpu_addr, u32 ul_size,
1338 struct dmm_map_object *map_obj; 1338 struct dmm_map_object *map_obj;
1339 u32 tmp_addr = 0; 1339 u32 tmp_addr = 0;
1340 1340
1341#ifdef CONFIG_BRIDGE_CACHE_LINE_CHECK 1341#ifdef CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK
1342 if ((ul_map_attr & BUFMODE_MASK) != RBUF) { 1342 if ((ul_map_attr & BUFMODE_MASK) != RBUF) {
1343 if (!IS_ALIGNED((u32)pmpu_addr, DSP_CACHE_LINE) || 1343 if (!IS_ALIGNED((u32)pmpu_addr, DSP_CACHE_LINE) ||
1344 !IS_ALIGNED(ul_size, DSP_CACHE_LINE)) { 1344 !IS_ALIGNED(ul_size, DSP_CACHE_LINE)) {