diff options
author | Vladimir Zapolskiy | 2015-06-28 06:03:38 +0300 |
---|---|---|
committer | Joe Hershberger | 2015-08-11 13:37:17 -0500 |
commit | 6e039b4c624e293fb86710efd12a17afe268d6e9 (patch) | |
tree | b19c6335db75febdc0e27cd999b54eaf1c3dbccb /drivers/net/lpc32xx_eth.c | |
parent | 0b830198fb3c6ee0dbbe5aa98829eddbb27429b1 (diff) |
net: lpc32xx: correct command register reset value
According to LPC32x0 User Manual the following bits in Command
register 0x3106_0100 are defined:
Bit Symbol
2 - Unused
3 RegReset
4 TxReset
5 RxReset
Fix wrong (1-bit shifted right) COMMAND_RESETS value, which sets
an unused bit, but neglects RxReset.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/lpc32xx_eth.c')
-rw-r--r-- | drivers/net/lpc32xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c index 8dcbb4a04a9..72451a96e4d 100644 --- a/drivers/net/lpc32xx_eth.c +++ b/drivers/net/lpc32xx_eth.c @@ -170,7 +170,7 @@ struct lpc32xx_eth_registers { #define COMMAND_PASSRUNTFRAME 0x00000040 #define COMMAND_FULL_DUPLEX 0x00000400 /* Helper: general reset */ -#define COMMAND_RESETS 0x0000001C +#define COMMAND_RESETS 0x00000038 /* STATUS register bitfields/masks and offsets (see Table 283) */ #define STATUS_RXSTATUS 0x00000001 |