mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
If no args are specified, then all that happens is that flash writes
are enabled in hardware. This is used for DoC support.
This commit is contained in:
parent
12c01a0f30
commit
2d208cd5c6
1 changed files with 8 additions and 2 deletions
|
@ -162,13 +162,19 @@ main (int argc, char * argv[])
|
|||
FILE * image;
|
||||
struct flashchip * flash;
|
||||
|
||||
if (argc < 2){
|
||||
printf("usage: %s romimage\n", argv[0]);
|
||||
if (argc > 2){
|
||||
printf("usage: %s [romimage]\n", argv[0]);
|
||||
printf(" If no romimage is specified, then all that happens\n");
|
||||
printf(" is that flash writes are enabled (useful for DoC)\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
enable_flash_sis630 ();
|
||||
|
||||
if (argc < 2){
|
||||
printf("OK, only ENABLING flash write, but NOT FLASHING\n");
|
||||
exit(0);
|
||||
}
|
||||
if ((flash = probe_flash (flashchips)) == NULL) {
|
||||
printf("EEPROM not found\n");
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue