coresight: disable tpiu at init to support older targets

Some targets require tpiu is disabled before other sinks like ETB
get enabled to get proper ETM trace.

Change-Id: Idcacf7b6515fd17c3a49c74a338258f02631f7cc
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
This commit is contained in:
Pratik Patel 2012-06-17 18:42:44 -07:00 committed by Stephen Boyd
parent fcc2ed9263
commit 1a2f7220d8

View file

@ -119,9 +119,17 @@ static int __devinit tpiu_probe(struct platform_device *pdev)
if (ret)
goto err_clk_rate;
/* Disable tpiu to support older targets that need this */
ret = clk_prepare_enable(drvdata->clk);
if (ret)
goto err_clk_enable;
__tpiu_disable();
clk_disable_unprepare(drvdata->clk);
dev_info(drvdata->dev, "TPIU initialized\n");
return 0;
err_clk_enable:
err_clk_rate:
clk_put(drvdata->clk);
err_clk_get: