Skip to content

Commit 6bd7f78

Browse files
jvasanth1galak
authored andcommitted
mec150x: clk ctrl: fix clock trim register update
Program the right trim control register for mec150x. This fixes uart debug console output issue. Signed-off-by: Jay Vasanth <[email protected]>
1 parent 54031d2 commit 6bd7f78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/clock_control/clock_control_mchp_xec.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ struct vbatr_hw_regs {
131131
volatile uint32_t CLK32_SRC;
132132
uint32_t RSVD2[2];
133133
volatile uint32_t CLK32_TRIM;
134+
uint32_t RSVD3[1];
135+
volatile uint32_t CLK32_TRIM_CTRL;
134136
};
135137

136138
/* MEC152x VBAT CLK32_SRC register defines */
@@ -279,7 +281,7 @@ static int soc_clk32_init(const struct device *dev,
279281

280282
if (MCHP_DEVICE_ID() == XEC_CC15_GCFG_DID_DEV_ID_MEC150x) {
281283
if (MCHP_REVISION_ID() == MCHP_GCFG_REV_B0) {
282-
vbr->CLK32_TRIM = XEC_CC15_TRIM_ENABLE_INT_OSCILLATOR;
284+
vbr->CLK32_TRIM_CTRL = XEC_CC15_TRIM_ENABLE_INT_OSCILLATOR;
283285
}
284286
}
285287

0 commit comments

Comments
 (0)