Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
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
Projects
White Rabbit Switch - Software
Commits
3d2b9991
Commit
3d2b9991
authored
13 years ago
by
Benoit Rat
Browse files
Options
Downloads
Patches
Plain Diff
Set correct value for our DDR: MT47H32M16HR
parent
d9dfee1f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
usb-loader/samba_applets/at91lib/boards/at91sam9g45-ek/board_memories.c
+4
-4
4 additions, 4 deletions
...ba_applets/at91lib/boards/at91sam9g45-ek/board_memories.c
with
4 additions
and
4 deletions
usb-loader/samba_applets/at91lib/boards/at91sam9g45-ek/board_memories.c
+
4
−
4
View file @
3d2b9991
...
...
@@ -135,7 +135,7 @@ void BOARD_ConfigureDdram(unsigned char ddrModel, unsigned char busWidth)
// 4. Program the features of DDR2-SDRAM device into the Timing Register HDDRSDRC2_T2PR.
WRITE
(
pDdrc
,
HDDRSDRC2_CR
,
AT91C_DDRC2_NC_DDR10_SDR9
|
// 10 column bits (1K)
AT91C_DDRC2_NR_1
4
|
// 14 row bits (8K)
AT91C_DDRC2_NR_1
3
|
// 14 row bits (8K)
AT91C_DDRC2_CAS_3
|
// CAS Latency 3
AT91C_DDRC2_DLL_RESET_DISABLED
);
// DLL not reset
...
...
@@ -146,7 +146,7 @@ void BOARD_ConfigureDdram(unsigned char ddrModel, unsigned char busWidth)
AT91C_DDRC2_TWR_2
|
// 2 * 7.5 = 15 ns
AT91C_DDRC2_TRC_8
|
// 8 * 7.5 = 60 ns
AT91C_DDRC2_TRP_2
|
// 2 * 7.5 = 15 ns
AT91C_DDRC2_TRRD_
1
|
//
1
* 7.5 =
7.
5 ns
AT91C_DDRC2_TRRD_
2
|
//
2
* 7.5 =
1
5 ns
AT91C_DDRC2_TWTR_1
|
// 1 clock cycle
AT91C_DDRC2_TMRD_2
);
// 2 clock cycles
...
...
@@ -156,8 +156,8 @@ void BOARD_ConfigureDdram(unsigned char ddrModel, unsigned char busWidth)
AT91C_DDRC2_TRFC_14
<<
0
);
// 14 * 7.5 = 105 ns (must be 105 ns for 512M DDR)
WRITE
(
pDdrc
,
HDDRSDRC2_T2PR
,
AT91C_DDRC2_TRTP_1
|
// 1 * 7.5 = 7.5 ns
AT91C_DDRC2_TRPA_
0
|
AT91C_DDRC2_TXARDS_
7
|
// 7 clock cycles
AT91C_DDRC2_TRPA_
2
|
AT91C_DDRC2_TXARDS_
8
|
// 7 clock cycles
AT91C_DDRC2_TXARD_2
);
// 2 clock cycles
// Step 3: An NOP command is issued to the DDR2-SDRAM to enable clock.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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