#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

comment "i.MX8MP Configuration Options"

menu "i.MX8MP Peripheral Selection"

config MX8MP_UART1
	bool "UART1"
	default n
	select UART1_SERIALDRIVER
	select ARCH_HAVE_SERIAL_TERMIOS

config MX8MP_UART2
	bool "UART2"
	default n
	select UART2_SERIALDRIVER
	select ARCH_HAVE_SERIAL_TERMIOS

config MX8MP_UART3
	bool "UART3"
	default n
	select UART3_SERIALDRIVER
	select ARCH_HAVE_SERIAL_TERMIOS

config MX8MP_UART4
	bool "UART4"
	default n
	select UART4_SERIALDRIVER
	select ARCH_HAVE_SERIAL_TERMIOS

#####################################################################
#  I2C Configuration (Master)
#####################################################################

config MX8MP_I2C
	bool "I2C Master"
	select I2C
	---help---
		Build in support for I2C master mode.

if MX8MP_I2C

config MX8MP_I2C1
	bool "I2C1"
	default n
	select I2C

config MX8MP_I2C2
	bool "I2C2"
	default n
	select I2C

config MX8MP_I2C3
	bool "I2C3"
	default n
	select I2C

config MX8MP_I2C4
	bool "I2C4"
	default n
	select I2C

config MX8MP_I2C5
	bool "I2C5"
	default n
	select I2C

config MX8MP_I2C6
	bool "I2C6"
	default n
	select I2C

config MX8MP_I2C_DRIVER
	bool "I2C character driver"
	default n
	select I2C_DRIVER
	---help---
		Build in support for a character driver at /dev/i2c[N] that may be
		used to perform I2C bus transfers from applications.  The intent of
		this driver is to support I2C testing.  It is not suitable for use
		in any real driver application.

endif # MX8MP_I2C

#####################################################################
#  SPI Configuration (Master)
#####################################################################

config MX8MP_SPI
	bool "SPI Master"
	select SPI
	---help---
		Build in support for SPI master mode.

if MX8MP_SPI

config MX8MP_SPI1
	bool "SPI1"
	default n
	select SPI

config MX8MP_SPI2
	bool "SPI2"
	default n
	select SPI

config MX8MP_SPI3
	bool "SPI3"
	default n
	select SPI

config MX8MP_SPI_DRIVER
	bool "SPI character driver"
	default n
	select SPI_DRIVER
	---help---
		Build in support for a character driver at /dev/spi[N] that may b
		used to perform SPI bus transfers from applications.  The intent of
		this driver is to support SPI testing.

endif # MX8MP_SPI

config MX8MP_RPMSG
	bool "RPMSG support"
	default y
	depends on DEV_RPMSG
	---help---
		Enable RPMSG shared memory and behave as a client device that can be
		accessed by the IMX8MP A53 core running Linux IMX.

endmenu # i.MX8MP Peripheral Selection

# These "hidden" settings determine whether a peripheral option is available
# for the selected MCU

# When there are multiple instances of a device, these "hidden" settings
# will automatically be selected and will represent the 'OR' of the
# instances selected.
