From 2d208cd5c62d1c80c8ed4b7b0fb26d1d06443ffe Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Sun, 31 Dec 2000 20:06:14 +0000 Subject: [PATCH] If no args are specified, then all that happens is that flash writes are enabled in hardware. This is used for DoC support. --- util/sis/flash_rom.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/util/sis/flash_rom.c b/util/sis/flash_rom.c index c5392247f6..c94cf153a3 100644 --- a/util/sis/flash_rom.c +++ b/util/sis/flash_rom.c @@ -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);