diff options
author | Ernesto Ramos <ernesto@ti.com> | 2010-09-30 14:49:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-05 11:52:09 -0400 |
commit | 0ee5ab30d19c8e82fdf725c1f67cf71bb67c8373 (patch) | |
tree | 048abaabb9a86ebcec49a40e1bb6f02accae2739 | |
parent | d10009211ce12c70f8d9084745cadc413ddec7f2 (diff) |
staging: ti dspbridge: disable all peripherals at bridge_brd_stop
DSP Bridge needs to disable the peripheral clocks when switches to
BRD_STOPPED since that would prevent the domain to enter in OFF state.
Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/tidspbridge/core/tiomap3430.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c index f1e59e84ea38..e32e98a65a59 100644 --- a/drivers/staging/tidspbridge/core/tiomap3430.c +++ b/drivers/staging/tidspbridge/core/tiomap3430.c | |||
@@ -625,7 +625,6 @@ static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt) | |||
625 | struct bridge_dev_context *dev_context = dev_ctxt; | 625 | struct bridge_dev_context *dev_context = dev_ctxt; |
626 | struct pg_table_attrs *pt_attrs; | 626 | struct pg_table_attrs *pt_attrs; |
627 | u32 dsp_pwr_state; | 627 | u32 dsp_pwr_state; |
628 | int clk_status; | ||
629 | struct dspbridge_platform_data *pdata = | 628 | struct dspbridge_platform_data *pdata = |
630 | omap_dspbridge_dev->dev.platform_data; | 629 | omap_dspbridge_dev->dev.platform_data; |
631 | 630 | ||
@@ -679,7 +678,8 @@ static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt) | |||
679 | (*pdata->dsp_prm_write)(OMAP3430_RST1_IVA2_MASK | OMAP3430_RST2_IVA2_MASK | | 678 | (*pdata->dsp_prm_write)(OMAP3430_RST1_IVA2_MASK | OMAP3430_RST2_IVA2_MASK | |
680 | OMAP3430_RST3_IVA2_MASK, OMAP3430_IVA2_MOD, OMAP2_RM_RSTCTRL); | 679 | OMAP3430_RST3_IVA2_MASK, OMAP3430_IVA2_MOD, OMAP2_RM_RSTCTRL); |
681 | 680 | ||
682 | clk_status = dsp_clk_disable(DSP_CLK_IVA2); | 681 | dsp_clock_disable_all(dev_context->dsp_per_clks); |
682 | dsp_clk_disable(DSP_CLK_IVA2); | ||
683 | 683 | ||
684 | return status; | 684 | return status; |
685 | } | 685 | } |