Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jack Humbert
reform-boundary-uboot
Commits
01782965
Commit
01782965
authored
11 years ago
by
Andreas Bießmann
Committed by
Tom Rini
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tricorder: support 256MiB SDRAM on revision > D
Signed-off-by:
Andreas Bießmann
<
andreas.biessmann@corscience.de
>
parent
eadbdf9e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/corscience/tricorder/tricorder.c
+38
-7
38 additions, 7 deletions
board/corscience/tricorder/tricorder.c
include/configs/tricorder.h
+1
-1
1 addition, 1 deletion
include/configs/tricorder.h
with
39 additions
and
8 deletions
board/corscience/tricorder/tricorder.c
+
38
−
7
View file @
01782965
...
@@ -154,12 +154,43 @@ int board_mmc_init(bd_t *bis)
...
@@ -154,12 +154,43 @@ int board_mmc_init(bd_t *bis)
*/
*/
void
get_board_mem_timings
(
struct
board_sdrc_timings
*
timings
)
void
get_board_mem_timings
(
struct
board_sdrc_timings
*
timings
)
{
{
struct
tricorder_eeprom
eeprom
;
get_eeprom
(
&
eeprom
);
/* General SDRC config */
/* General SDRC config */
timings
->
mcfg
=
MICRON_V_MCFG_165
(
128
<<
20
);
if
(
eeprom
.
board_version
[
0
]
>
'D'
)
{
timings
->
rfr_ctrl
=
SDP_3430_SDRC_RFR_CTRL_165MHz
;
/* use optimized timings for our SDRAM device */
timings
->
mcfg
=
MCFG
((
256
<<
20
),
14
);
#define MT46H64M32_TDAL 6
/* Twr/Tck + Trp/tck */
/* 15/6 + 18/6 = 5.5 -> 6 */
#define MT46H64M32_TDPL 3
/* 15/6 = 2.5 -> 3 (Twr) */
#define MT46H64M32_TRRD 2
/* 12/6 = 2 */
#define MT46H64M32_TRCD 3
/* 18/6 = 3 */
#define MT46H64M32_TRP 3
/* 18/6 = 3 */
#define MT46H64M32_TRAS 7
/* 42/6 = 7 */
#define MT46H64M32_TRC 10
/* 60/6 = 10 */
#define MT46H64M32_TRFC 12
/* 72/6 = 12 */
timings
->
ctrla
=
ACTIM_CTRLA
(
MT46H64M32_TRFC
,
MT46H64M32_TRC
,
MT46H64M32_TRAS
,
MT46H64M32_TRP
,
MT46H64M32_TRCD
,
MT46H64M32_TRRD
,
MT46H64M32_TDPL
,
MT46H64M32_TDAL
);
#define MT46H64M32_TWTR 1
#define MT46H64M32_TCKE 1
#define MT46H64M32_XSR 19
/* 112.5/6 = 18.75 => ~19 */
#define MT46H64M32_TXP 1
timings
->
ctrlb
=
ACTIM_CTRLB
(
MT46H64M32_TWTR
,
MT46H64M32_TCKE
,
MT46H64M32_TXP
,
MT46H64M32_XSR
);
/* AC timings */
timings
->
mr
=
MICRON_V_MR_165
;
timings
->
rfr_ctrl
=
SDP_3430_SDRC_RFR_CTRL_165MHz
;
}
else
{
/* use conservative beagleboard timings as default */
timings
->
mcfg
=
MICRON_V_MCFG_165
(
128
<<
20
);
timings
->
ctrla
=
MICRON_V_ACTIMA_165
;
timings
->
ctrla
=
MICRON_V_ACTIMA_165
;
timings
->
ctrlb
=
MICRON_V_ACTIMB_165
;
timings
->
ctrlb
=
MICRON_V_ACTIMB_165
;
timings
->
mr
=
MICRON_V_MR_165
;
timings
->
mr
=
MICRON_V_MR_165
;
timings
->
rfr_ctrl
=
SDP_3430_SDRC_RFR_CTRL_165MHz
;
}
}
}
This diff is collapsed.
Click to expand it.
include/configs/tricorder.h
+
1
−
1
View file @
01782965
...
@@ -354,7 +354,7 @@
...
@@ -354,7 +354,7 @@
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300
/* address 0x60000 */
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300
/* address 0x60000 */
#define CONFIG_SPL_TEXT_BASE 0x40200000
/*CONFIG_SYS_SRAM_START*/
#define CONFIG_SPL_TEXT_BASE 0x40200000
/*CONFIG_SYS_SRAM_START*/
#define CONFIG_SPL_MAX_SIZE (5
5
* 1024)
/* 7 KB for stack */
#define CONFIG_SPL_MAX_SIZE (5
7
* 1024)
/* 7 KB for stack */
#define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK
#define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK
#define CONFIG_SPL_BSS_START_ADDR 0x80000000
/*CONFIG_SYS_SDRAM_BASE*/
#define CONFIG_SPL_BSS_START_ADDR 0x80000000
/*CONFIG_SYS_SDRAM_BASE*/
...
...
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