-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Eth Click #26213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eth Click #26213
Conversation
Enable GPIO as a workaround to enable some SPI slaves are not correctly controlled using the Flexcomm SPI device. Signed-off-by: Andrei Gansari <[email protected]>
@@ -382,18 +382,18 @@ static void eth_enc28j60_init_mac(struct device *dev) | |||
} | |||
|
|||
/* Configure MAC address */ | |||
eth_enc28j60_set_bank(dev, ENC28J60_REG_MAADR0); | |||
eth_enc28j60_write_reg(dev, ENC28J60_REG_MAADR0, | |||
eth_enc28j60_set_bank(dev, ENC28J60_REG_MAADR1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The enc28j60 was working mostly ok last time I tried without these changes. What are the symptoms if these changes are not done, could you describe these also in commit msg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a mismatch with the latest reference manual, there is no MAADR0 register.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I just have not seen issues regarding Ethernet functionality, so wondering how this mismatch shows itself.
Aligns MAC registers to the latest reference manual. Replaces NULL buffers as some SPI drivers will fail. Signed-off-by: Andrei Gansari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Enc28j60
LPCxpress55s69