Compile gfxnvidia by default, but disallow write/erase
Corresponding to flashrom svn r1117.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
diff --git a/Makefile b/Makefile
index 782ecac..3c5d256 100644
--- a/Makefile
+++ b/Makefile
@@ -128,8 +128,8 @@
# Always enable 3Com NICs for now.
CONFIG_NIC3COM ?= yes
-# Disable NVIDIA graphics cards for now, write/erase don't work properly.
-CONFIG_GFXNVIDIA ?= no
+# Enable NVIDIA graphics cards. Note: write and erase do not work properly.
+CONFIG_GFXNVIDIA ?= yes
# Always enable SiI SATA controllers for now.
CONFIG_SATASII ?= yes
diff --git a/gfxnvidia.c b/gfxnvidia.c
index 212f5b9..b0bf79b 100644
--- a/gfxnvidia.c
+++ b/gfxnvidia.c
@@ -82,6 +82,9 @@
buses_supported = CHIP_BUSTYPE_PARALLEL;
+ /* Write/erase doesn't work. */
+ programmer_may_write = 0;
+
return 0;
}