Skip to content
Permalink
Browse files

soc: mchp: Perform OTP override for 32KHz internal oscillator

Perform OTP override when selecting 32Khz internal oscillator
to ensure 32KHz is enabled.

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
  • Loading branch information...
Jose Alberto Meza authored and andrewboie committed Aug 7, 2019
1 parent 7b3cd7d commit e98ea27cc1e6ea8f439d3648578153321a943a5f
Showing with 6 additions and 1 deletion.
  1. +6 −1 soc/arm/microchip_mec/mec1501/soc.c
@@ -84,7 +84,12 @@ static int soc_clk32_init(void)
new_clk32 = MCHP_VBATR_USE_32KIN_PIN;
#endif
#else
/* Use internal 32KHz +/-2% silicon oscillator */
/* Use internal 32KHz +/-2% silicon oscillator
* if required performed OTP value override
*/
if (MCHP_REVISION_ID() == MCHP_GCFG_REV_B0) {
VBATR_REGS->CKK32_TRIM = 0x06;
}
new_clk32 = MCHP_VBATR_USE_SIL_OSC;
#endif
clk32_change(new_clk32);

0 comments on commit e98ea27

Please sign in to comment.
You can’t perform that action at this time.