soc: nxp: k6x: enable bandgap buffer if temperature sensor is enabled
Enable the bandgap buffer on the NXP Kinetis K6x SoC series Power Management Controller (PMC) if the internal temperature sensor is in use. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
dc2c04b243
commit
774367b14a
1 changed files with 5 additions and 0 deletions
|
@ -135,6 +135,11 @@ static int fsl_frdm_k64f_init(struct device *arg)
|
|||
/* release I/O power hold to allow normal run state */
|
||||
PMC->REGSC |= PMC_REGSC_ACKISO_MASK;
|
||||
|
||||
#ifdef CONFIG_TEMP_KINETIS
|
||||
/* enable bandgap buffer */
|
||||
PMC->REGSC |= PMC_REGSC_BGBE_MASK;
|
||||
#endif /* CONFIG_TEMP_KINETIS */
|
||||
|
||||
#if !defined(CONFIG_ARM_MPU)
|
||||
/*
|
||||
* Disable memory protection and clear slave port errors.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue