1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-24 04:38:59 +02:00

qi-move-udelay-out-of-glamo-mmc-to-utils.patch

udelay() is more generally wanted, move it to utils.c

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-11-28 10:16:40 +00:00 committed by Andy Green
parent 999c78e7f8
commit 75e1f8d156
2 changed files with 8 additions and 9 deletions

View File

@ -64,15 +64,6 @@ int mmc_read(unsigned long src, u8 *dst, int size);
}) })
int q;
void udelay(int n)
{
while (n--)
q+=n * q;
}
static void static void
glamo_reg_write(u16 val, u16 reg) glamo_reg_write(u16 val, u16 reg)
{ {

View File

@ -213,3 +213,11 @@ void *malloc(size_t size)
void free(void *ptr) void free(void *ptr)
{ {
} }
int q;
void udelay(int n)
{
while (n--)
q+=n * q;
}