mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-10-31 05:10:41 +01:00 
			
		
		
		
	Unlock fixup
Corresponding to flashrom svn r961. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
		| @@ -97,7 +97,7 @@ int unlock_82802ab(struct flashchip *flash) | |||||||
| 	int i; | 	int i; | ||||||
| 	//chipaddr wrprotect = flash->virtual_registers + page + 2; | 	//chipaddr wrprotect = flash->virtual_registers + page + 2; | ||||||
|  |  | ||||||
| 	for (i = 0; i < flash->total_size; i+= flash->page_size) | 	for (i = 0; i < flash->total_size * 1024; i+= flash->page_size) | ||||||
| 	{ | 	{ | ||||||
| 		chip_writeb(0, flash->virtual_registers + i + 2); | 		chip_writeb(0, flash->virtual_registers + i + 2); | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -85,7 +85,7 @@ int unlock_stm50flw0x0x(struct flashchip *flash) | |||||||
| { | { | ||||||
| 	int i; | 	int i; | ||||||
|  |  | ||||||
| 	for (i = 0; i < flash->total_size; i+= flash->page_size) { | 	for (i = 0; i < flash->total_size * 1024; i+= flash->page_size) { | ||||||
| 		if(unlock_block_stm50flw0x0x(flash, i)) { | 		if(unlock_block_stm50flw0x0x(flash, i)) { | ||||||
| 			fprintf(stderr, "UNLOCK FAILED!\n"); | 			fprintf(stderr, "UNLOCK FAILED!\n"); | ||||||
| 			return -1; | 			return -1; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sean Nelson
					Sean Nelson