From bd562921e87178ac94deae1b0eafa06a2872de3e Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Sun, 11 Dec 2016 12:46:04 -0600 Subject: [PATCH] spi: Add shared default configs Adds default configurations for baud rate, transfer word size, clock polarity and phase. These default configurations can be shared across multiple spi drivers. Change-Id: I221b402c075003014991b38f6342a89e55c3bec9 Signed-off-by: Maureen Helm --- drivers/spi/Kconfig | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 8c03c233fce..6ba473fb628 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -97,6 +97,16 @@ config SPI_0_IRQ_PRI prompt "Port 0 interrupt priority" depends on SPI_0 +config SPI_0_DEFAULT_CFG + hex "Port 0 default configuration" + depends on SPI_0 + default 0x80 + +config SPI_0_DEFAULT_BAUD_RATE + int "Port 0 default baud rate" + depends on SPI_0 + default 500000 + config SPI_0_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS" @@ -126,6 +136,16 @@ config SPI_1_IRQ_PRI prompt "Port 0 interrupt priority" depends on SPI_1 +config SPI_1_DEFAULT_CFG + hex "Port 1 default configuration" + depends on SPI_1 + default 0x80 + +config SPI_1_DEFAULT_BAUD_RATE + int "Port 1 default baud rate" + depends on SPI_1 + default 500000 + config SPI_1_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS" @@ -155,6 +175,16 @@ config SPI_2_IRQ_PRI prompt "Port 2 interrupt priority" depends on SPI_2 +config SPI_2_DEFAULT_CFG + hex "Port 2 default configuration" + depends on SPI_2 + default 0x80 + +config SPI_2_DEFAULT_BAUD_RATE + int "Port 2 default baud rate" + depends on SPI_2 + default 500000 + config SPI_2_CS_GPIO_PORT string prompt "The GPIO port which is used to control CS"