diff options
| author | Sameer Pujar <spujar@nvidia.com> | 2017-05-18 08:53:41 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-17 02:47:43 -0400 |
| commit | bbc79b8745e6cf24c8bf90ba53516cdde267cc41 (patch) | |
| tree | c63d4b782d02fad0417a5e4903cf39705426dd00 /include/linux | |
| parent | 046024e1888ed10719d9cdb318446c2872e1bb93 (diff) | |
drivers: nvadsp: support for adma regdump callback
With adma driver as module, following compilation error is seen
"undefined reference to tegra_adma_dump_ch_reg".
In the current patch, adsp code exports a function to set regdump
function call back. This function is used by adsp audio driver to
set the function pointer to tegra_adma_dump_ch_reg. This is done
in tegra210_adsp_init().
Bug 200289390
Reviewed-on: http://git-master/r/1483001
Change-Id: I1ef259cf3b988a41720fb6706d39d9bd6f86aac3
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
(cherry picked from commit 36ccba1262928a6ce8b0f4fff1d4ad2591c4305d)
Reviewed-on: https://git-master.nvidia.com/r/1528158
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1537339
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tegra_nvadsp.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/tegra_nvadsp.h b/include/linux/tegra_nvadsp.h index 6bace0eda..b5cc25dbf 100644 --- a/include/linux/tegra_nvadsp.h +++ b/include/linux/tegra_nvadsp.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * A Header file for managing ADSP/APE | 2 | * A Header file for managing ADSP/APE |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
| @@ -357,6 +357,16 @@ static inline long wait_for_nvadsp_app_complete_timeout(nvadsp_app_info_t *info, | |||
| 357 | return ret; | 357 | return ret; |
| 358 | } | 358 | } |
| 359 | 359 | ||
| 360 | /* | ||
| 361 | * set adma reg dump callback function pointer | ||
| 362 | * @cb_adma_regdump: function pointer for callback | ||
| 363 | * | ||
| 364 | * This api is exported and can be accessed by adsp audio driver, | ||
| 365 | * which during adsp init, calls this api to set the callback | ||
| 366 | * function pointer | ||
| 367 | */ | ||
| 368 | void nvadsp_set_adma_dump_reg(void (*cb_adma_regdump)(void)); | ||
| 369 | |||
| 360 | #ifdef CONFIG_TEGRA_ADSP_DFS | 370 | #ifdef CONFIG_TEGRA_ADSP_DFS |
| 361 | /* | 371 | /* |
| 362 | * Override adsp freq and reinit actmon counters | 372 | * Override adsp freq and reinit actmon counters |
