1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 22:43:17 +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:
Carl-Daniel Hailfinger
2009-12-24 03:11:55 +00:00
parent 552420b0d6
commit 36cc1c8144
4 changed files with 16 additions and 15 deletions

View File

@ -248,18 +248,6 @@ uint32_t mmio_readl(void *addr)
return *(volatile uint32_t *) addr;
}
void internal_delay(int usecs)
{
/* If the delay is >1 s, use usleep because timing does not need to
* be so precise.
*/
if (usecs > 1000000) {
usleep(usecs);
} else {
myusec_delay(usecs);
}
}
/* No-op shutdown() for programmers which don't need special handling */
int noop_shutdown(void)
{