-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding support for KSZ9477 managed ethernet switch for saluki-v3 #153
Conversation
95bd1b9
to
6cf714f
Compare
6cf714f
to
3e1f25c
Compare
3e1f25c
to
faa61a6
Compare
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, the comments are irrelevant, fix if you wish
drivers/net/ksz9477_i2c.c
Outdated
****************************************************************************/ | ||
|
||
#include <nuttx/config.h> | ||
#include <debug.h> |
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.
I don't think this header is needed here?
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.
cool, I'll remove it, thanks
drivers/net/ksz9477_reg.h
Outdated
|
||
/* Port registers */ | ||
|
||
#define KSZ9477_PORT_REG(port,x) ((((uint16_t)port) << 12) | (x)) |
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.
(port) ?
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.
Yes, definitely. I wil also change x -> reg for clarity
772b16a
to
3138394
Compare
0c9b09d
to
5629997
Compare
I'll try upstreaming before merging this in |
Signed-off-by: Jukka Laitinen <[email protected]>
This adds initialization of the ksz9477 switch when used instead of a PHY, directly connected to SGMII Signed-off-by: Jukka Laitinen <[email protected]>
5629997
to
c9377d7
Compare
This change is now upstreamed, and this is direct cherry-pick from upstream. Merging-> |
Summary
Adding code for saluki-v3 ethernet switch configuration.
Tested to be working on saluki-v3