mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-10-31 13:20:42 +01:00 
			
		
		
		
	Set w39v080fa to fully supported
I'm am flashing this chip several times a day. Also enable unlocking which is only needed when running coreboot, that slipped in the original commit and through the original review ;-) So it must be trivial enough. Corresponding to flashrom svn r290 and coreboot v2 svn r3406. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
		 Stefan Reinauer
					Stefan Reinauer
				
			
				
					committed by
					
						 Stefan Reinauer
						Stefan Reinauer
					
				
			
			
				
	
			
			
			 Stefan Reinauer
						Stefan Reinauer
					
				
			
						parent
						
							5b1488562d
						
					
				
				
					commit
					4c390c8943
				
			| @@ -3,7 +3,7 @@ | |||||||
|  * |  * | ||||||
|  * Copyright (C) 2000 Silicon Integrated System Corporation |  * Copyright (C) 2000 Silicon Integrated System Corporation | ||||||
|  * Copyright (C) 2004 Tyan Corp |  * Copyright (C) 2004 Tyan Corp | ||||||
|  * Copyright (C) 2005-2007 coresystems GmbH <stepan@openbios.org> |  * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> | ||||||
|  * |  * | ||||||
|  * This program is free software; you can redistribute it and/or modify |  * This program is free software; you can redistribute it and/or modify | ||||||
|  * it under the terms of the GNU General Public License as published by |  * it under the terms of the GNU General Public License as published by | ||||||
| @@ -135,7 +135,7 @@ struct flashchip flashchips[] = { | |||||||
| 	{"Winbond",	"W49F002U",		WINBOND_ID,	W_49F002U,		256,	128,		TEST_OK_PREW,	probe_jedec,		erase_chip_jedec,		write_49f002}, | 	{"Winbond",	"W49F002U",		WINBOND_ID,	W_49F002U,		256,	128,		TEST_OK_PREW,	probe_jedec,		erase_chip_jedec,		write_49f002}, | ||||||
| 	{"Winbond",	"W49V002A",		WINBOND_ID,	W_49V002A,		256,	128,		TEST_UNTESTED,	probe_jedec,		erase_chip_jedec,		write_49f002}, | 	{"Winbond",	"W49V002A",		WINBOND_ID,	W_49V002A,		256,	128,		TEST_UNTESTED,	probe_jedec,		erase_chip_jedec,		write_49f002}, | ||||||
| 	{"Winbond",	"W49V002FA",		WINBOND_ID,	W_49V002FA,		256,	128,		TEST_UNTESTED,	probe_jedec,		erase_chip_jedec,		write_49f002}, | 	{"Winbond",	"W49V002FA",		WINBOND_ID,	W_49V002FA,		256,	128,		TEST_UNTESTED,	probe_jedec,		erase_chip_jedec,		write_49f002}, | ||||||
| 	{"Winbond",	"W39V080FA",		WINBOND_ID,	W_39V080FA,		1024,	64*1024,	TEST_OK_PR,	probe_winbond_fwhub,	erase_winbond_fwhub,		write_winbond_fwhub}, | 	{"Winbond",	"W39V080FA",		WINBOND_ID,	W_39V080FA,		1024,	64*1024,	TEST_OK_PREW,	probe_winbond_fwhub,	erase_winbond_fwhub,		write_winbond_fwhub}, | ||||||
| 	{"Winbond",	"W39V080FA (dual mode)",WINBOND_ID,	W_39V080FA_DM,		512,	64*1024,	TEST_UNTESTED,	probe_winbond_fwhub,	erase_winbond_fwhub,		write_winbond_fwhub}, | 	{"Winbond",	"W39V080FA (dual mode)",WINBOND_ID,	W_39V080FA_DM,		512,	64*1024,	TEST_UNTESTED,	probe_winbond_fwhub,	erase_winbond_fwhub,		write_winbond_fwhub}, | ||||||
|  |  | ||||||
| 	{"EON",		"unknown EON SPI chip",	EON_ID_NOPREFIX,GENERIC_DEVICE_ID,	0,	256,		TEST_UNTESTED,	probe_spi_rdid,		NULL,				NULL}, | 	{"EON",		"unknown EON SPI chip",	EON_ID_NOPREFIX,GENERIC_DEVICE_ID,	0,	256,		TEST_UNTESTED,	probe_spi_rdid,		NULL,				NULL}, | ||||||
|   | |||||||
| @@ -168,6 +168,8 @@ int erase_winbond_fwhub(struct flashchip *flash) | |||||||
| 	int i, total_size = flash->total_size * 1024; | 	int i, total_size = flash->total_size * 1024; | ||||||
| 	volatile uint8_t *bios = flash->virtual_memory; | 	volatile uint8_t *bios = flash->virtual_memory; | ||||||
| 	 | 	 | ||||||
|  | 	unlock_winbond_fwhub(flash); | ||||||
|  |  | ||||||
| 	printf("Erasing:     "); | 	printf("Erasing:     "); | ||||||
|  |  | ||||||
| 	for (i = 0; i < total_size; i += flash->page_size) | 	for (i = 0; i < total_size; i += flash->page_size) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user