1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/sam0_common/sam0_eth: model in Kconfig

This commit is contained in:
Leandro Lanzieri 2022-03-02 14:42:34 +01:00
parent 575e58dc5b
commit 88df973783
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
6 changed files with 41 additions and 0 deletions

View File

@ -27,6 +27,8 @@ config BOARD_SAME54_XPRO
select HAVE_SAUL_GPIO
select HAVE_MTD_SPI_NOR
select HAVE_AT24MAC
select HAVE_SAM0_ETH
select HAVE_SAM0_SDHC
# This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR
select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR

View File

@ -0,0 +1,22 @@
# Copyright (c) 2022 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config MODULE_SAM0_ETH
bool "SAM0 Ethernet GMAC peripheral"
depends on TEST_KCONFIG
depends on CPU_COMMON_SAM0
depends on HAS_PERIPH_ETH
select MODULE_NETDEV_ETH
select MODULE_NETOPT
select MODULE_IOLIST
select MODULE_PERIPH_ETH
config HAVE_SAM0_ETH
bool
select MODULE_SAM0_ETH if MODULE_NETDEV_DEFAULT
help
Indicates that a SAM0 ethernet peripheral is present.

View File

@ -24,6 +24,7 @@ rsource "mrf24j40/Kconfig"
rsource "ncv7356/Kconfig"
rsource "pn532/Kconfig"
rsource "rn2xx3/Kconfig"
rsource "$(RIOTCPU)/sam0_common/sam0_eth/Kconfig"
rsource "slipdev/Kconfig"
rsource "$(RIOTCPU)/native/socket_zep/Kconfig"
rsource "sx126x/Kconfig"

View File

@ -0,0 +1,12 @@
# Copyright (c) 2022 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
depends on HAS_CPU_SAMD5X
depends on HAS_PERIPH_ETH # TODO: complete with other SAM0 CPUs that have ethernet

View File

@ -11,4 +11,6 @@ FEATURES_REQUIRED += cpu_samd5x # TODO: complete with other SAM0 CPUs that have
INCLUDES += -I$(APPDIR)
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,2 @@
CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y
CONFIG_MODULE_SAM0_ETH=y