2019-11-01 20:45:29 +08:00
|
|
|
# Atmel SMART SAM E70 Xplained Board configuration
|
|
|
|
|
2016-09-28 03:10:50 +08:00
|
|
|
# Copyright (c) 2016 Piotr Mienkowski
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
if BOARD_SAM_E70_XPLAINED
|
|
|
|
|
|
|
|
config BOARD
|
2018-05-26 02:56:38 +08:00
|
|
|
default "sam_e70_xplained"
|
2016-09-28 03:10:50 +08:00
|
|
|
|
2017-07-17 21:29:55 +08:00
|
|
|
if I2S
|
|
|
|
|
|
|
|
config I2S_SAM_SSC_0_DMA_RX_CHANNEL
|
|
|
|
default 22
|
|
|
|
|
|
|
|
config I2S_SAM_SSC_0_DMA_TX_CHANNEL
|
|
|
|
default 23
|
|
|
|
endif # I2S
|
|
|
|
|
2017-04-23 03:53:26 +08:00
|
|
|
if ETH_SAM_GMAC
|
|
|
|
|
|
|
|
# Read MAC address from AT24MAC402 EEPROM
|
|
|
|
|
|
|
|
choice ETH_SAM_GMAC_MAC_SELECT
|
|
|
|
default ETH_SAM_GMAC_MAC_I2C_EEPROM
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ETH_SAM_GMAC_MAC_I2C_SLAVE_ADDRESS
|
|
|
|
default 0x5F
|
|
|
|
|
|
|
|
config ETH_SAM_GMAC_MAC_I2C_INT_ADDRESS
|
|
|
|
default 0x9A
|
|
|
|
|
|
|
|
config ETH_SAM_GMAC_MAC_I2C_INT_ADDRESS_SIZE
|
|
|
|
default 1
|
|
|
|
|
|
|
|
config ETH_SAM_GMAC_MAC_I2C_DEV_NAME
|
|
|
|
default "I2C_0"
|
|
|
|
|
|
|
|
config ETH_SAM_GMAC_MAC_I2C_EEPROM
|
|
|
|
select I2C
|
|
|
|
|
2017-10-24 22:42:07 +08:00
|
|
|
endif # ETH_SAM_GMAC
|
2017-04-23 03:53:26 +08:00
|
|
|
|
2019-06-13 20:49:41 +08:00
|
|
|
if ADC
|
|
|
|
|
|
|
|
config ADC_0
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # ADC
|
|
|
|
|
2017-10-24 22:42:07 +08:00
|
|
|
if I2C
|
2017-04-23 03:53:26 +08:00
|
|
|
|
2017-10-24 22:42:07 +08:00
|
|
|
config I2C_0
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # I2C
|
2017-04-23 03:53:26 +08:00
|
|
|
|
2018-03-25 23:40:34 +08:00
|
|
|
if NETWORKING
|
|
|
|
|
|
|
|
config NET_L2_ETHERNET
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2018-03-25 23:40:34 +08:00
|
|
|
|
|
|
|
config ETH_SAM_GMAC
|
2018-11-14 00:15:49 +08:00
|
|
|
default y if NET_L2_ETHERNET
|
2018-03-25 23:40:34 +08:00
|
|
|
|
|
|
|
endif # NETWORKING
|
|
|
|
|
2018-11-13 22:11:27 +08:00
|
|
|
if SPI
|
|
|
|
|
|
|
|
if SPI_SAM_PORT_0
|
|
|
|
|
|
|
|
config SPI_SAME70_PORT_0_PIN_CS3
|
2019-12-14 23:17:14 +08:00
|
|
|
bool
|
kconfig: Use 'default' instead of 'def_bool' in Kconfig.defconfig files
Same deal as in commit 4638652214 ("Kconfig: Use 'default' instead of
'def_bool' in Kconfig.defconfig files"), fixing new stuff that got
introduced since then.
Some symbols, like ALTERA_AVALON_PIO, are only defined in
Kconfig.defconfig files, and so need the def_bool.
Motivation (from the note at the end of
guides/kconfig/index.html#common-shorthands):
For a symbol defined in multiple locations (e.g., in a Kconfig.defconfig
file in Zephyr), it is best to only give the symbol type for the "base"
definition of the symbol, and to use 'default' (instead of 'def_<type>'
value) for the remaining definitions. That way, if the base definition
of the symbol is removed, the symbol ends up without a type, which
generates a warning that points to the other definitions. That makes the
extra definitions easier to discover and remove.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-18 19:29:31 +08:00
|
|
|
default y
|
2018-11-13 22:11:27 +08:00
|
|
|
|
|
|
|
endif # SPI_SAM_PORT_0
|
|
|
|
|
|
|
|
endif # SPI
|
|
|
|
|
2016-09-28 03:10:50 +08:00
|
|
|
endif # BOARD_SAM_E70_XPLAINED
|