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
c8827958
Commit
c8827958
authored
13 years ago
by
Benoit Rat
Browse files
Options
Downloads
Patches
Plain Diff
usb-loader: improve compilation with different NR value
parent
f03d786a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
usb-loader/samba_applets/at91lib/boards/at91sam9g45-ek/board_memories.c
+3
-3
3 additions, 3 deletions
...ba_applets/at91lib/boards/at91sam9g45-ek/board_memories.c
usb-loader/samba_applets/isp-project/build.sh
+10
-1
10 additions, 1 deletion
usb-loader/samba_applets/isp-project/build.sh
with
13 additions
and
4 deletions
usb-loader/samba_applets/at91lib/boards/at91sam9g45-ek/board_memories.c
+
3
−
3
View file @
c8827958
...
...
@@ -53,8 +53,8 @@
//------------------------------------------------------------------------------
// External definitions
//------------------------------------------------------------------------------
#ifndef AT91C_DDRC2_NR_
VAL
#define AT91C_DDRC2_NR_
VAL
13 /
/
This value should be 13 for WRS3-18
#ifndef AT91C_DDRC2_NR_
XX
#define AT91C_DDRC2_NR_
XX AT91C_DDRC2_NR_
13
/
*
This value should be 13 for WRS3-18
*/
#endif
//------------------------------------------------------------------------------
...
...
@@ -142,7 +142,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_
VAL
|
// 13 row bits (8K)
AT91C_DDRC2_NR_
XX
|
// 13 row bits (8K)
AT91C_DDRC2_CAS_3
|
// CAS Latency 3
AT91C_DDRC2_DLL_RESET_DISABLED
);
// DLL not reset
...
...
This diff is collapsed.
Click to expand it.
usb-loader/samba_applets/isp-project/build.sh
+
10
−
1
View file @
c8827958
...
...
@@ -24,7 +24,7 @@ compile_module()
make
$2
else
#Compile the module
make
CROSS_COMPILE
=
${
CROSS_COMPILE
}
CHIP
=
at91sam9g45
BOARD
=
at91sam9g45-ek
MEMORIES
=
sram
TRACE_LEVEL
=
5
DYN_TRACES
=
1
DEFINES
=
"-D__GIT__=
\\\"
${
GITR
}${
GITS
}
\\\"
"
INSTALLDIR
=
../../
make
CROSS_COMPILE
=
${
CROSS_COMPILE
}
CHIP
=
at91sam9g45
BOARD
=
at91sam9g45-ek
MEMORIES
=
sram
TRACE_LEVEL
=
5
DYN_TRACES
=
1
DEFINES
=
"-D__GIT__=
\\\"
${
GITR
}${
GITS
}
\\\"
$DEFINES
"
INSTALLDIR
=
../../
fi
}
...
...
@@ -36,6 +36,15 @@ root="$(dirname $(pwd)/$0)"
compile_module dataflash
$1
#### Compilation of extern ram module
DEFINES
=
"-DAT91C_DDRC2_NR_XX=AT91C_DDRC2_NR_13"
compile_module extram
$1
cp
${
root
}
/../isp-extram-at91sam9g45.bin
${
root
}
/../isp-extram-at91sam9g45-NR13.bin
DEFINES
=
"-DAT91C_DDRC2_NR_XX=AT91C_DDRC2_NR_14"
compile_module extram
$1
cp
${
root
}
/../isp-extram-at91sam9g45.bin
${
root
}
/../isp-extram-at91sam9g45-NR14.bin
DEFINES
=
"-DAT91C_DDRC2_NR_XX=
$1
"
#### Compilation of extern ram module
compile_module extram
\ No newline at end of file
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