Commit b3d23688 authored by Felipe Contreras's avatar Felipe Contreras Committed by Greg Kroah-Hartman

staging: ti dspbridge: prefix configs with TIDSPBRIDGE

Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 94e7e526
...@@ -14,7 +14,7 @@ menuconfig TIDSPBRIDGE ...@@ -14,7 +14,7 @@ menuconfig TIDSPBRIDGE
This driver depends on OMAP Mailbox (OMAP_MBOX_FWK). This driver depends on OMAP Mailbox (OMAP_MBOX_FWK).
config BRIDGE_DVFS config TIDSPBRIDGE_DVFS
bool "Enable Bridge Dynamic Voltage and Frequency Scaling (DVFS)" bool "Enable Bridge Dynamic Voltage and Frequency Scaling (DVFS)"
depends on TIDSPBRIDGE && OMAP_PM_SRF && CPU_FREQ depends on TIDSPBRIDGE && OMAP_PM_SRF && CPU_FREQ
default n default n
...@@ -24,7 +24,7 @@ config BRIDGE_DVFS ...@@ -24,7 +24,7 @@ config BRIDGE_DVFS
performance and power consumption to the current processing performance and power consumption to the current processing
requirements. requirements.
config BRIDGE_MEMPOOL_SIZE config TIDSPBRIDGE_MEMPOOL_SIZE
hex "Physical memory pool size (Byte)" hex "Physical memory pool size (Byte)"
depends on TIDSPBRIDGE depends on TIDSPBRIDGE
default 0x600000 default 0x600000
...@@ -32,20 +32,20 @@ config BRIDGE_MEMPOOL_SIZE ...@@ -32,20 +32,20 @@ config BRIDGE_MEMPOOL_SIZE
Allocate specified size of memory at booting time to avoid allocation Allocate specified size of memory at booting time to avoid allocation
failure under heavy memory fragmentation after some use time. failure under heavy memory fragmentation after some use time.
config BRIDGE_DEBUG config TIDSPBRIDGE_DEBUG
bool "DSP Bridge Debug Support" bool "DSP Bridge Debug Support"
depends on TIDSPBRIDGE depends on TIDSPBRIDGE
help help
Say Y to enable Bridge debugging capabilities Say Y to enable Bridge debugging capabilities
config BRIDGE_RECOVERY config TIDSPBRIDGE_RECOVERY
bool "DSP Recovery Support" bool "DSP Recovery Support"
depends on TIDSPBRIDGE depends on TIDSPBRIDGE
help help
In case of DSP fatal error, BRIDGE driver will try to In case of DSP fatal error, BRIDGE driver will try to
recover itself. recover itself.
config BRIDGE_CACHE_LINE_CHECK config TIDSPBRIDGE_CACHE_LINE_CHECK
bool "Check buffers to be 128 byte aligned" bool "Check buffers to be 128 byte aligned"
depends on TIDSPBRIDGE depends on TIDSPBRIDGE
default n default n
...@@ -59,7 +59,7 @@ config BRIDGE_CACHE_LINE_CHECK ...@@ -59,7 +59,7 @@ config BRIDGE_CACHE_LINE_CHECK
This can lead to heap corruption. Say Y, to enforce the check for 128 This can lead to heap corruption. Say Y, to enforce the check for 128
byte alignment, buffers failing this check will be rejected. byte alignment, buffers failing this check will be rejected.
config BRIDGE_WDT3 config TIDSPBRIDGE_WDT3
bool "Enable WDT3 interruptions" bool "Enable WDT3 interruptions"
depends on TIDSPBRIDGE depends on TIDSPBRIDGE
default n default n
...@@ -68,9 +68,9 @@ config BRIDGE_WDT3 ...@@ -68,9 +68,9 @@ config BRIDGE_WDT3
charge of refreshing the timer before overflow, if the DSP hangs MPU charge of refreshing the timer before overflow, if the DSP hangs MPU
will caught the interrupt and try to recover DSP. will caught the interrupt and try to recover DSP.
config WDT_TIMEOUT config TIDSPBRIDGE_WDT_TIMEOUT
int "DSP watchdog timer timeout (in secs)" int "DSP watchdog timer timeout (in secs)"
depends on BRIDGE_WDT3 depends on TIDSPBRIDGE_WDT3
default 5 default 5
help help
Watchdog timer timeout value, after that time if the watchdog timer Watchdog timer timeout value, after that time if the watchdog timer
...@@ -79,7 +79,7 @@ config WDT_TIMEOUT ...@@ -79,7 +79,7 @@ config WDT_TIMEOUT
comment "Bridge Notifications" comment "Bridge Notifications"
depends on TIDSPBRIDGE depends on TIDSPBRIDGE
config BRIDGE_NTFY_PWRERR config TIDSPBRIDGE_NTFY_PWRERR
bool "Notify DSP Power Error" bool "Notify DSP Power Error"
depends on TIDSPBRIDGE depends on TIDSPBRIDGE
help help
......
...@@ -1731,7 +1731,7 @@ void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val) ...@@ -1731,7 +1731,7 @@ void io_intr_dsp2(IN struct io_mgr *pio_mgr, IN u16 mb_val)
*/ */
int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs) int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs)
{ {
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 i; u32 i;
struct dspbridge_platform_data *pdata = struct dspbridge_platform_data *pdata =
omap_dspbridge_dev->dev.platform_data; omap_dspbridge_dev->dev.platform_data;
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
int handle_constraints_set(struct bridge_dev_context *dev_context, int handle_constraints_set(struct bridge_dev_context *dev_context,
IN void *pargs) IN void *pargs)
{ {
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 *constraint_val; u32 *constraint_val;
struct dspbridge_platform_data *pdata = struct dspbridge_platform_data *pdata =
omap_dspbridge_dev->dev.platform_data; omap_dspbridge_dev->dev.platform_data;
...@@ -65,7 +65,7 @@ int handle_constraints_set(struct bridge_dev_context *dev_context, ...@@ -65,7 +65,7 @@ int handle_constraints_set(struct bridge_dev_context *dev_context,
/* Set the new opp value */ /* Set the new opp value */
if (pdata->dsp_set_min_opp) if (pdata->dsp_set_min_opp)
(*pdata->dsp_set_min_opp) ((u32) *(constraint_val + 1)); (*pdata->dsp_set_min_opp) ((u32) *(constraint_val + 1));
#endif /* #ifdef CONFIG_BRIDGE_DVFS */ #endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */
return 0; return 0;
} }
...@@ -79,7 +79,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context) ...@@ -79,7 +79,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context)
#ifdef CONFIG_PM #ifdef CONFIG_PM
u16 timeout = PWRSTST_TIMEOUT / 10; u16 timeout = PWRSTST_TIMEOUT / 10;
u32 pwr_state; u32 pwr_state;
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 opplevel; u32 opplevel;
struct io_mgr *hio_mgr; struct io_mgr *hio_mgr;
#endif #endif
...@@ -115,7 +115,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context) ...@@ -115,7 +115,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context)
if (DSP_SUCCEEDED(status)) { if (DSP_SUCCEEDED(status)) {
/* Update the Bridger Driver state */ /* Update the Bridger Driver state */
dev_context->dw_brd_state = BRD_DSP_HIBERNATION; dev_context->dw_brd_state = BRD_DSP_HIBERNATION;
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
status = status =
dev_get_io_mgr(dev_context->hdev_obj, &hio_mgr); dev_get_io_mgr(dev_context->hdev_obj, &hio_mgr);
if (!hio_mgr) { if (!hio_mgr) {
...@@ -131,7 +131,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context) ...@@ -131,7 +131,7 @@ int handle_hibernation_from_dsp(struct bridge_dev_context *dev_context)
if (pdata->dsp_set_min_opp) if (pdata->dsp_set_min_opp)
(*pdata->dsp_set_min_opp) (VDD1_OPP1); (*pdata->dsp_set_min_opp) (VDD1_OPP1);
status = 0; status = 0;
#endif /* CONFIG_BRIDGE_DVFS */ #endif /* CONFIG_TIDSPBRIDGE_DVFS */
} }
} }
#endif #endif
...@@ -147,9 +147,9 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd, ...@@ -147,9 +147,9 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
{ {
int status = 0; int status = 0;
#ifdef CONFIG_PM #ifdef CONFIG_PM
#ifdef CONFIG_BRIDGE_NTFY_PWRERR #ifdef CONFIG_TIDSPBRIDGE_NTFY_PWRERR
struct deh_mgr *hdeh_mgr; struct deh_mgr *hdeh_mgr;
#endif /* CONFIG_BRIDGE_NTFY_PWRERR */ #endif /* CONFIG_TIDSPBRIDGE_NTFY_PWRERR */
u16 timeout = PWRSTST_TIMEOUT / 10; u16 timeout = PWRSTST_TIMEOUT / 10;
u32 pwr_state, target_pwr_state; u32 pwr_state, target_pwr_state;
struct dspbridge_platform_data *pdata = struct dspbridge_platform_data *pdata =
...@@ -211,10 +211,10 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd, ...@@ -211,10 +211,10 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
if (!timeout) { if (!timeout) {
pr_err("%s: Timed out waiting for DSP off mode, state %x\n", pr_err("%s: Timed out waiting for DSP off mode, state %x\n",
__func__, pwr_state); __func__, pwr_state);
#ifdef CONFIG_BRIDGE_NTFY_PWRERR #ifdef CONFIG_TIDSPBRIDGE_NTFY_PWRERR
dev_get_deh_mgr(dev_context->hdev_obj, &hdeh_mgr); dev_get_deh_mgr(dev_context->hdev_obj, &hdeh_mgr);
bridge_deh_notify(hdeh_mgr, DSP_PWRERROR, 0); bridge_deh_notify(hdeh_mgr, DSP_PWRERROR, 0);
#endif /* CONFIG_BRIDGE_NTFY_PWRERR */ #endif /* CONFIG_TIDSPBRIDGE_NTFY_PWRERR */
return -ETIMEDOUT; return -ETIMEDOUT;
} else { } else {
/* Update the Bridger Driver state */ /* Update the Bridger Driver state */
...@@ -230,7 +230,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd, ...@@ -230,7 +230,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
status = dsp_clock_disable_all(dev_context->dsp_per_clks); status = dsp_clock_disable_all(dev_context->dsp_per_clks);
if (DSP_FAILED(status)) if (DSP_FAILED(status))
return status; return status;
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
else if (target_pwr_state == PWRDM_POWER_OFF) { else if (target_pwr_state == PWRDM_POWER_OFF) {
/* /*
* Set the OPP to low level before moving to OFF mode * 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,7 +238,7 @@ int sleep_dsp(struct bridge_dev_context *dev_context, IN u32 dw_cmd,
if (pdata->dsp_set_min_opp) if (pdata->dsp_set_min_opp)
(*pdata->dsp_set_min_opp) (VDD1_OPP1); (*pdata->dsp_set_min_opp) (VDD1_OPP1);
} }
#endif /* CONFIG_BRIDGE_DVFS */ #endif /* CONFIG_TIDSPBRIDGE_DVFS */
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */
return status; return status;
...@@ -338,7 +338,7 @@ int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context, ...@@ -338,7 +338,7 @@ int dsp_peripheral_clk_ctrl(struct bridge_dev_context *dev_context,
*/ */
int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs) int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs)
{ {
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 level; u32 level;
u32 voltage_domain; u32 voltage_domain;
...@@ -360,7 +360,7 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs) ...@@ -360,7 +360,7 @@ int pre_scale_dsp(struct bridge_dev_context *dev_context, IN void *pargs)
} else { } else {
return -EPERM; return -EPERM;
} }
#endif /* #ifdef CONFIG_BRIDGE_DVFS */ #endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */
return 0; return 0;
} }
...@@ -373,7 +373,7 @@ int post_scale_dsp(struct bridge_dev_context *dev_context, ...@@ -373,7 +373,7 @@ int post_scale_dsp(struct bridge_dev_context *dev_context,
IN void *pargs) IN void *pargs)
{ {
int status = 0; int status = 0;
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 level; u32 level;
u32 voltage_domain; u32 voltage_domain;
struct io_mgr *hio_mgr; struct io_mgr *hio_mgr;
...@@ -403,7 +403,7 @@ int post_scale_dsp(struct bridge_dev_context *dev_context, ...@@ -403,7 +403,7 @@ int post_scale_dsp(struct bridge_dev_context *dev_context,
} else { } else {
status = -EPERM; status = -EPERM;
} }
#endif /* #ifdef CONFIG_BRIDGE_DVFS */ #endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */
return status; return status;
} }
......
...@@ -388,7 +388,7 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context, ...@@ -388,7 +388,7 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context,
int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val) int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val)
{ {
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
u32 opplevel = 0; u32 opplevel = 0;
#endif #endif
struct dspbridge_platform_data *pdata = struct dspbridge_platform_data *pdata =
...@@ -405,7 +405,7 @@ int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val) ...@@ -405,7 +405,7 @@ int sm_interrupt_dsp(struct bridge_dev_context *dev_context, u16 mb_val)
if (dev_context->dw_brd_state == BRD_DSP_HIBERNATION || if (dev_context->dw_brd_state == BRD_DSP_HIBERNATION ||
dev_context->dw_brd_state == BRD_HIBERNATION) { dev_context->dw_brd_state == BRD_HIBERNATION) {
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
if (pdata->dsp_get_opp) if (pdata->dsp_get_opp)
opplevel = (*pdata->dsp_get_opp) (); opplevel = (*pdata->dsp_get_opp) ();
if (opplevel == VDD1_OPP1) { if (opplevel == VDD1_OPP1) {
......
...@@ -250,7 +250,7 @@ void bridge_deh_notify(struct deh_mgr *deh, int event, int info) ...@@ -250,7 +250,7 @@ void bridge_deh_notify(struct deh_mgr *deh, int event, int info)
/* Filter subsequent notifications when an error occurs */ /* Filter subsequent notifications when an error occurs */
if (dev_context->dw_brd_state != BRD_ERROR) { if (dev_context->dw_brd_state != BRD_ERROR) {
ntfy_notify(deh->ntfy_obj, event); ntfy_notify(deh->ntfy_obj, event);
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
bridge_recover_schedule(); bridge_recover_schedule();
#endif #endif
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <dspbridge/host_os.h> #include <dspbridge/host_os.h>
#ifdef CONFIG_BRIDGE_WDT3 #ifdef CONFIG_TIDSPBRIDGE_WDT3
#define OMAP34XX_WDT3_BASE (L4_PER_34XX_BASE + 0x30000) #define OMAP34XX_WDT3_BASE (L4_PER_34XX_BASE + 0x30000)
...@@ -84,7 +84,7 @@ int dsp_wdt_init(void) ...@@ -84,7 +84,7 @@ int dsp_wdt_init(void)
void dsp_wdt_sm_set(void *data) void dsp_wdt_sm_set(void *data)
{ {
dsp_wdt.sm_wdt = data; dsp_wdt.sm_wdt = data;
dsp_wdt.sm_wdt->wdt_overflow = CONFIG_WDT_TIMEOUT; dsp_wdt.sm_wdt->wdt_overflow = CONFIG_TIDSPBRIDGE_WDT_TIMEOUT;
} }
......
...@@ -99,7 +99,7 @@ struct shm { ...@@ -99,7 +99,7 @@ struct shm {
struct opp_rqst_struct opp_request; struct opp_rqst_struct opp_request;
/* load monitor information structure */ /* load monitor information structure */
struct load_mon_struct load_mon_info; struct load_mon_struct load_mon_info;
#ifdef CONFIG_BRIDGE_WDT3 #ifdef CONFIG_TIDSPBRIDGE_WDT3
/* Flag for WDT enable/disable F/I clocks */ /* Flag for WDT enable/disable F/I clocks */
u32 wdt_setclocks; u32 wdt_setclocks;
u32 wdt_overflow; /* WDT overflow time */ u32 wdt_overflow; /* WDT overflow time */
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#define DBC_ #define DBC_
/* Assertion Macros: */ /* Assertion Macros: */
#ifdef CONFIG_BRIDGE_DEBUG #ifdef CONFIG_TIDSPBRIDGE_DEBUG
#define DBC_ASSERT(exp) \ #define DBC_ASSERT(exp) \
if (!(exp)) \ if (!(exp)) \
......
...@@ -419,7 +419,7 @@ extern int drv_release_resources(IN u32 dw_context, ...@@ -419,7 +419,7 @@ extern int drv_release_resources(IN u32 dw_context,
*/ */
int drv_request_bridge_res_dsp(void **phost_resources); int drv_request_bridge_res_dsp(void **phost_resources);
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
void bridge_recover_schedule(void); void bridge_recover_schedule(void);
#endif #endif
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#define IO_SET_LONG(pContext, type, base, field, value) (base->field = value) #define IO_SET_LONG(pContext, type, base, field, value) (base->field = value)
#define IO_GET_LONG(pContext, type, base, field) (base->field) #define IO_GET_LONG(pContext, type, base, field) (base->field)
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
/* The maximum number of OPPs that are supported */ /* The maximum number of OPPs that are supported */
extern s32 dsp_max_opps; extern s32 dsp_max_opps;
/* The Vdd1 opp table information */ /* The Vdd1 opp table information */
......
...@@ -517,7 +517,7 @@ int drv_get_dev_object(u32 index, struct drv_object *hdrv_obj, ...@@ -517,7 +517,7 @@ int drv_get_dev_object(u32 index, struct drv_object *hdrv_obj,
struct dev_object **phDevObject) struct dev_object **phDevObject)
{ {
int status = 0; int status = 0;
#ifdef CONFIG_BRIDGE_DEBUG #ifdef CONFIG_TIDSPBRIDGE_DEBUG
/* used only for Assertions and debug messages */ /* used only for Assertions and debug messages */
struct drv_object *pdrv_obj = (struct drv_object *)hdrv_obj; struct drv_object *pdrv_obj = (struct drv_object *)hdrv_obj;
#endif #endif
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#include <dspbridge/drvdefs.h> #include <dspbridge/drvdefs.h>
#include <dspbridge/drv.h> #include <dspbridge/drv.h>
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
#include <mach-omap2/omap3-opp.h> #include <mach-omap2/omap3-opp.h>
#endif #endif
...@@ -88,7 +88,7 @@ static char *base_img; ...@@ -88,7 +88,7 @@ static char *base_img;
char *iva_img; char *iva_img;
static s32 shm_size = 0x500000; /* 5 MB */ static s32 shm_size = 0x500000; /* 5 MB */
static int tc_wordswapon; /* Default value is always false */ static int tc_wordswapon; /* Default value is always false */
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
#define REC_TIMEOUT 5000 /*recovery timeout in msecs */ #define REC_TIMEOUT 5000 /*recovery timeout in msecs */
static atomic_t bridge_cref; /* number of bridge open handles */ static atomic_t bridge_cref; /* number of bridge open handles */
static struct workqueue_struct *bridge_rec_queue; static struct workqueue_struct *bridge_rec_queue;
...@@ -148,13 +148,13 @@ static const struct file_operations bridge_fops = { ...@@ -148,13 +148,13 @@ static const struct file_operations bridge_fops = {
#ifdef CONFIG_PM #ifdef CONFIG_PM
static u32 time_out = 1000; static u32 time_out = 1000;
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
s32 dsp_max_opps = VDD1_OPP5; s32 dsp_max_opps = VDD1_OPP5;
#endif #endif
/* Maximum Opps that can be requested by IVA */ /* Maximum Opps that can be requested by IVA */
/*vdd1 rate table */ /*vdd1 rate table */
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
const struct omap_opp vdd1_rate_table_bridge[] = { const struct omap_opp vdd1_rate_table_bridge[] = {
{0, 0, 0}, {0, 0, 0},
/*OPP1 */ /*OPP1 */
...@@ -187,7 +187,7 @@ u32 vdd1_dsp_freq[6][4] = { ...@@ -187,7 +187,7 @@ u32 vdd1_dsp_freq[6][4] = {
{0, 430000, 355000, 430000}, {0, 430000, 355000, 430000},
}; };
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
static void bridge_recover(struct work_struct *work) static void bridge_recover(struct work_struct *work)
{ {
struct dev_object *dev; struct dev_object *dev;
...@@ -214,7 +214,7 @@ void bridge_recover_schedule(void) ...@@ -214,7 +214,7 @@ void bridge_recover_schedule(void)
queue_work(bridge_rec_queue, &bridge_recovery_work); queue_work(bridge_rec_queue, &bridge_recovery_work);
} }
#endif #endif
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
static int dspbridge_scale_notification(struct notifier_block *op, static int dspbridge_scale_notification(struct notifier_block *op,
unsigned long val, void *ptr) unsigned long val, void *ptr)
{ {
...@@ -247,7 +247,7 @@ static int omap3_bridge_startup(struct platform_device *pdev) ...@@ -247,7 +247,7 @@ static int omap3_bridge_startup(struct platform_device *pdev)
u32 phys_membase, phys_memsize; u32 phys_membase, phys_memsize;
int err; int err;
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
bridge_rec_queue = create_workqueue("bridge_rec_queue"); bridge_rec_queue = create_workqueue("bridge_rec_queue");
INIT_WORK(&bridge_recovery_work, bridge_recover); INIT_WORK(&bridge_recovery_work, bridge_recover);
INIT_COMPLETION(bridge_comp); INIT_COMPLETION(bridge_comp);
...@@ -258,7 +258,7 @@ static int omap3_bridge_startup(struct platform_device *pdev) ...@@ -258,7 +258,7 @@ static int omap3_bridge_startup(struct platform_device *pdev)
bridge_suspend_data.suspended = 0; bridge_suspend_data.suspended = 0;
init_waitqueue_head(&bridge_suspend_data.suspend_wq); init_waitqueue_head(&bridge_suspend_data.suspend_wq);
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
for (i = 0; i < 6; i++) for (i = 0; i < 6; i++)
pdata->mpu_speed[i] = vdd1_rate_table_bridge[i].rate; pdata->mpu_speed[i] = vdd1_rate_table_bridge[i].rate;
...@@ -323,7 +323,7 @@ static int omap3_bridge_startup(struct platform_device *pdev) ...@@ -323,7 +323,7 @@ static int omap3_bridge_startup(struct platform_device *pdev)
err2: err2:
kfree(drv_datap); kfree(drv_datap);
err1: err1:
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
cpufreq_unregister_notifier(&iva_clk_notifier, cpufreq_unregister_notifier(&iva_clk_notifier,
CPUFREQ_TRANSITION_NOTIFIER); CPUFREQ_TRANSITION_NOTIFIER);
#endif #endif
...@@ -337,7 +337,7 @@ static int __devinit omap34_xx_bridge_probe(struct platform_device *pdev) ...@@ -337,7 +337,7 @@ static int __devinit omap34_xx_bridge_probe(struct platform_device *pdev)
{ {
int err; int err;
dev_t dev = 0; dev_t dev = 0;
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
int i = 0; int i = 0;
#endif #endif
...@@ -400,12 +400,12 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev) ...@@ -400,12 +400,12 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev)
if (DSP_FAILED(status)) if (DSP_FAILED(status))
goto func_cont; goto func_cont;
#ifdef CONFIG_BRIDGE_DVFS #ifdef CONFIG_TIDSPBRIDGE_DVFS
if (cpufreq_unregister_notifier(&iva_clk_notifier, if (cpufreq_unregister_notifier(&iva_clk_notifier,
CPUFREQ_TRANSITION_NOTIFIER)) CPUFREQ_TRANSITION_NOTIFIER))
pr_err("%s: cpufreq_unregister_notifier failed for iva2_ck\n", pr_err("%s: cpufreq_unregister_notifier failed for iva2_ck\n",
__func__); __func__);
#endif /* #ifdef CONFIG_BRIDGE_DVFS */ #endif /* #ifdef CONFIG_TIDSPBRIDGE_DVFS */
if (driver_context) { if (driver_context) {
/* Put the DSP in reset state */ /* Put the DSP in reset state */
...@@ -497,7 +497,7 @@ static int bridge_open(struct inode *ip, struct file *filp) ...@@ -497,7 +497,7 @@ static int bridge_open(struct inode *ip, struct file *filp)
* process context list. * process context list.
*/ */
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
if (recover) { if (recover) {
if (filp->f_flags & O_NONBLOCK || if (filp->f_flags & O_NONBLOCK ||
wait_for_completion_interruptible(&bridge_open_comp)) wait_for_completion_interruptible(&bridge_open_comp))
...@@ -518,7 +518,7 @@ static int bridge_open(struct inode *ip, struct file *filp) ...@@ -518,7 +518,7 @@ static int bridge_open(struct inode *ip, struct file *filp)
} }
filp->private_data = pr_ctxt; filp->private_data = pr_ctxt;
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
if (!status) if (!status)
atomic_inc(&bridge_cref); atomic_inc(&bridge_cref);
#endif #endif
...@@ -548,7 +548,7 @@ static int bridge_release(struct inode *ip, struct file *filp) ...@@ -548,7 +548,7 @@ static int bridge_release(struct inode *ip, struct file *filp)
filp->private_data = NULL; filp->private_data = NULL;
err: err:
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
if (!atomic_dec_return(&bridge_cref)) if (!atomic_dec_return(&bridge_cref))
complete(&bridge_comp); complete(&bridge_comp);
#endif #endif
...@@ -564,7 +564,7 @@ static long bridge_ioctl(struct file *filp, unsigned int code, ...@@ -564,7 +564,7 @@ static long bridge_ioctl(struct file *filp, unsigned int code,
union Trapped_Args buf_in; union Trapped_Args buf_in;
DBC_REQUIRE(filp != NULL); DBC_REQUIRE(filp != NULL);
#ifdef CONFIG_BRIDGE_RECOVERY #ifdef CONFIG_TIDSPBRIDGE_RECOVERY
if (recover) { if (recover) {
status = -EIO; status = -EIO;
goto err; goto err;
......
...@@ -1156,7 +1156,7 @@ int node_create(struct node_object *hnode) ...@@ -1156,7 +1156,7 @@ int node_create(struct node_object *hnode)
u32 proc_id = 255; u32 proc_id = 255;
struct dsp_processorstate proc_state; struct dsp_processorstate proc_state;
struct proc_object *hprocessor; struct proc_object *hprocessor;
#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) #if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
struct dspbridge_platform_data *pdata = struct dspbridge_platform_data *pdata =
omap_dspbridge_dev->dev.platform_data; omap_dspbridge_dev->dev.platform_data;
#endif #endif
...@@ -1208,7 +1208,7 @@ int node_create(struct node_object *hnode) ...@@ -1208,7 +1208,7 @@ int node_create(struct node_object *hnode)
if (DSP_SUCCEEDED(status)) { if (DSP_SUCCEEDED(status)) {
/* If node's create function is not loaded, load it */ /* If node's create function is not loaded, load it */
/* Boost the OPP level to max level that DSP can be requested */ /* Boost the OPP level to max level that DSP can be requested */
#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) #if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
if (pdata->cpu_set_freq) if (pdata->cpu_set_freq)
(*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP3]); (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP3]);
#endif #endif
...@@ -1226,7 +1226,7 @@ int node_create(struct node_object *hnode) ...@@ -1226,7 +1226,7 @@ int node_create(struct node_object *hnode)
__func__, status); __func__, status);
} }
/* Request the lowest OPP level */ /* Request the lowest OPP level */
#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) #if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
if (pdata->cpu_set_freq) if (pdata->cpu_set_freq)
(*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]); (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]);
#endif #endif
......
...@@ -1081,7 +1081,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index, ...@@ -1081,7 +1081,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index,
struct timeval tv2; struct timeval tv2;
#endif #endif
#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) #if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
struct dspbridge_platform_data *pdata = struct dspbridge_platform_data *pdata =
omap_dspbridge_dev->dev.platform_data; omap_dspbridge_dev->dev.platform_data;
#endif #endif
...@@ -1218,7 +1218,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index, ...@@ -1218,7 +1218,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index,
/* Now, attempt to load an exec: */ /* Now, attempt to load an exec: */
/* Boost the OPP level to Maximum level supported by baseport */ /* Boost the OPP level to Maximum level supported by baseport */
#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) #if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
if (pdata->cpu_set_freq) if (pdata->cpu_set_freq)
(*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP5]); (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP5]);
#endif #endif
...@@ -1236,7 +1236,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index, ...@@ -1236,7 +1236,7 @@ int proc_load(void *hprocessor, IN CONST s32 argc_index,
} }
} }
/* Requesting the lowest opp supported */ /* Requesting the lowest opp supported */
#if defined(CONFIG_BRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ) #if defined(CONFIG_TIDSPBRIDGE_DVFS) && !defined(CONFIG_CPU_FREQ)
if (pdata->cpu_set_freq) if (pdata->cpu_set_freq)
(*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]); (*pdata->cpu_set_freq) (pdata->mpu_speed[VDD1_OPP1]);
#endif #endif
...@@ -1338,7 +1338,7 @@ int proc_map(void *hprocessor, void *pmpu_addr, u32 ul_size, ...@@ -1338,7 +1338,7 @@ int proc_map(void *hprocessor, void *pmpu_addr, u32 ul_size,
struct dmm_map_object *map_obj; struct dmm_map_object *map_obj;
u32 tmp_addr = 0; u32 tmp_addr = 0;
#ifdef CONFIG_BRIDGE_CACHE_LINE_CHECK #ifdef CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK
if ((ul_map_attr & BUFMODE_MASK) != RBUF) { if ((ul_map_attr & BUFMODE_MASK) != RBUF) {
if (!IS_ALIGNED((u32)pmpu_addr, DSP_CACHE_LINE) || if (!IS_ALIGNED((u32)pmpu_addr, DSP_CACHE_LINE) ||
!IS_ALIGNED(ul_size, DSP_CACHE_LINE)) { !IS_ALIGNED(ul_size, DSP_CACHE_LINE)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment