mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Internal.c was always compiled in because it hosted the function internal_delay()
Move that function to udelay.c and compile internal.c only if really needed. physmap.c is only needed if the programmer is internal or a PCI card. Make its compilation conditional. Corresponding to flashrom svn r822. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <vidwer@gmail.com>
This commit is contained in:
2
flash.h
2
flash.h
@ -277,6 +277,7 @@ extern const struct board_info laptops_bad[];
|
||||
/* udelay.c */
|
||||
void myusec_delay(int usecs);
|
||||
void myusec_calibrate_delay(void);
|
||||
void internal_delay(int usecs);
|
||||
|
||||
#if NEED_PCI == 1
|
||||
/* pcidev.c */
|
||||
@ -365,7 +366,6 @@ void mmio_writel(uint32_t val, void *addr);
|
||||
uint8_t mmio_readb(void *addr);
|
||||
uint16_t mmio_readw(void *addr);
|
||||
uint32_t mmio_readl(void *addr);
|
||||
void internal_delay(int usecs);
|
||||
int noop_shutdown(void);
|
||||
void *fallback_map(const char *descr, unsigned long phys_addr, size_t len);
|
||||
void fallback_unmap(void *virt_addr, size_t len);
|
||||
|
Reference in New Issue
Block a user