diff options
| author | Vishruth Jain <vishruthj@nvidia.com> | 2020-01-10 04:51:47 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2020-03-16 12:47:35 -0400 |
| commit | 7225347fd05cb65c0d92790d4c65769de9a3b062 (patch) | |
| tree | 8a6456192c38ec8704d85155a47cd144cd2a3b13 /include | |
| parent | a28c7882b9c06d6bc3cce8cf8eeeb398adf64163 (diff) | |
aon: make pllaon interfaces available
Make interfaces for PLLAON clock control and status over IVC with SPE
available to kernel
Bug 200409889
Change-Id: I515003e7def04ee6c12921166453241ea368a1d6
Signed-off-by: Vishruth Jain <vishruthj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2277163
Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
| -rw-r--r-- | include/soc/tegra/tegra-aon-ivc-pllaon.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/soc/tegra/tegra-aon-ivc-pllaon.h b/include/soc/tegra/tegra-aon-ivc-pllaon.h new file mode 100644 index 000000000..85e19ae0f --- /dev/null +++ b/include/soc/tegra/tegra-aon-ivc-pllaon.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. | ||
| 3 | * | ||
| 4 | * NVIDIA CORPORATION and its licensors retain all intellectual property | ||
| 5 | * and proprietary rights in and to this software, related documentation | ||
| 6 | * and any modifications thereto. Any use, reproduction, disclosure or | ||
| 7 | * distribution of this software and related documentation without an express | ||
| 8 | * license agreement from NVIDIA CORPORATION is strictly prohibited. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef _TEGRA_AON_IVC_PLLAON_H_ | ||
| 12 | #define _TEGRA_AON_IVC_PLLAON_H_ | ||
| 13 | |||
| 14 | #include <linux/types.h> | ||
| 15 | |||
| 16 | /* Get state of PLLAON clock from aon controller. | ||
| 17 | * 1 - if PLLAON clock is enabled | ||
| 18 | * 0 - if PLLAON clock is disabled | ||
| 19 | * -EINVAL - if IVC fails | ||
| 20 | */ | ||
| 21 | int tegra_aon_get_pllaon_state(void); | ||
| 22 | |||
| 23 | /* Set state of PLLAON clock from aon controller. | ||
| 24 | * @enable true - to enable PLLAON clock | ||
| 25 | * false - to disable PLLAON clock | ||
| 26 | * @return | ||
| 27 | * 0 - if IVC with AON controller is successful | ||
| 28 | * -EINVAL - if IVC fails | ||
| 29 | */ | ||
| 30 | int tegra_aon_set_pllaon_state(bool enable); | ||
| 31 | |||
| 32 | #endif | ||
