mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
Add bus type support to the dummy external programmer
The syntax is explained in the man page. Example: flashrom -p dummy=lpc,fwh Tested, works perfectly. ;-) As a nice benefit, it allows easy testing of the "probe only compatible flashes" patch. Corresponding to flashrom svn r559. 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:
2
flash.h
2
flash.h
@ -122,6 +122,7 @@ uint32_t chip_readl(const chipaddr addr);
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
enum chipbustype {
|
||||
CHIP_BUSTYPE_NONE = 0,
|
||||
CHIP_BUSTYPE_PARALLEL = 1 << 0,
|
||||
CHIP_BUSTYPE_LPC = 1 << 1,
|
||||
CHIP_BUSTYPE_FWH = 1 << 2,
|
||||
@ -646,6 +647,7 @@ extern int io_fd;
|
||||
#endif
|
||||
|
||||
/* dummyflasher.c */
|
||||
extern char *dummytype;
|
||||
int dummy_init(void);
|
||||
int dummy_shutdown(void);
|
||||
void *dummy_map(const char *descr, unsigned long phys_addr, size_t len);
|
||||
|
Reference in New Issue
Block a user