summaryrefslogtreecommitdiff
path: root/internal.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-12-24 03:11:55 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-12-24 03:11:55 +0000
commit64a788e10e152780f997fe9b5e4c512359c1fdec (patch)
tree0522bdd685b608f066795f75bb905b31c3b56b43 /internal.c
parent2068eed5a5b8d2f5a2c4eef564e602a3c49387af (diff)
downloadflashrom-64a788e10e152780f997fe9b5e4c512359c1fdec.tar.gz
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. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <vidwer@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@822 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'internal.c')
-rw-r--r--internal.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal.c b/internal.c
index 69624a0..98a8463 100644
--- a/internal.c
+++ b/internal.c
@@ -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)
{