atsamd: Use "communication interface" menu option in Kconfig
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
6a4f1ece89
commit
1804fbfce9
|
@ -14,6 +14,11 @@ config ATSAMD_SELECT
|
||||||
select HAVE_STRICT_TIMING
|
select HAVE_STRICT_TIMING
|
||||||
select HAVE_CHIPID
|
select HAVE_CHIPID
|
||||||
|
|
||||||
|
config HAVE_SERCOM
|
||||||
|
depends on HAVE_GPIO_I2C || HAVE_GPIO_SPI
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
config BOARD_DIRECTORY
|
config BOARD_DIRECTORY
|
||||||
string
|
string
|
||||||
default "atsamd"
|
default "atsamd"
|
||||||
|
@ -127,15 +132,17 @@ config FLASH_START
|
||||||
default 0x0000
|
default 0x0000
|
||||||
|
|
||||||
config USBSERIAL
|
config USBSERIAL
|
||||||
bool "Use USB for communication (instead of serial)" if MACH_SAMD21
|
bool
|
||||||
default y
|
|
||||||
config SERIAL
|
config SERIAL
|
||||||
depends on !USBSERIAL
|
|
||||||
bool
|
bool
|
||||||
default y
|
choice
|
||||||
config HAVE_SERCOM
|
prompt "Communication interface"
|
||||||
depends on HAVE_GPIO_I2C || HAVE_GPIO_SPI
|
config ATSAMD_USB
|
||||||
bool
|
bool "USB"
|
||||||
default y
|
select USBSERIAL
|
||||||
|
config ATSAMD_SERIAL
|
||||||
|
bool "Serial"
|
||||||
|
select SERIAL
|
||||||
|
endchoice
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue