diff --git a/configs/sama5d3x-ek/include/board_384mhz.h b/configs/sama5d3x-ek/include/board_384mhz.h index ec39bb329d..74494cbb25 100644 --- a/configs/sama5d3x-ek/include/board_384mhz.h +++ b/configs/sama5d3x-ek/include/board_384mhz.h @@ -90,9 +90,9 @@ * NOTE: Bit PLLADIV2 must always be set to 1 when MDIV is set to 3. * * Prescaler input = 768MHz / 2 = 384MHz - * Prescaler output = 768MHz / 1 = 384MHz + * Prescaler output = 384MHz / 1 = 384MHz * Processor Clock (PCK) = 384MHz - * Master clock (MCK) = 396MHz / 3 = 129MHz + * Master clock (MCK) = 396MHz / 3 = 128MHz */ #define BOARD_PMC_MCKR_CSS PMC_MCKR_CSS_PLLA @@ -126,11 +126,13 @@ * = 15 * * The maximum value of USBDIV is 15 corresponding to a divisor of 16. - * REVISIT: USBDIV = 15 gives an exact clock of 48MHz. + * REVISIT: However, using the divisor of (15+1) yields a frame rate + * of 500 frames per second. A divisor of (7+1) gives the correct 1MS + * frame rate. I cannot explain the factor of 2 difference. */ #define BOARD_OHCI_INPUT PMC_USB_USBS_PLLA -#define BOARD_OHCI_DIVIDER (15) +#define BOARD_OHCI_DIVIDER (7) /* Resulting frequencies */ diff --git a/configs/sama5d3x-ek/include/board_396mhz.h b/configs/sama5d3x-ek/include/board_396mhz.h index 347c484a8a..f98cbac863 100644 --- a/configs/sama5d3x-ek/include/board_396mhz.h +++ b/configs/sama5d3x-ek/include/board_396mhz.h @@ -89,7 +89,7 @@ * NOTE: Bit PLLADIV2 must always be set to 1 when MDIV is set to 3. * * Prescaler input = 792MHz / 2 = 396MHz - * Prescaler output = 792MHz / 1 = 396MHz + * Prescaler output = 396MHz / 1 = 396MHz * Processor Clock (PCK) = 396MHz * Master clock (MCK) = 396MHz / 3 = 132MHz */