Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
37163963
Commit
37163963
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
SAMA5: Correct the PLL 48MHz divisor. It was off by a factor of two... no idea why
parent
0098c9ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configs/sama5d3x-ek/include/board_384mhz.h
+6
-4
6 additions, 4 deletions
configs/sama5d3x-ek/include/board_384mhz.h
configs/sama5d3x-ek/include/board_396mhz.h
+1
-1
1 addition, 1 deletion
configs/sama5d3x-ek/include/board_396mhz.h
with
7 additions
and
5 deletions
configs/sama5d3x-ek/include/board_384mhz.h
+
6
−
4
View file @
37163963
...
...
@@ -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 =
768
MHz / 1 = 384MHz
* Prescaler output =
384
MHz / 1 = 384MHz
* Processor Clock (PCK) = 384MHz
* Master clock (MCK) = 396MHz / 3 = 12
9
MHz
* Master clock (MCK) = 396MHz / 3 = 12
8
MHz
*/
#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 */
...
...
This diff is collapsed.
Click to expand it.
configs/sama5d3x-ek/include/board_396mhz.h
+
1
−
1
View file @
37163963
...
...
@@ -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 =
792
MHz / 1 = 396MHz
* Prescaler output =
396
MHz / 1 = 396MHz
* Processor Clock (PCK) = 396MHz
* Master clock (MCK) = 396MHz / 3 = 132MHz
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment