forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: ethernet: add support for microchip lan9250
This PR adds support for LAN9250 spi ethernet controller. This driver is tested on the Mikroe ETH Click 3 https://www.mikroe.com/eth-3-click Signed-off-by: Mario Paja <[email protected]>
- Loading branch information
Showing
6 changed files
with
1,096 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# LAN9250 Stand-alone Ethernet Controller configuration options | ||
|
||
# Copyright (c) 2024 Mario Paja | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
menuconfig ETH_LAN9250 | ||
bool "LAN9250 Ethernet Controller" | ||
default y | ||
depends on DT_HAS_MICROCHIP_LAN9250_ENABLED | ||
select SPI | ||
help | ||
LAN9250 Stand-Alone Ethernet Controller | ||
with SPI Interface | ||
|
||
if ETH_LAN9250 | ||
|
||
config ETH_LAN9250_RX_THREAD_STACK_SIZE | ||
int "Stack size for internal incoming packet handler" | ||
default 800 | ||
help | ||
Size of the stack used for internal thread which is ran for | ||
incoming packet processing. | ||
|
||
config ETH_LAN9250_RX_THREAD_PRIO | ||
int "Priority for internal incoming packet handler" | ||
default 2 | ||
help | ||
Priority level for internal thread which is ran for incoming | ||
packet processing. | ||
|
||
config ETH_LAN9250_BUF_ALLOC_TIMEOUT | ||
int "Network buffer allocation timeout" | ||
default 100 | ||
help | ||
Given timeout in milliseconds. Maximum amount of time | ||
that the driver will wait from the IP stack to get | ||
a memory buffer before the Ethernet frame is dropped. | ||
|
||
endif |
Oops, something went wrong.