mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
nvidia-oot: add support to use upstream ivc driver
add conftest support to use upstream ivc driver if tegra_ivc_empty API is exported by kernel. Bug 4551265 Change-Id: I030bf0c4012aedf4ec623fba2b397869972061a1 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3214054 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
1c3c34f33f
commit
56127d0d9b
@@ -186,6 +186,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += tc_taprio_qopt_offload_struct_has_cmd
|
|||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra264_chip_id
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra264_chip_id
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_dev_iommu_get_stream_id
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_dev_iommu_get_stream_id
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map
|
||||||
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_use_ivc_ext_driver
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_priv
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_priv
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_ops_struct_has_get_trip_type
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_device_ops_struct_has_get_trip_type
|
||||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_for_each_trip
|
NV_CONFTEST_FUNCTION_COMPILE_TESTS += thermal_zone_for_each_trip
|
||||||
|
|||||||
@@ -8109,6 +8109,19 @@ compile_test() {
|
|||||||
compile_check_conftest "$CODE" "NV_TEGRA_IVC_STRUCT_HAS_IOSYS_MAP" "" "types"
|
compile_check_conftest "$CODE" "NV_TEGRA_IVC_STRUCT_HAS_IOSYS_MAP" "" "types"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
tegra_ivc_use_ivc_ext_driver)
|
||||||
|
#
|
||||||
|
# Determine to use ivc ext driver
|
||||||
|
#
|
||||||
|
CODE="
|
||||||
|
#include <soc/tegra/ivc.h>
|
||||||
|
void conftest_tegra_ivc_use_ivc_ext_driver(void) {
|
||||||
|
tegra_ivc_empty();
|
||||||
|
}"
|
||||||
|
|
||||||
|
compile_check_conftest "$CODE" "NV_TEGRA_IVC_USE_IVC_EXT_DRIVER" "" "types"
|
||||||
|
;;
|
||||||
|
|
||||||
thermal_zone_device_priv)
|
thermal_zone_device_priv)
|
||||||
#
|
#
|
||||||
# Determine if the function thermal_zone_device_priv() is present.
|
# Determine if the function thermal_zone_device_priv() is present.
|
||||||
|
|||||||
Reference in New Issue
Block a user