FreeBSD definitions of (read|write)[bwl] collide with our own. Before we
attempt trickery, we can simply rename the accessor functions. Patch created with the help of Coccinelle. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <idwer_v@hotmail.com> Acked-by: Patrick Georgi <patrick@georgi-clan.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3984 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -51,7 +51,7 @@ int erase_sst_fwhub_block(struct flashchip *flash, int offset)
|
||||
volatile uint8_t *wrprotect = flash->virtual_registers + offset + 2;
|
||||
|
||||
// clear write protect
|
||||
writeb(0, wrprotect);
|
||||
chip_writeb(0, wrprotect);
|
||||
|
||||
erase_block_jedec(flash->virtual_memory, offset);
|
||||
toggle_ready_jedec(flash->virtual_memory);
|
||||
|
Reference in New Issue
Block a user