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
afe44a97
Commit
afe44a97
authored
21 years ago
by
Andrew Ip
Browse files
Options
Download
Email Patches
Plain Diff
Add flash enable for sc1100
Corresponding to coreboot v1 svn r856.
parent
772f6457
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
flash_rom.c
flash_rom.c
+18
-0
No files found.
flash_rom.c
View file @
afe44a97
...
...
@@ -226,6 +226,23 @@ enable_flash_cs5530(struct pci_dev *dev, char *name) {
return
0
;
}
int
enable_flash_sc1100
(
struct
pci_dev
*
dev
,
char
*
name
)
{
unsigned
char
new
;
int
ok
;
pci_write_byte
(
dev
,
0x52
,
0xee
);
new
=
pci_read_byte
(
dev
,
0x52
);
if
(
new
!=
0xee
)
{
printf
(
"tried to set register 0x%x to 0x%x on %s failed (WARNING ONLY)
\n
"
,
0x52
,
new
,
name
);
return
-
1
;
}
return
0
;
}
int
enable_flash_sis5595
(
struct
pci_dev
*
dev
,
char
*
name
)
{
unsigned
char
new
,
newer
;
...
...
@@ -365,6 +382,7 @@ FLASH_ENABLE enables[] = {
{
0x1106
,
0x8231
,
"VT8231"
,
enable_flash_vt8231
},
{
0x1106
,
0x3177
,
"VT8235"
,
enable_flash_vt8235
},
{
0x1078
,
0x0100
,
"CS5530"
,
enable_flash_cs5530
},
{
0x100b
,
0x0510
,
"SC1100"
,
enable_flash_sc1100
},
{
0x1039
,
0x8
,
"SIS5595"
,
enable_flash_sis5595
},
};
...
...
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