2019-04-06 09:08:09 -04:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2016-05-20 21:23:34 -07:00
|
|
|
if BOARD_EM_STARTERKIT
|
|
|
|
|
|
|
|
config BOARD
|
2016-05-24 18:17:13 -05:00
|
|
|
default "em_starterkit"
|
2016-05-20 21:23:34 -07:00
|
|
|
|
2017-06-15 05:43:09 -04:00
|
|
|
if GPIO
|
|
|
|
|
2021-11-05 16:58:21 -05:00
|
|
|
config GPIO_INIT_PRIORITY
|
|
|
|
default 70
|
|
|
|
|
2017-06-15 05:43:09 -04:00
|
|
|
config GPIO_DW
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
if GPIO_DW
|
|
|
|
|
|
|
|
config GPIO_DW_0
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
config GPIO_DW_1
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
config GPIO_DW_2
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
config GPIO_DW_3
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
endif # GPIO_DW
|
|
|
|
|
|
|
|
endif # GPIO
|
|
|
|
|
|
|
|
if I2C
|
|
|
|
|
|
|
|
config I2C_DW
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
if I2C_DW
|
|
|
|
|
|
|
|
config I2C_DW_CLOCK_SPEED
|
|
|
|
default 100
|
|
|
|
|
|
|
|
endif # I2C_DW
|
|
|
|
|
|
|
|
endif # I2C
|
|
|
|
|
2018-08-23 20:34:56 +08:00
|
|
|
config UART_NS16550
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on SERIAL
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
if SPI
|
|
|
|
|
|
|
|
config SPI_DW
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2017-06-15 05:43:09 -04:00
|
|
|
|
|
|
|
if SPI_DW
|
|
|
|
|
|
|
|
config SPI_DW_FIFO_DEPTH
|
|
|
|
default 32
|
|
|
|
|
|
|
|
config SPI_DW_ARC_AUX_REGS
|
2018-11-13 17:15:49 +01:00
|
|
|
default n
|
2017-06-15 05:43:09 -04:00
|
|
|
|
2021-06-29 15:12:08 +08:00
|
|
|
if BOARD_EM_STARTERKIT_R23
|
|
|
|
|
|
|
|
config GPIO_SNPS_CREG
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # BOARD_EM_STARTERKIT_R23
|
|
|
|
|
2017-06-15 05:43:09 -04:00
|
|
|
endif # SPI_DW
|
|
|
|
|
|
|
|
endif # SPI
|
|
|
|
|
2016-05-20 21:23:34 -07:00
|
|
|
endif # BOARD_EM_STARTERKIT
|