boards: spresense: Add LCD support on LTE board
Add a configuration to use SPI3 on LTE extension board for LCD.
This commit is contained in:
parent
1ce5dd948e
commit
8c7fc2c175
@ -497,6 +497,12 @@ choice
|
||||
prompt "LCD SPI connection"
|
||||
default LCD_ON_EXTENSION_BOARD
|
||||
|
||||
config LCD_ON_LTE_EXTENSION_BOARD
|
||||
bool "LTE extension board: SPI3"
|
||||
select CXD56_SPI3
|
||||
---help---
|
||||
Display connected to LTE extension board.
|
||||
|
||||
config LCD_ON_EXTENSION_BOARD
|
||||
bool "Extension board: SPI4"
|
||||
select CXD56_SPI4
|
||||
@ -609,7 +615,7 @@ endchoice
|
||||
|
||||
endif
|
||||
|
||||
if LCD_ON_EXTENSION_BOARD
|
||||
if LCD_ON_EXTENSION_BOARD || LCD_ON_LTE_EXTENSION_BOARD
|
||||
|
||||
choice
|
||||
prompt "LCD ILI934x RST Pin selection"
|
||||
|
@ -239,6 +239,21 @@ enum board_power_device
|
||||
#define DISPLAY_DMA_TX_MAXSIZE (192000)
|
||||
#define DISPLAY_DMA_RX_MAXSIZE (192000)
|
||||
|
||||
#elif defined(CONFIG_LCD_ON_LTE_EXTENSION_BOARD)
|
||||
|
||||
/* Display connected to LTE extension board. */
|
||||
|
||||
#define DISPLAY_SPI 3
|
||||
|
||||
/* Specify invalid channels because DMA cannot be used */
|
||||
|
||||
#define DISPLAY_DMA_TXCH (-1)
|
||||
#define DISPLAY_DMA_RXCH (-1)
|
||||
#define DISPLAY_DMA_TXCH_CFG (-1)
|
||||
#define DISPLAY_DMA_RXCH_CFG (-1)
|
||||
#define DISPLAY_DMA_TX_MAXSIZE (192000)
|
||||
#define DISPLAY_DMA_RX_MAXSIZE (192000)
|
||||
|
||||
#else /* Display is connected through extension board. */
|
||||
|
||||
#define DISPLAY_SPI 4
|
||||
|
Loading…
Reference in New Issue
Block a user