# Copyright 2025-2026 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
	imply OTP
	select FPU if CPU_HAS_FPU
	select NVMEM if $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_PMC_TMPSNS),nvmem-cells)
	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_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
