arch/x86/quark_se: Let the possibility to use native SPI driver

Set the right definitions to be able to use SPI_DW instead of SPI_QMSI.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2017-05-02 14:25:49 +02:00 committed by Anas Nashif
commit 62941365b0
2 changed files with 24 additions and 0 deletions

View file

@ -162,6 +162,12 @@ config SPI_1
config SPI_1_IRQ_PRI
default 2
config SPI_DW
def_bool n
config SPI_DW_FIFO_DEPTH
default 7
endif # SPI

View file

@ -62,6 +62,24 @@
#define UART_IRQ_FLAGS (IOAPIC_LEVEL | IOAPIC_HIGH)
#ifdef CONFIG_SPI_DW
#define SPI_DW_PORT_0_REGS 0xB0001000
#define SPI_DW_PORT_0_IRQ 2
#define SPI_DW_PORT_0_INT_MASK (SCSS_REGISTER_BASE + 0x454)
#define SPI_DW_PORT_1_REGS 0xB0001400
#define SPI_DW_PORT_1_IRQ 3
#define SPI_DW_PORT_1_INT_MASK (SCSS_REGISTER_BASE + 0x458)
#define SPI_DW_PORT_2_REGS 0xB0001800
#define SPI_DW_PORT_2_IRQ 4
#define SPI_DW_PORT_2_INT_MASK (SCSS_REGISTER_BASE + 0x45C)
#define SPI_DW_IRQ_FLAGS (IOAPIC_LEVEL | IOAPIC_HIGH)
#endif /* CONFIG_SPI_DW */
#endif /* _ASMLANGUAGE */
#ifdef CONFIG_ARC_INIT