mirror of https://github.com/Desuuuu/klipper.git
atsam: Don't enable USB FS clock on SAM3
This clock is only needed for low-power operation mode, and wasn't correctly configured anyway (should be 48MHz). Signed-off-by: Alex Maclean <monkeh@monkeh.net>
This commit is contained in:
parent
c55a94001f
commit
01a223393e
|
@ -214,8 +214,6 @@ usbserial_init(void)
|
||||||
PMC->CKGR_UCKR = CKGR_UCKR_UPLLCOUNT(3) | CKGR_UCKR_UPLLEN;
|
PMC->CKGR_UCKR = CKGR_UCKR_UPLLCOUNT(3) | CKGR_UCKR_UPLLEN;
|
||||||
while (!(PMC->PMC_SR & PMC_SR_LOCKU))
|
while (!(PMC->PMC_SR & PMC_SR_LOCKU))
|
||||||
;
|
;
|
||||||
PMC->PMC_USB = PMC_USB_USBS | PMC_USB_USBDIV(0);
|
|
||||||
PMC->PMC_SCER = PMC_SCER_UOTGCLK;
|
|
||||||
|
|
||||||
// Enable USB
|
// Enable USB
|
||||||
UOTGHS->UOTGHS_CTRL = (UOTGHS_CTRL_UIMOD | UOTGHS_CTRL_OTGPADE
|
UOTGHS->UOTGHS_CTRL = (UOTGHS_CTRL_UIMOD | UOTGHS_CTRL_OTGPADE
|
||||||
|
|
Loading…
Reference in New Issue