From 0c1d2ed2b8db1156313ea9d028f5b787b09bb7ae Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 14 Aug 2013 14:20:01 -0600 Subject: [PATCH] SAMA5: Fix out of range USB PLL divisor --- configs/sama5d3x-ek/include/board.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configs/sama5d3x-ek/include/board.h b/configs/sama5d3x-ek/include/board.h index 3e28241022..60e724b654 100644 --- a/configs/sama5d3x-ek/include/board.h +++ b/configs/sama5d3x-ek/include/board.h @@ -120,12 +120,14 @@ * * USB Clock = PLLACK / (USBDIV + 1) = 48MHz * USBDIV = PLLACK / 48MHz - 1 - * = 16.5 - * REVISIT: USBDIV = 16 gives a clock of 46.59MHz which is an error of 3% + * = 15.5 + * + * The maximum value of USBDIV is 15 corresponding to a divisor of 16. + * REVISIT: USBDIV = 15 gives a clock of 49.5MHz which is an error of 3% */ # define BOARD_OHCI_INPUT PMC_USB_USBS_PLLA -# define BOARD_OHCI_DIVIDER (16) +# define BOARD_OHCI_DIVIDER (15) #endif #if 0