Skip to content

Commit 6b287b0

Browse files
duynguyenxakartben
authored andcommitted
drivers: eth: Initial support for Renesas RA Ethernet driver
This commit is to enable Ethernet drivers support on Renesas RA MCU, first target support is the Renesas RA8 series Signed-off-by: Duy Nguyen <[email protected]>
1 parent f6715a7 commit 6b287b0

File tree

7 files changed

+490
-0
lines changed

7 files changed

+490
-0
lines changed

drivers/ethernet/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ zephyr_library_sources_ifdef(CONFIG_ETH_ADIN2111 eth_adin2111.c)
4141
zephyr_library_sources_ifdef(CONFIG_ETH_LAN865X eth_lan865x.c oa_tc6.c)
4242
zephyr_library_sources_ifdef(CONFIG_ETH_XMC4XXX eth_xmc4xxx.c)
4343
zephyr_library_sources_ifdef(CONFIG_ETH_TEST eth_test.c)
44+
zephyr_library_sources_ifdef(CONFIG_ETH_RENESAS_RA eth_renesas_ra.c)
4445

4546
if(CONFIG_ETH_NXP_S32_NETC)
4647
zephyr_library_sources(eth_nxp_s32_netc.c)

drivers/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ source "drivers/ethernet/dwc_xgmac/Kconfig"
8282
source "drivers/ethernet/phy/Kconfig"
8383

8484
source "drivers/ethernet/nxp_enet/Kconfig"
85+
source "drivers/ethernet/Kconfig.renesas_ra"
8586

8687
endif # "Ethernet Drivers"
8788

drivers/ethernet/Kconfig.renesas_ra

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config ETH_RENESAS_RA
5+
bool "Renesas RA Ethernet"
6+
default y
7+
depends on DT_HAS_RENESAS_RA_ETHERNET_ENABLED
8+
select USE_RA_FSP_ETHER
9+
select MDIO
10+
help
11+
Enable Renesas RA Ethernet Driver.
12+
13+
if ETH_RENESAS_RA
14+
15+
config ETH_RA_RX_THREAD_STACK_SIZE
16+
int "Stack size for internal incoming packet handler"
17+
default 1500
18+
help
19+
Size of the stack used for internal thread which is ran for
20+
incoming packet processing.
21+
22+
config ETH_RA_RX_THREAD_PRIORITY
23+
int "Renesas RA Ethernet receive thread priority"
24+
default 2
25+
26+
config ETH_RENESAS_TX_BUF_NUM
27+
int "Number of Transmit buffer"
28+
default 4
29+
range 1 8
30+
31+
config ETH_RENESAS_RX_BUF_NUM
32+
int "Number of Receive buffer"
33+
default 4
34+
range 1 8
35+
36+
endif

0 commit comments

Comments
 (0)