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
c7428d49
Commit
c7428d49
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Add support for 28F256J3A flah (=> 64 MB) on PM520 board
parent
97c8d0bb
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
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
board/pm520/flash.c
+15
-3
15 additions, 3 deletions
board/pm520/flash.c
include/configs/PM520.h
+9
-7
9 additions, 7 deletions
include/configs/PM520.h
with
26 additions
and
10 deletions
CHANGELOG
+
2
−
0
View file @
c7428d49
...
...
@@ -2,6 +2,8 @@
Changes since U-Boot 1.1.4:
======================================================================
* Add support for 28F256J3A flah (=> 64 MB) on PM520 board
* Fix compiler problem with at91rm9200dk board.
Patch by Eugen Bigz, 19 Dec 2005
...
...
This diff is collapsed.
Click to expand it.
board/pm520/flash.c
+
15
−
3
View file @
c7428d49
...
...
@@ -168,6 +168,10 @@ void flash_print_info (flash_info_t *info)
}
switch
(
info
->
flash_id
&
FLASH_TYPEMASK
)
{
case
FLASH_28F256J3A
:
printf
(
"28F256J3A
\n
"
);
break
;
case
FLASH_28F128J3A
:
printf
(
"28F128J3A
\n
"
);
break
;
...
...
@@ -236,25 +240,32 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
switch
(
value
)
{
case
(
FPW
)
INTEL_ID_28F256J3A
:
info
->
flash_id
+=
FLASH_28F256J3A
;
info
->
sector_count
=
256
;
info
->
size
=
0x04000000
;
info
->
start
[
0
]
=
CFG_FLASH_BASE
;
break
;
/* => 64 MB */
case
(
FPW
)
INTEL_ID_28F128J3A
:
info
->
flash_id
+=
FLASH_28F128J3A
;
info
->
sector_count
=
128
;
info
->
size
=
0x02000000
;
info
->
start
[
0
]
=
CFG_FLASH_BASE
;
info
->
start
[
0
]
=
CFG_FLASH_BASE
+
0x02000000
;
break
;
/* => 32 MB */
case
(
FPW
)
INTEL_ID_28F640J3A
:
info
->
flash_id
+=
FLASH_28F640J3A
;
info
->
sector_count
=
64
;
info
->
size
=
0x01000000
;
info
->
start
[
0
]
=
CFG_FLASH_BASE
+
0x0
1
000000
;
info
->
start
[
0
]
=
CFG_FLASH_BASE
+
0x0
3
000000
;
break
;
/* => 16 MB */
case
(
FPW
)
INTEL_ID_28F320J3A
:
info
->
flash_id
+=
FLASH_28F320J3A
;
info
->
sector_count
=
32
;
info
->
size
=
0x800000
;
info
->
start
[
0
]
=
CFG_FLASH_BASE
+
0x0
1
800000
;
info
->
start
[
0
]
=
CFG_FLASH_BASE
+
0x0
3
800000
;
break
;
/* => 8 MB */
default:
...
...
@@ -285,6 +296,7 @@ static void flash_sync_real_protect (flash_info_t * info)
switch
(
info
->
flash_id
&
FLASH_TYPEMASK
)
{
case
FLASH_28F256J3A
:
case
FLASH_28F128J3A
:
case
FLASH_28F640J3A
:
case
FLASH_28F320J3A
:
...
...
This diff is collapsed.
Click to expand it.
include/configs/PM520.h
+
9
−
7
View file @
c7428d49
...
...
@@ -200,12 +200,13 @@
* Flash configuration (8,16 or 32 MB)
* TEXT base always at 0xFFF00000
* ENV_ADDR always at 0xFFF40000
* FLASH_BASE at 0xFC000000 for 32 MB
* FLASH_BASE at 0xFA000000 for 64 MB
* 0xFC000000 for 32 MB
* 0xFD000000 for 16 MB
* 0xFD800000 for 8 MB
*/
#define CFG_FLASH_BASE 0x
fc
000000
#define CFG_FLASH_SIZE 0x0
2
000000
#define CFG_FLASH_BASE 0x
FA
000000
#define CFG_FLASH_SIZE 0x0
4
000000
#define CFG_BOOTROM_BASE 0xFFF00000
#define CFG_BOOTROM_SIZE 0x00080000
#define CFG_ENV_ADDR (0xFDF00000 + 0x40000)
...
...
@@ -214,17 +215,18 @@
* Flash configuration (8,16 or 32 MB)
* TEXT base always at 0xFFF00000
* ENV_ADDR always at 0xFFF40000
* FLASH_BASE at 0xFE000000 for 32 MB
* FLASH_BASE at 0xFC000000 for 64 MB
* 0xFE000000 for 32 MB
* 0xFF000000 for 16 MB
* 0xFF800000 for 8 MB
*/
#define CFG_FLASH_BASE 0x
fe
000000
#define CFG_FLASH_SIZE 0x0
2
000000
#define CFG_FLASH_BASE 0x
FC
000000
#define CFG_FLASH_SIZE 0x0
4
000000
#define CFG_ENV_ADDR (0xFFF00000 + 0x40000)
#endif
#define CFG_MAX_FLASH_BANKS 1
/* max num of memory banks */
#define CFG_MAX_FLASH_SECT
128
/* max num of sects on one chip */
#define CFG_MAX_FLASH_SECT
256
/* max num of sects on one chip */
#define CFG_FLASH_ERASE_TOUT 240000
/* Flash Erase Timeout (in ms) */
#define CFG_FLASH_WRITE_TOUT 500
/* Flash Write Timeout (in ms) */
...
...
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