zephyr/boards/arc/em_starterkit/Kconfig.defconfig
Maureen Helm 836651b453 drivers: gpio: Refactor drivers to use shared init priority
Refactors all of the on-chip GPIO drivers to use a shared driver class
initialization priority configuration, CONFIG_GPIO_INIT_PRIORITY, to
allow configuring GPIO drivers separately from other devices. This is
similar to other driver classes like I2C and SPI.

Most drivers previously used CONFIG_KERNEL_INIT_PRIORITY_DEFAULT or
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, therefore the default for this new
option is the lower of the two, which means earlier initialization.

Driver-specific options for off-chip I2C- or SPI-based GPIO drivers are
left intact because they often need to be initialized at a different
priority than on-chip GPIO drivers.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2021-11-15 14:38:55 -05:00

76 lines
775 B
Text

# SPDX-License-Identifier: Apache-2.0
if BOARD_EM_STARTERKIT
config BOARD
default "em_starterkit"
if GPIO
config GPIO_INIT_PRIORITY
default 70
config GPIO_DW
default y
if GPIO_DW
config GPIO_DW_0
default y
config GPIO_DW_1
default y
config GPIO_DW_2
default y
config GPIO_DW_3
default y
endif # GPIO_DW
endif # GPIO
if I2C
config I2C_DW
default y
if I2C_DW
config I2C_DW_CLOCK_SPEED
default 100
endif # I2C_DW
endif # I2C
config UART_NS16550
default y
depends on SERIAL
if SPI
config SPI_DW
default y
if SPI_DW
config SPI_DW_FIFO_DEPTH
default 32
config SPI_DW_ARC_AUX_REGS
default n
if BOARD_EM_STARTERKIT_R23
config GPIO_SNPS_CREG
default y
endif # BOARD_EM_STARTERKIT_R23
endif # SPI_DW
endif # SPI
endif # BOARD_EM_STARTERKIT