mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-04 18:40:42 +09:00
Blackfin: bfin_mac: use common debug()
Rather then defining our own DEBUGF(), just use the common debug(). Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
a7ec6ac8b2
commit
8eed6ca51e
@ -33,14 +33,6 @@
|
|||||||
#include <post.h>
|
#include <post.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef DEBUG_ETHERNET
|
|
||||||
|
|
||||||
#ifdef DEBUG_ETHERNET
|
|
||||||
#define DEBUGF(fmt, args...) printf(fmt, ##args)
|
|
||||||
#else
|
|
||||||
#define DEBUGF(fmt, args...)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define RXBUF_BASE_ADDR 0xFF900000
|
#define RXBUF_BASE_ADDR 0xFF900000
|
||||||
#define TXBUF_BASE_ADDR 0xFF800000
|
#define TXBUF_BASE_ADDR 0xFF800000
|
||||||
#define TX_BUF_CNT 1
|
#define TX_BUF_CNT 1
|
||||||
@ -175,7 +167,7 @@ static int bfin_EMAC_send(struct eth_device *dev, volatile void *packet,
|
|||||||
else
|
else
|
||||||
txIdx++;
|
txIdx++;
|
||||||
out:
|
out:
|
||||||
DEBUGF("BFIN EMAC send: length = %d\n", length);
|
debug("BFIN EMAC send: length = %d\n", length);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,7 +312,7 @@ static int bfin_EMAC_init(struct eth_device *dev, bd_t *bd)
|
|||||||
u32 opmode;
|
u32 opmode;
|
||||||
int dat;
|
int dat;
|
||||||
int i;
|
int i;
|
||||||
DEBUGF("Eth_init: ......\n");
|
debug("Eth_init: ......\n");
|
||||||
|
|
||||||
txIdx = 0;
|
txIdx = 0;
|
||||||
rxIdx = 0;
|
rxIdx = 0;
|
||||||
@ -383,7 +375,7 @@ static int bfin_EMAC_init(struct eth_device *dev, bd_t *bd)
|
|||||||
|
|
||||||
static void bfin_EMAC_halt(struct eth_device *dev)
|
static void bfin_EMAC_halt(struct eth_device *dev)
|
||||||
{
|
{
|
||||||
DEBUGF("Eth_halt: ......\n");
|
debug("Eth_halt: ......\n");
|
||||||
/* Turn off the EMAC */
|
/* Turn off the EMAC */
|
||||||
*pEMAC_OPMODE = 0x00000000;
|
*pEMAC_OPMODE = 0x00000000;
|
||||||
/* Turn off the EMAC RX DMA */
|
/* Turn off the EMAC RX DMA */
|
||||||
|
Loading…
Reference in New Issue
Block a user