Add support for the Winbond W29C040P

Corresponding to flashrom svn r132 and coreboot v2 svn r2752.

Signed-off-by: Markus Boas <ryven@ryven.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
diff --git a/README b/README
index 12be20d..06b5803 100644
--- a/README
+++ b/README
@@ -149,6 +149,7 @@
 SyncMOS S29C31004T
 Winbond W29C011
 Winbond W29C020C
+Winbond W29C040P
 Winbond W49F002U
 Winbond W49V002A
 Winbond W49V002FA
diff --git a/flash.h b/flash.h
index 55e218c..850bf33 100644
--- a/flash.h
+++ b/flash.h
@@ -101,6 +101,7 @@
 #define WINBOND_ID		0xDA	/* Winbond */
 #define W_29C011		0xC1
 #define W_29C020C		0x45
+#define W_29C040P		0x46
 #define W_39V040FA		0x34
 #define W_39V040A		0x3D
 #define W_39V040B		0x54
diff --git a/flashchips.c b/flashchips.c
index aeca7bc..2915307 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -82,6 +82,8 @@
 	 probe_jedec,	erase_chip_jedec, write_49fl004},
 	{"W29C011",	WINBOND_ID,	W_29C011,	128, 128,
 	 probe_jedec,	erase_chip_jedec, write_jedec},
+	{"W29C040P",	WINBOND_ID,	W_29C040P,	512, 256,
+	 probe_jedec,	erase_chip_jedec, write_jedec},
 	{"W29C020C", 	WINBOND_ID, 	W_29C020C,	256, 128,
 	 probe_jedec, 	erase_chip_jedec, write_jedec},
 	{"W49F002U", 	WINBOND_ID, 	W_49F002U,	256, 128,