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
3c910ed8
Commit
3c910ed8
authored
22 years ago
by
Ronald G. Minnich
Browse files
Options
Download
Email Patches
Plain Diff
Add support for ST M29F400BT - part 1
Corresponding to coreboot v1 svn r582.
parent
1e5003fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
Makefile
Makefile
+1
-1
flash.h
flash.h
+3
-0
flash_rom.c
flash_rom.c
+3
-0
No files found.
Makefile
View file @
3c910ed8
OBJS
=
jedec.o sst28sf040.o am29f040b.o mx29f002.c sst39sf020.o
OBJS
=
jedec.o sst28sf040.o am29f040b.o mx29f002.c sst39sf020.o
m29f400bt.o
CC
=
gcc
-O2
-g
all
:
${OBJS}
...
...
This diff is collapsed.
Click to expand it.
flash.h
View file @
3c910ed8
...
...
@@ -32,6 +32,9 @@ struct flashchip {
#define WINBOND_ID 0xDA
/* Winbond Manufacture ID code */
#define W_29C020C 0x45
/* Winbond w29c020c device code*/
#define ST_ID 0x20
#define ST_M29F400BT 0xD5
extern
int
probe_28sf040
(
struct
flashchip
*
flash
);
extern
int
erase_28sf040
(
struct
flashchip
*
flash
);
extern
int
write_28sf040
(
struct
flashchip
*
flash
,
char
*
buf
);
...
...
This diff is collapsed.
Click to expand it.
flash_rom.c
View file @
3c910ed8
...
...
@@ -35,6 +35,7 @@
#include "flash.h"
#include "jedec.h"
#include "m29f400bt.h"
struct
flashchip
flashchips
[]
=
{
{
"Am29F040B"
,
AMD_ID
,
AM_29F040B
,
NULL
,
512
,
64
*
1024
,
...
...
@@ -51,6 +52,8 @@ struct flashchip flashchips[] = {
probe_39sf020
,
erase_39sf020
,
write_39sf020
},
{
"W29C020C"
,
WINBOND_ID
,
W_29C020C
,
NULL
,
256
,
128
,
probe_jedec
,
erase_jedec
,
write_jedec
},
{
"M29F400BT"
,
ST_ID
,
ST_M29F400BT
,
NULL
,
512
,
64
*
1024
,
probe_m29f400bt
,
erase_m29f400bt
,
write_linuxbios_m29f400bt
},
{
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