drivers: clock: stm32-mco: support MCO with enable bit
On STM32MP13, a dedicated MCO enable bit within the MCO clock control register must be set in order to activate the MCO. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
This commit is contained in:
parent
13a36718fa
commit
933446ff4a
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ static int stm32_mco_init(const struct device *dev)
|
|||
STM32_DT_CLKSEL_VAL_GET(pclken->enr) <<
|
||||
STM32_DT_CLKSEL_SHIFT_GET(pclken->enr));
|
||||
|
||||
#if defined(MCOX_ON)
|
||||
sys_set_bits(DT_REG_ADDR(DT_NODELABEL(rcc)) + STM32_DT_CLKSEL_REG_GET(pclken->enr),
|
||||
MCOX_ON);
|
||||
#endif
|
||||
|
||||
#if defined(HAS_PRESCALER)
|
||||
/* MCO prescaler */
|
||||
sys_clear_bits(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue