Lines Matching +full:prescaler +full:- +full:src
2 * SPDX-License-Identifier: Apache-2.0
24 uint32_t prescaler; member
32 const struct stm32_mco_config *config = dev->config; in stm32_mco_init()
33 const struct stm32_pclken *pclken = &config->pclken[0]; in stm32_mco_init()
36 err = enabled_clock(pclken->bus); in stm32_mco_init()
38 /* Attempt to configure a src clock not available or not valid */ in stm32_mco_init()
44 DT_REG_ADDR(DT_NODELABEL(rcc)) + STM32_MCO_CFGR_REG_GET(pclken->enr), in stm32_mco_init()
45 STM32_MCO_CFGR_MASK_GET(pclken->enr) << in stm32_mco_init()
46 STM32_MCO_CFGR_SHIFT_GET(pclken->enr)); in stm32_mco_init()
48 DT_REG_ADDR(DT_NODELABEL(rcc)) + STM32_MCO_CFGR_REG_GET(pclken->enr), in stm32_mco_init()
49 STM32_MCO_CFGR_VAL_GET(pclken->enr) << in stm32_mco_init()
50 STM32_MCO_CFGR_SHIFT_GET(pclken->enr)); in stm32_mco_init()
53 /* MCO prescaler */ in stm32_mco_init()
55 DT_REG_ADDR(DT_NODELABEL(rcc)) + STM32_MCO_CFGR_REG_GET(config->prescaler), in stm32_mco_init()
56 STM32_MCO_CFGR_MASK_GET(config->prescaler) << in stm32_mco_init()
57 STM32_MCO_CFGR_SHIFT_GET(config->prescaler)); in stm32_mco_init()
59 DT_REG_ADDR(DT_NODELABEL(rcc)) + STM32_MCO_CFGR_REG_GET(config->prescaler), in stm32_mco_init()
60 STM32_MCO_CFGR_VAL_GET(config->prescaler) << in stm32_mco_init()
61 STM32_MCO_CFGR_SHIFT_GET(config->prescaler)); in stm32_mco_init()
64 return pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT); in stm32_mco_init()
75 (.prescaler = DT_PROP(DT_DRV_INST(inst), prescaler),)) \