Commit 305ceba
drivers: eth: enc28j60: Misc fixes
- Bank select mask should be 0x03:
| b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
|------:|------:|------:|-------:|------:|-----:|-------:|-------:|
| TXRST | RXRST | DMAST | CSUMEN | TXRTS | RXEN | BSEL1 | BSEL0 |
See **REGISTER 3-1: ECON1: ETHERNET CONTROL REGISTER 1**
- ENC28J60_BIT_PHCON2_HDLDIS should be 0x0100
|b15| b14 |b13 |b12|b11|b10 |b9|b8 |b7|b6|b5|b4|b3|b2|b1|b0|
|--:|------:|-----:|--:|--:|------:|-:|------:|-:|-:|-:|-:|-:|-:|-:|-:|
| - |FRCLNK |TXDIS |r |r |JABBER |r |HDLDIS |r |r |r |r |r |r |r |r |
see **REGISTER 6-5: PHCON2: PHY CONTROL REGISTER 2**
- remove duplicate definitions
ENC28J60Data Sheet:
https://ww1.microchip.com/downloads/en/DeviceDoc/39662c.pdf
Signed-off-by: Ahmed Zamouche <[email protected]>1 parent 1d4b1ad commit 305ceba
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
154 | | - | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
| |||
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
169 | | - | |
| 167 | + | |
170 | 168 | | |
171 | 169 | | |
172 | 170 | | |
| |||
0 commit comments