Skip to content

Commit c5a3089

Browse files
matiamicAlan C. Assis
authored andcommitted
drivers/net: Add support for the NCV7410 10BASE-T1S MAC-PHY
This commit adds driver for the Onsemi NCV7410 10BASE-T1S Ethernet MAC-PHY. Signed-off-by: michal matias <mich4l.matias@gmail.com>
1 parent 0883d66 commit c5a3089

6 files changed

Lines changed: 2073 additions & 0 deletions

File tree

drivers/net/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ if(CONFIG_NET)
4949
list(APPEND SRCS enc28j60.c)
5050
endif()
5151

52+
if(CONFIG_NCV7410)
53+
list(APPEND SRCS ncv7410.c)
54+
endif()
55+
5256
if(CONFIG_ENCX24J600)
5357
list(APPEND SRCS encx24j600.c)
5458
endif()

drivers/net/Kconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,30 @@ config ENC28J60_REGDEBUG
287287

288288
endif # ENC28J60
289289

290+
menuconfig NCV7410
291+
bool "onsemi NCV7410 support"
292+
default n
293+
select SPI
294+
select ARCH_HAVE_NETDEV_STATISTICS
295+
---help---
296+
Enable support for onsemi NCV7410 10BASE-T1S MAC-PHY
297+
298+
if NCV7410
299+
300+
config NCV7410_INT_PIN
301+
int "NCV7410 interrupt pin"
302+
default 3
303+
---help---
304+
Number of boarad pin to be connected to NCV7410's interrupt signal
305+
306+
config NCV7410_FREQUENCY
307+
int "SPI frequency"
308+
default 20000000
309+
---help---
310+
NCV7410 SPI bus frequency
311+
312+
endif # NCV7410
313+
290314
menuconfig ENCX24J600
291315
bool "Microchip ENCX24J600 support"
292316
default n

drivers/net/Make.defs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ ifeq ($(CONFIG_ENC28J60),y)
5050
CSRCS += enc28j60.c
5151
endif
5252

53+
ifeq ($(CONFIG_NCV7410),y)
54+
CSRCS += ncv7410.c
55+
endif
56+
5357
ifeq ($(CONFIG_ENCX24J600),y)
5458
CSRCS += encx24j600.c
5559
endif

0 commit comments

Comments
 (0)