Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Evan Lojewski
ast2050-flashrom
Commits
c831647b
Commit
c831647b
authored
23 years ago
by
Ronald G. Minnich
Browse files
Options
Download
Email Patches
Plain Diff
Add support for 39sf020
Corresponding to coreboot v1 svn r523.
parent
ef5779d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
Makefile
Makefile
+2
-2
flash.h
flash.h
+5
-0
flash_rom.c
flash_rom.c
+2
-0
No files found.
Makefile
View file @
c831647b
OBJS
=
jedec.o sst28sf040.o am29f040b.o mx29f002.c
CC
=
gcc
-O2
OBJS
=
jedec.o sst28sf040.o am29f040b.o mx29f002.c
sst39sf020.o
CC
=
gcc
-O2
-g
all
:
${OBJS}
${CC}
-o
flash_rom flash_rom.c
${OBJS}
...
...
This diff is collapsed.
Click to expand it.
flash.h
View file @
c831647b
...
...
@@ -27,6 +27,7 @@ struct flashchip {
#define SST_ID 0xBF
/* SST Manufacturer ID[B code */
#define SST_29EE020A 0x10
/* SST 29EE020 device code */
#define SST_28SF040 0x04
/* SST 29EE040 device code */
#define SST_39SF020 0xB6
/* SST 39SF020 device */
#define WINBOND_ID 0xDA
/* Winbond Manufacture ID code */
#define W_29C020C 0x45
/* Winbond w29c020c device code*/
...
...
@@ -35,6 +36,10 @@ extern int probe_28sf040 (struct flashchip * flash);
extern
int
erase_28sf040
(
struct
flashchip
*
flash
);
extern
int
write_28sf040
(
struct
flashchip
*
flash
,
char
*
buf
);
extern
int
probe_39sf020
(
struct
flashchip
*
flash
);
extern
int
erase_39sf020
(
struct
flashchip
*
flash
);
extern
int
write_39sf020
(
struct
flashchip
*
flash
,
char
*
buf
);
extern
int
probe_29f040b
(
struct
flashchip
*
flash
);
extern
int
erase_29f040b
(
struct
flashchip
*
flash
);
extern
int
write_29f040b
(
struct
flashchip
*
flash
,
char
*
buf
);
...
...
This diff is collapsed.
Click to expand it.
flash_rom.c
View file @
c831647b
...
...
@@ -47,6 +47,8 @@ struct flashchip flashchips[] = {
probe_jedec
,
erase_jedec
,
write_jedec
},
{
"SST28SF040A"
,
SST_ID
,
SST_28SF040
,
NULL
,
512
,
256
,
probe_28sf040
,
erase_28sf040
,
write_28sf040
},
{
"SST39SF020A"
,
SST_ID
,
SST_39SF020
,
NULL
,
256
,
4096
,
probe_jedec
,
erase_jedec
,
write_39sf020
},
{
"W29C020C"
,
WINBOND_ID
,
W_29C020C
,
NULL
,
256
,
128
,
probe_jedec
,
erase_jedec
,
write_jedec
},
{
NULL
,}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment