mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
net/altera_tse: use flush_dcache_range instead of flush_dcache
flush_dcache is not declared in the common.h API, flush_dcache_range however is Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Cc: Ben Warren <biggerbadderben@gmail.com> Cc: Thomas Chou <thomas@wytron.com.tw> Acked-by: Thomas Chou <thomas@wytron.com.tw>
This commit is contained in:
parent
83ea130853
commit
ee04a1048e
1 changed files with 6 additions and 3 deletions
|
@ -268,7 +268,8 @@ static int tse_eth_send(struct eth_device *dev,
|
|||
volatile struct alt_sgdma_descriptor *tx_desc_cur =
|
||||
(volatile struct alt_sgdma_descriptor *)&tx_desc[0];
|
||||
|
||||
flush_dcache((unsigned long)packet, length);
|
||||
flush_dcache_range((unsigned long)packet,
|
||||
(unsigned long)packet + length);
|
||||
alt_sgdma_construct_descriptor_burst(
|
||||
(volatile struct alt_sgdma_descriptor *)&tx_desc[0],
|
||||
(volatile struct alt_sgdma_descriptor *)&tx_desc[1],
|
||||
|
@ -306,7 +307,8 @@ static int tse_eth_rx(struct eth_device *dev)
|
|||
NetReceive(NetRxPackets[0], packet_length);
|
||||
|
||||
/* start descriptor again */
|
||||
flush_dcache((unsigned long)(NetRxPackets[0]), PKTSIZE_ALIGN);
|
||||
flush_dcache_range((unsigned long)(NetRxPackets[0]),
|
||||
(unsigned long)(NetRxPackets[0]) + PKTSIZE_ALIGN);
|
||||
alt_sgdma_construct_descriptor_burst(
|
||||
(volatile struct alt_sgdma_descriptor *)&rx_desc[0],
|
||||
(volatile struct alt_sgdma_descriptor *)&rx_desc[1],
|
||||
|
@ -834,7 +836,8 @@ static int tse_eth_init(struct eth_device *dev, bd_t * bd)
|
|||
0x0 /* channel */
|
||||
);
|
||||
debug("Configuring rx desc\n");
|
||||
flush_dcache((unsigned long)(NetRxPackets[0]), PKTSIZE_ALIGN);
|
||||
flush_dcache_range((unsigned long)(NetRxPackets[0]),
|
||||
(unsigned long)(NetRxPackets[0]) + PKTSIZE_ALIGN);
|
||||
alt_sgdma_construct_descriptor_burst(
|
||||
(volatile struct alt_sgdma_descriptor *)&rx_desc[0],
|
||||
(volatile struct alt_sgdma_descriptor *)&rx_desc[1],
|
||||
|
|
Loading…
Add table
Reference in a new issue