mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
GRETH: removed unneccesary register write and one clean up.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
This commit is contained in:
parent
6163f5b4c8
commit
e3ce686c6e
1 changed files with 1 additions and 3 deletions
|
@ -45,7 +45,7 @@
|
|||
/* ByPass Cache when reading regs */
|
||||
#define GRETH_REGLOAD(addr) SPARC_NOCACHE_READ(addr)
|
||||
/* Write-through cache ==> no bypassing needed on writes */
|
||||
#define GRETH_REGSAVE(addr,data) (*(unsigned int *)(addr) = (data))
|
||||
#define GRETH_REGSAVE(addr,data) (*(volatile unsigned int *)(addr) = (data))
|
||||
#define GRETH_REGORIN(addr,data) GRETH_REGSAVE(addr,GRETH_REGLOAD(addr)|data)
|
||||
#define GRETH_REGANDIN(addr,data) GRETH_REGSAVE(addr,GRETH_REGLOAD(addr)&data)
|
||||
|
||||
|
@ -146,8 +146,6 @@ int greth_init(struct eth_device *dev, bd_t * bis)
|
|||
printf("greth_init\n");
|
||||
#endif
|
||||
|
||||
GRETH_REGSAVE(®s->control, 0);
|
||||
|
||||
if (!greth->rxbd_base) {
|
||||
|
||||
/* allocate descriptors */
|
||||
|
|
Loading…
Reference in a new issue