zephyr/boards/nios2/altera_max10/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

44 lines
616 B
Plaintext

if BOARD_ALTERA_MAX10
config BOARD
default "altera_max10"
if FLASH
config SOC_FLASH_NIOS2_QSPI
default y
if SOC_FLASH_NIOS2_QSPI
config SOC_FLASH_NIOS2_QSPI_DEV_NAME
default "NIOS2_QSPI_FLASH"
if DISK_ACCESS_FLASH
config DISK_FLASH_DEV_NAME
default SOC_FLASH_NIOS2_QSPI_DEV_NAME
config DISK_FLASH_START
default 0x0
config DISK_FLASH_MAX_RW_SIZE
default 256
config DISK_ERASE_BLOCK_SIZE
default 0x10000
config DISK_FLASH_ERASE_ALIGNMENT
default 0x10000
config DISK_VOLUME_SIZE
default 0x4000000
endif # DISK_ACCESS_FLASH
endif # SOC_FLASH_NIOS2_QSPI
endif # FLASH
endif # BOARD_ALTERA_MAX10