Skip to content

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

Merged
merged 2 commits into from
Jun 17, 2020
Merged

Eth Click #26213

merged 2 commits into from
Jun 17, 2020

Conversation

agansari
Copy link
Collaborator

Enc28j60

  • corrects MAC registers
  • replaces NULL buffers with dummy buffers so some SPI drivers don't crash

LPCxpress55s69

  • replaces Flexcomm SPI's internal CS control with manual GPIO for Enc28j60

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);
Copy link
Member

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.

Copy link
Collaborator Author

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.

Copy link
Member

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]>
Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jukkar jukkar merged commit 3722c64 into zephyrproject-rtos:master Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants