diff --git a/boards/arm/cxd56xx/spresense/Kconfig b/boards/arm/cxd56xx/spresense/Kconfig index ff2960348e..dbb7c793e7 100644 --- a/boards/arm/cxd56xx/spresense/Kconfig +++ b/boards/arm/cxd56xx/spresense/Kconfig @@ -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" diff --git a/boards/arm/cxd56xx/spresense/include/board.h b/boards/arm/cxd56xx/spresense/include/board.h index e19782e6fe..72e4e7e4bb 100644 --- a/boards/arm/cxd56xx/spresense/include/board.h +++ b/boards/arm/cxd56xx/spresense/include/board.h @@ -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