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
Reform
reform-boundary-uboot
Commits
9d909604
Commit
9d909604
authored
17 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
ppc4xx: Update Sequoia NAND booting support with ECC
Signed-off-by:
Stefan Roese
<
sr@denx.de
>
parent
cf959c7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
board/amcc/sequoia/sdram.c
+4
-0
4 additions, 0 deletions
board/amcc/sequoia/sdram.c
include/configs/sequoia.h
+10
-3
10 additions, 3 deletions
include/configs/sequoia.h
nand_spl/board/amcc/sequoia/Makefile
+6
-5
6 additions, 5 deletions
nand_spl/board/amcc/sequoia/Makefile
with
20 additions
and
8 deletions
board/amcc/sequoia/sdram.c
+
4
−
0
View file @
9d909604
...
...
@@ -379,7 +379,11 @@ void denali_core_search_data_eye(unsigned long memory_size)
long
int
initdram
(
int
board_type
)
{
#if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
#if !defined(CONFIG_NAND_SPL)
ulong
speed
=
get_bus_freq
(
0
);
#else
ulong
speed
=
133333333
;
/* 133MHz is on the safe side */
#endif
mtsdram
(
DDR0_02
,
0x00000000
);
...
...
This diff is collapsed.
Click to expand it.
include/configs/sequoia.h
+
10
−
3
View file @
9d909604
...
...
@@ -166,12 +166,19 @@
/*
* Now the NAND chip has to be defined (no autodetection used!)
*/
#define CFG_NAND_PAGE_SIZE
(
512
)
/* NAND chip page size */
#define CFG_NAND_PAGE_SIZE 512
/* NAND chip page size */
#define CFG_NAND_BLOCK_SIZE (16 << 10)
/* NAND chip block size */
#define CFG_NAND_PAGE_COUNT
(
32
)
/* NAND chip page count */
#define CFG_NAND_BAD_BLOCK_POS
(5)
/* Location of bad block marker */
#define CFG_NAND_PAGE_COUNT 32
/* NAND chip page count */
#define CFG_NAND_BAD_BLOCK_POS
5
/* Location of bad block marker */
#undef CFG_NAND_4_ADDR_CYCLE
/* No fourth addr used (<=32MB) */
#define CFG_NAND_ECCSIZE 256
#define CFG_NAND_ECCBYTES 3
#define CFG_NAND_ECCSTEPS (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
#define CFG_NAND_OOBSIZE 16
#define CFG_NAND_ECCTOTAL (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
#define CFG_NAND_ECCPOS {0, 1, 2, 3, 6, 7}
#ifdef CFG_ENV_IS_IN_NAND
/*
* For NAND booting the environment is embedded in the U-Boot image. Please take
...
...
This diff is collapsed.
Click to expand it.
nand_spl/board/amcc/sequoia/Makefile
+
6
−
5
View file @
9d909604
...
...
@@ -30,7 +30,7 @@ AFLAGS += -DCONFIG_NAND_SPL
CFLAGS
+=
-DCONFIG_NAND_SPL
SOBJS
=
start.o init.o resetvec.o
COBJS
=
nand_boot.o ndfc.o sdram.o
speed.o
COBJS
=
nand_boot.o
nand_ecc.o
ndfc.o sdram.o
SRCS
:=
$(
addprefix
$(
obj
)
,
$(
SOBJS:.o
=
.S
)
$(
COBJS:.o
=
.c
))
OBJS
:=
$(
addprefix
$(
obj
)
,
$(
SOBJS
)
$(
COBJS
))
...
...
@@ -69,10 +69,6 @@ $(obj)start.S:
@
rm
-f
$(
obj
)
start.S
ln
-s
$(
SRCTREE
)
/cpu/ppc4xx/start.S
$(
obj
)
start.S
$(obj)speed.c
:
@
rm
-f
$(
obj
)
speed.c
ln
-s
$(
SRCTREE
)
/cpu/ppc4xx/speed.c
$(
obj
)
speed.c
# from board directory
$(obj)init.S
:
@
rm
-f
$(
obj
)
init.S
...
...
@@ -89,6 +85,11 @@ $(obj)nand_boot.c:
@
rm
-f
$(
obj
)
nand_boot.c
ln
-s
$(
SRCTREE
)
/nand_spl/nand_boot.c
$(
obj
)
nand_boot.c
# from drivers/nand directory
$(obj)nand_ecc.c
:
@
rm
-f
$(
obj
)
nand_ecc.c
ln
-s
$(
SRCTREE
)
/drivers/nand/nand_ecc.c
$(
obj
)
nand_ecc.c
#########################################################################
$(obj)%.o
:
$(obj)%.S
...
...
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