mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-12-23 21:56:46 +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:
parent
999c78e7f8
commit
75e1f8d156
@ -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
|
||||
glamo_reg_write(u16 val, u16 reg)
|
||||
{
|
||||
|
@ -213,3 +213,11 @@ void *malloc(size_t size)
|
||||
void free(void *ptr)
|
||||
{
|
||||
}
|
||||
|
||||
int q;
|
||||
|
||||
void udelay(int n)
|
||||
{
|
||||
while (n--)
|
||||
q+=n * q;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user