mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
net: pcnet: Replace mips-specific accessors
Replace mips-specific UNCACHED_SDRAM() macro with standard map_physmem(), which permits the driver to work on other systems than mips. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
171f5e580e
commit
3c0bcb97d6
1 changed files with 3 additions and 1 deletions
|
@ -332,7 +332,9 @@ static int pcnet_init(struct eth_device *dev, bd_t *bis)
|
|||
addr = (unsigned long)memalign(ARCH_DMA_MINALIGN,
|
||||
sizeof(*lp->uc));
|
||||
flush_dcache_range(addr, addr + sizeof(*lp->uc));
|
||||
addr = UNCACHED_SDRAM(addr);
|
||||
addr = (unsigned long)map_physmem(addr,
|
||||
roundup(sizeof(*lp->uc), ARCH_DMA_MINALIGN),
|
||||
MAP_NOCACHE);
|
||||
lp->uc = (struct pcnet_uncached_priv *)addr;
|
||||
|
||||
addr = (unsigned long)memalign(ARCH_DMA_MINALIGN,
|
||||
|
|
Loading…
Add table
Reference in a new issue