mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
net: emaclite: Use indirect register access for rx_ping/pong
Do initialization via indirect register access. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
a0b2bfb0bf
commit
3af709092c
1 changed files with 2 additions and 3 deletions
|
@ -364,11 +364,10 @@ static int emaclite_init(struct eth_device *dev, bd_t *bis)
|
|||
* RX - RX_PING & RX_PONG initialization
|
||||
*/
|
||||
/* Write out the value to flush the RX buffer */
|
||||
out_be32 (dev->iobase + XEL_RSR_OFFSET, XEL_RSR_RECV_IE_MASK);
|
||||
out_be32(®s->rx_ping_rsr, XEL_RSR_RECV_IE_MASK);
|
||||
|
||||
if (emaclite->rxpp)
|
||||
out_be32 (dev->iobase + XEL_RSR_OFFSET + XEL_BUFFER_OFFSET,
|
||||
XEL_RSR_RECV_IE_MASK);
|
||||
out_be32(®s->rx_pong_rsr, XEL_RSR_RECV_IE_MASK);
|
||||
|
||||
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) || defined(CONFIG_PHYLIB)
|
||||
out_be32(®s->mdioctrl, XEL_MDIOCTRL_MDIOEN_MASK);
|
||||
|
|
Loading…
Reference in a new issue