2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2016-06-16 02:51:03 +08:00
|
|
|
if SOC_NIOS2F_ZEPHYR
|
|
|
|
|
|
|
|
config SOC
|
2018-05-26 03:19:21 +08:00
|
|
|
default "nios2f-zephyr"
|
2016-06-16 02:51:03 +08:00
|
|
|
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
2016-06-22 04:59:36 +08:00
|
|
|
default 50000000
|
2016-06-16 02:51:03 +08:00
|
|
|
|
2017-12-13 09:08:33 +08:00
|
|
|
config ALTERA_AVALON_SYSID
|
|
|
|
def_bool y
|
|
|
|
|
2018-01-30 13:16:08 +08:00
|
|
|
if SOC_FLASH_NIOS2_QSPI
|
|
|
|
|
|
|
|
config ALTERA_AVALON_QSPI
|
|
|
|
def_bool y
|
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
endif # SOC_FLASH_NIOS2_QSPI
|
2018-01-30 13:16:08 +08:00
|
|
|
|
2018-02-07 02:00:41 +08:00
|
|
|
if I2C_NIOS2
|
|
|
|
|
|
|
|
config ALTERA_AVALON_I2C
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
endif # I2C_NIOS2
|
|
|
|
|
2018-05-03 21:54:21 +08:00
|
|
|
if DMA_NIOS2_MSGDMA
|
|
|
|
|
|
|
|
config ALTERA_AVALON_MSGDMA
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
endif # DMA_NIOS2_MSGDMA
|
|
|
|
|
2016-07-15 04:41:34 +08:00
|
|
|
if UART_NS16550
|
|
|
|
|
|
|
|
config UART_NS16550_PORT_0
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2016-07-15 04:41:34 +08:00
|
|
|
|
|
|
|
if UART_NS16550_PORT_0
|
|
|
|
|
|
|
|
config UART_NS16550_PORT_0_OPTIONS
|
|
|
|
default 0
|
|
|
|
|
|
|
|
endif # UART_NS16550_PORT_0
|
|
|
|
|
|
|
|
endif # UART_NS16550
|
|
|
|
|
|
|
|
endif # SOC_NIOS2F_ZEPHYR
|