mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Add generic 16 bit and 32 bit chip read/write emulation to the external flasher infrastructure
The emulation works by splitting 32 bit accesses into 16 bit accesses and 16 bit accesses into to 8 bit accesses. That way, external flashers can mix and match the amount of emulation they need. Corresponding to flashrom svn r517. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
@ -69,11 +69,11 @@ const struct programmer_entry programmer_table[] = {
|
||||
.map_flash_region = nic3com_map,
|
||||
.unmap_flash_region = nic3com_unmap,
|
||||
.chip_readb = nic3com_chip_readb,
|
||||
.chip_readw = nic3com_chip_readw,
|
||||
.chip_readl = nic3com_chip_readl,
|
||||
.chip_readw = fallback_chip_readw,
|
||||
.chip_readl = fallback_chip_readl,
|
||||
.chip_writeb = nic3com_chip_writeb,
|
||||
.chip_writew = nic3com_chip_writew,
|
||||
.chip_writel = nic3com_chip_writel,
|
||||
.chip_writew = fallback_chip_writew,
|
||||
.chip_writel = fallback_chip_writel,
|
||||
},
|
||||
|
||||
{},
|
||||
|
Reference in New Issue
Block a user