stm32: Simplify CCIPR2 register assignment on stm32g0
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d75154d695
commit
4ce2d379bb
|
@ -94,11 +94,8 @@ clock_setup(void)
|
|||
while ((RCC->CFGR & RCC_CFGR_SWS_Msk) != (2 << RCC_CFGR_SWS_Pos))
|
||||
;
|
||||
|
||||
// Enable USB clock
|
||||
if (CONFIG_USBSERIAL) {
|
||||
// PLLQCLK
|
||||
RCC->CCIPR2 |= RCC_CCIPR2_USBSEL_1;
|
||||
}
|
||||
// Use PLLQCLK for USB (setting USBSEL=2 works in practice)
|
||||
RCC->CCIPR2 = RCC_CCIPR2_USBSEL_1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue