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 <maureen.helm@nxp.com>
This commit is contained in:
parent
18d4c13bda
commit
bd562921e8
1 changed files with 30 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue