mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-11-04 15:10:39 +01:00 
			
		
		
		
	Convert the remaining references to *_49fl00x
Now the only remaining and used function in pm49fl00x.c is unlock_49fl00x. Also: - Add missing unlock to AMIC A49LF040A. - Add lock_49fl00x function. Corresponding to flashrom svn r917. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
		@@ -87,10 +87,8 @@ void write_page_m29f400bt(chipaddr bios, uint8_t *src,
 | 
			
		||||
			  chipaddr dst, int page_size);
 | 
			
		||||
 | 
			
		||||
/* pm49fl00x.c */
 | 
			
		||||
int probe_49fl00x(struct flashchip *flash);
 | 
			
		||||
int erase_49fl00x(struct flashchip *flash);
 | 
			
		||||
int write_49fl00x(struct flashchip *flash, uint8_t *buf);
 | 
			
		||||
int unlock_49fl00x(struct flashchip *flash);
 | 
			
		||||
int lock_49fl00x(struct flashchip *flash);
 | 
			
		||||
 | 
			
		||||
/* sharplhf00l04.c */
 | 
			
		||||
int probe_lhf00l04(struct flashchip *flash);
 | 
			
		||||
 
 | 
			
		||||
@@ -1306,7 +1306,8 @@ struct flashchip flashchips[] = {
 | 
			
		||||
				.block_erase = erase_chip_block_jedec,
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		.write		= write_49fl00x,
 | 
			
		||||
		.unlock		= unlock_49fl00x,
 | 
			
		||||
		.write		= write_jedec_1,
 | 
			
		||||
		.read		= read_memmapped,
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
@@ -3347,7 +3348,7 @@ struct flashchip flashchips[] = {
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		.unlock		= unlock_49fl00x,
 | 
			
		||||
		.write		= write_49fl00x,
 | 
			
		||||
		.write		= write_jedec_1,
 | 
			
		||||
		.read		= read_memmapped,
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
@@ -3377,7 +3378,7 @@ struct flashchip flashchips[] = {
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		.unlock		= unlock_49fl00x,
 | 
			
		||||
		.write		= write_49fl00x,
 | 
			
		||||
		.write		= write_jedec_1,
 | 
			
		||||
		.read		= read_memmapped,
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -43,6 +43,12 @@ int unlock_49fl00x(struct flashchip *flash)
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int lock_49fl00x(struct flashchip *flash)
 | 
			
		||||
{
 | 
			
		||||
	write_lockbits_49fl00x(flash->virtual_registers, flash->total_size * 1024, 1, flash->page_size);
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int erase_49fl00x(struct flashchip *flash)
 | 
			
		||||
{
 | 
			
		||||
	int i;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user