coresight: set appropriate clock rate for coresight devices
For certain coresight devices probed via amba framework the clock rate is not being set during probe time. The patch sets the rate to an appropriate value instead of relying on default behavior. Change-Id: I15607dcb06564a603910709fafb9eba563bf102c Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
This commit is contained in:
parent
9e2d528dc4
commit
e96c109b73
3 changed files with 11 additions and 0 deletions
|
@ -2801,6 +2801,10 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
|
|||
|
||||
put_online_cpus();
|
||||
|
||||
ret = clk_set_rate(adev->pclk, CORESIGHT_CLK_RATE_TRACE);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
pm_runtime_put(&adev->dev);
|
||||
|
||||
mutex_lock(&drvdata->mutex);
|
||||
|
|
|
@ -1890,6 +1890,10 @@ static int tmc_probe(struct amba_device *adev, const struct amba_id *id)
|
|||
drvdata->size = readl_relaxed(drvdata->base + TMC_RSZ) * 4;
|
||||
}
|
||||
|
||||
ret = clk_set_rate(adev->pclk, CORESIGHT_CLK_RATE_TRACE);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
pm_runtime_put(&adev->dev);
|
||||
|
||||
if (drvdata->config_type == TMC_CONFIG_TYPE_ETR) {
|
||||
|
|
|
@ -162,6 +162,9 @@ static int tpiu_probe(struct amba_device *adev, const struct amba_id *id)
|
|||
|
||||
/* Disable tpiu to support older devices */
|
||||
tpiu_disable_hw(drvdata);
|
||||
ret = clk_set_rate(adev->pclk, CORESIGHT_CLK_RATE_TRACE);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
pm_runtime_put(&adev->dev);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue