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
45237bc0
Commit
45237bc0
authored
19 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Add support for S29GL064M-R3 flash chip on xsengine board
Patch by Kurt Stremerch, 18 Apr 2005
parent
7d314992
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
+3
-0
3 additions, 0 deletions
CHANGELOG
board/xsengine/flash.c
+9
-24
9 additions, 24 deletions
board/xsengine/flash.c
include/flash.h
+2
-0
2 additions, 0 deletions
include/flash.h
with
14 additions
and
24 deletions
CHANGELOG
+
3
−
0
View file @
45237bc0
...
...
@@ -2,6 +2,9 @@
Changes for U-Boot 1.1.4:
======================================================================
* Add support for S29GL064M-R3 flash chip on xsengine board
Patch by Kurt Stremerch, 18 Apr 2005
* E500 update: repoint IVPR to RAM when code is relocated
Patch by Kylo Ginsberg, 13 Apr 2005
...
...
This diff is collapsed.
Click to expand it.
board/xsengine/flash.c
+
9
−
24
View file @
45237bc0
...
...
@@ -101,13 +101,9 @@ void flash_print_info (flash_info_t *info)
}
switch
(
info
->
flash_id
&
FLASH_TYPEMASK
)
{
case
FLASH_AMLV128U
:
printf
(
"AM29LV128ML (128Mbit, uniform sector size)
\n
"
);
break
;
case
FLASH_AMLV320U
:
printf
(
"AM29LV320ML (32Mbit, uniform sector size)
\n
"
);
break
;
case
FLASH_AMLV640U
:
printf
(
"AM29LV640ML (64Mbit, uniform sector size)
\n
"
);
break
;
case
FLASH_
AMLV320B
:
printf
(
"
AM29LV320MB (32
Mbit,
bot
to
m
boot sect)
\n
"
);
case
FLASH_
S29GL064M
:
printf
(
"
S29GL064M (64
Mbit, to
p
boot sect
or size
)
\n
"
);
break
;
default:
printf
(
"Unknown Chip Type
\n
"
);
break
;
...
...
@@ -174,17 +170,6 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
debug
(
"Mirror Bit flash: addr[14] = %08lX addr[15] = %08lX
\n
"
,
addr
[
14
],
addr
[
15
]);
switch
(
addr
[
14
])
{
case
AMD_ID_LV128U_2
:
if
(
addr
[
15
]
!=
AMD_ID_LV128U_3
)
{
debug
(
"Chip: AMLV128U -> unknown
\n
"
);
info
->
flash_id
=
FLASH_UNKNOWN
;
}
else
{
debug
(
"Chip: AMLV128U
\n
"
);
info
->
flash_id
+=
FLASH_AMLV128U
;
info
->
sector_count
=
256
;
info
->
size
=
0x02000000
;
}
break
;
/* => 32 MB */
case
AMD_ID_LV640U_2
:
if
(
addr
[
15
]
!=
AMD_ID_LV640U_3
)
{
debug
(
"Chip: AMLV640U -> unknown
\n
"
);
...
...
@@ -196,17 +181,17 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
info
->
size
=
0x01000000
;
}
break
;
/* => 16 MB */
case
AMD_ID_
LV320B
_2
:
if
(
addr
[
15
]
!=
AMD_ID_
LV320B
_3
)
{
debug
(
"Chip:
AMLV320B
-> unknown
\n
"
);
case
AMD_ID_
GL064MT
_2
:
if
(
addr
[
15
]
!=
AMD_ID_
GL064MT
_3
)
{
debug
(
"Chip:
S29GL064M-R3
-> unknown
\n
"
);
info
->
flash_id
=
FLASH_UNKNOWN
;
}
else
{
debug
(
"Chip:
AMLV320B
\n
"
);
info
->
flash_id
+=
FLASH_
AMLV320B
;
info
->
sector_count
=
7
1
;
info
->
size
=
0x00
8
00000
;
debug
(
"Chip:
S29GL064M-R3
\n
"
);
info
->
flash_id
+=
FLASH_
S29GL064M
;
info
->
sector_count
=
1
28
;
info
->
size
=
0x0
1
000000
;
}
break
;
/* =>
8
MB */
break
;
/* =>
16
MB */
default:
debug
(
"Chip: *** unknown ***
\n
"
);
info
->
flash_id
=
FLASH_UNKNOWN
;
...
...
This diff is collapsed.
Click to expand it.
include/flash.h
+
2
−
0
View file @
45237bc0
...
...
@@ -206,6 +206,8 @@ extern void flash_read_factory_serial(flash_info_t * info, void * buffer, int of
#define AMD_ID_LV256U_3 0x22012201
/* 3rd ID word for AM29LV256M at 0x3c */
#define AMD_ID_GL064M_2 0x22132213
/* 2nd ID word for S29GL064M-R6 */
#define AMD_ID_GL064M_3 0x22012201
/* 3rd ID word for S29GL064M-R6 */
#define AMD_ID_GL064MT_2 0x22102210
/* 2nd ID word for S29GL064M-R3 (top boot sector) */
#define AMD_ID_GL064MT_3 0x22012201
/* 3rd ID word for S29GL064M-R3 (top boot sector) */
#define AMD_ID_LV320B_2 0x221A221A
/* 2d ID word for AM29LV320MB at 0x38 */
#define AMD_ID_LV320B_3 0x22002200
/* 3d ID word for AM29LV320MB at 0x3c */
...
...
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