Print a warning if southbridge is not known to flashrom.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2390 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2006-08-25 19:21:42 +00:00
parent fa60e7f9d0
commit 051427c40a
2 changed files with 10 additions and 6 deletions

View File

@ -77,6 +77,6 @@ DOC support
-----------
DISK on Chip support is currently disabled since it is considered unstable.
Change CFLAGS in the Makefile to enable it.
Change CFLAGS in the Makefile to enable it: Remove -DDISABLE_DOC from CFLAGS.

View File

@ -506,11 +506,15 @@ int enable_flash_write()
}
}
if (!enable) {
printf("Warning: Unknown system. Flash detection "
"will most likely fail.\n");
return 1;
}
/* now do the deed. */
if (enable) {
printf("Enabling flash write on %s...", enable->name);
if (enable->doit(dev, enable->name) == 0)
printf("OK\n");
}
return 0;
}