# Copyright 2025 NXP
# SPDX-License-Identifier: Apache-2.0

config NXP_PMC_TMPSNS
	bool "NXP PMC Temperature Sensor (TMPSNS)"
	default y
	depends on DT_HAS_NXP_PMC_TMPSNS_ENABLED
	select FPU if CPU_HAS_FPU
	help
	  Enable driver for the NXP PMC temperature sensor.
	  This is used to retrieve on-die operational temperature.

if NXP_PMC_TMPSNS
config NXP_PMC_TMPSNS_CALIBRATION_OTP_FUSE_INDEX
	int "OTP FUSE index"
	default 77 if SOC_SERIES_IMXRT7XX
	help
	  TSENS_CAL is an 8-bit signed calibration constant
	  retrieved from non-volatile memory. We need this
	  index to read the fuse to get TSENS_CAL.

config NXP_PMC_TMPSNS_USE_FLOAT_CALC
	bool "Use float and FPU"
	default y
	help
	  When enabled, the driver performs more floating-point
	  calculations. If your SoC has an FPU, it is recommended
	  to select this option. Testing has shown that enabling
	  this option results in shorter code execution times.

endif
