soc: mcxc: Enable bandgap buffer for on die temperature measurement
Bandgap voltage is used for on die temperature measurement. Bandgap buffer has to be enabled explicitly to get correct tempearature. Enable the buffer if TEMP_KINETIS is selected. Signed-off-by: Michal Smola <michal.smola@nxp.com>
This commit is contained in:
parent
5183620949
commit
da6310c96c
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ static void clock_init(void)
|
|||
|
||||
void soc_early_init_hook(void)
|
||||
{
|
||||
#ifdef CONFIG_TEMP_KINETIS
|
||||
/* enable bandgap buffer */
|
||||
PMC->REGSC |= PMC_REGSC_BGBE_MASK;
|
||||
#endif /* CONFIG_TEMP_KINETIS */
|
||||
|
||||
clock_init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue