camera: Use conftest for finding tegra264_io_pad_power_* available

Use conftest for finding whether APIs tegra264_io_pad_power_*
are available or not before using it.

Bug 4911768

Change-Id: Ic8df4a0109a270d5a486a67900ed7fe4c57b79be
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
Laxman Dewangan
2024-10-24 05:21:28 +00:00
committed by Jon Hunter
parent 09d2e16146
commit 055bd73cbb
3 changed files with 28 additions and 0 deletions

View File

@@ -8143,6 +8143,20 @@ compile_test() {
compile_check_conftest "$CODE" "NV_TEGRA264_CHIP_ID_PRESENT" "" "types"
;;
tegra264_io_pad_power_enable)
#
# Determine if tegra264_io_pad_power_enable() exists or not
#
CODE="
#include <soc/tegra/pmc.h>
int conftest_tegra264_io_pad_power_enable(void) {
tegra264_io_pad_power_enable();
}
"
compile_check_conftest "$CODE" "NV_TEGRA264_IO_PAD_POWER_ENABLE_PRESENT" "" "functions"
;;
tegra_ivc_struct_has_iosys_map)
#
# Determine if the 'tegra_ivc' structure has the 'map' argument.