zephyr/boards/arm/mps2_an385/Kconfig.defconfig
Ulf Magnusson 4638652214 Kconfig: Use 'default' instead of 'def_bool' in Kconfig.defconfig files
This can help find unused symbols. Those end up without a type if
'default' is used instead of 'def_bool', which generates a warning.

Search for "Kconfig.defconfig" in
https://docs.zephyrproject.org/latest/application/kconfig-tips.html for
a longer explanation.

Keep the 'def_bool' for the following symbols, which seem to be
deliberately defined only in Kconfig.defconfig files:

 - ALTERA_AVALON_I2C
 - ALTERA_AVALON_MSGDMA
 - ALTERA_AVALON_PIO
 - ALTERA_AVALON_QSPI
 - ALTERA_AVALON_SYSID
 - CLOCK_CONTROL_IMX_CCM
 - CPU_EM4_DMIPS
 - CPU_EM4_FPUDA
 - CPU_EM4_FPUS
 - FP_FPU_DA
 - I2C_GECKO

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-11-13 16:04:01 -05:00

120 lines
1.4 KiB
Text

#
# Copyright (c) 2017 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
if BOARD_MPS2_AN385
config BOARD
default "mps2_an385"
if GPIO
config GPIO_CMSDK_AHB
default y
config GPIO_CMSDK_AHB_PORT0
default y
config GPIO_CMSDK_AHB_PORT1
default y
config GPIO_CMSDK_AHB_PORT2
default y
config GPIO_CMSDK_AHB_PORT3
default y
endif # GPIO
if SERIAL
config UART_CMSDK_APB
default y
config UART_INTERRUPT_DRIVEN
default y
config UART_CMSDK_APB_PORT0
default y
config UART_CMSDK_APB_PORT1
default y
config UART_CMSDK_APB_PORT2
default y
config UART_CMSDK_APB_PORT3
default y
config UART_CMSDK_APB_PORT4
default y
endif # SERIAL
if WATCHDOG
config WDOG_CMSDK_APB
default y
endif # WATCHDOG
if COUNTER
if COUNTER_TMR_CMSDK_APB
config COUNTER_TMR_CMSDK_APB_0
default y
config COUNTER_TMR_CMSDK_APB_1
default y
endif # COUNTER_TMR_CMSDK_APB
if TIMER_TMR_CMSDK_APB
config TIMER_TMR_CMSDK_APB_0
default y
config TIMER_TMR_CMSDK_APB_1
default y
endif # TIMER_TMR_CMSDK_APB
if COUNTER_DTMR_CMSDK_APB
config COUNTER_DTMR_CMSDK_APB_0
default y
endif # COUNTER_DTMR_CMSDK_APB
if TIMER_DTMR_CMSDK_APB
config TIMER_DTMR_CMSDK_APB_0
default y
endif # TIMER_DTMR_CMSDK_APB
endif # COUNTER
if I2C
config I2C_SBCON
default y
config I2C_SBCON_0
default y
config I2C_SBCON_1
default y
config I2C_SBCON_2
default y
config I2C_SBCON_3
default y
endif # I2C
endif