mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
consolidate mdelay by providing a common function for all users
There are several mdelay() definitions in the driver and board code. Remove them all and provide a common mdelay() in lib/time.c. Signed-off-by: Anatolij Gustschin <agust@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:

committed by
Wolfgang Denk

parent
712fbcf384
commit
c4c9fbebae
@ -50,7 +50,6 @@ tested on both gig copper and gig fiber boards
|
||||
|
||||
#define virt_to_bus(devno, v) pci_virt_to_mem(devno, (void *) (v))
|
||||
#define bus_to_phys(devno, a) pci_mem_to_phys(devno, a)
|
||||
#define mdelay(n) udelay((n)*1000)
|
||||
|
||||
#define E1000_DEFAULT_PCI_PBA 0x00000030
|
||||
#define E1000_DEFAULT_PCIE_PBA 0x000a0026
|
||||
|
Reference in New Issue
Block a user