mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
sound: tegra-alt: Route interrupts from DT
Routing ADMA interrupts to ADSP or HOST from Device tree. This reduces adding un-necessary code for routing interrupts using tegra_agic_route_interrupt for statically routing. Bug 200152320 Change-Id: I15df7a9c65f1ec0322122bb7301900217b8d36d2 Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: http://git-master/r/1000827 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Gaurav Tendolkar <gtendolkar@nvidia.com> Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
9d576648ea
commit
a15d51b4ab
@@ -2905,18 +2905,10 @@ static int tegra210_adsp_audio_platform_probe(struct platform_device *pdev)
|
||||
/* HACK : Should be handled through dma-engine */
|
||||
tegra_adsp_pd_add_device(&pdev->dev);
|
||||
pm_runtime_get_sync(&pdev->dev);
|
||||
for (i = 0; i < TEGRA210_ADSP_ADMA_CHANNEL_COUNT; i++) {
|
||||
ret = tegra_agic_route_interrupt(
|
||||
INT_ADMA_EOT0 + TEGRA210_ADSP_ADMA_CHANNEL_START + i,
|
||||
TEGRA_AGIC_ADSP);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "Failed to route INT to ADSP");
|
||||
goto err_pm_disable;
|
||||
}
|
||||
}
|
||||
pm_runtime_put(&pdev->dev);
|
||||
pm_runtime_put_sync(&pdev->dev);
|
||||
tegra_adsp_pd_remove_device(&pdev->dev);
|
||||
/* HACK end */
|
||||
/* HACK end */
|
||||
|
||||
|
||||
for (i = 0; i < TEGRA210_ADSP_VIRT_REG_MAX; i++) {
|
||||
adsp->apps[i].reg = i;
|
||||
|
||||
Reference in New Issue
Block a user