Skip to content

Commit

Permalink
boards: spresense: Add LCD support on LTE board
Browse files Browse the repository at this point in the history
  • Loading branch information
SPRESENSE committed Jan 26, 2023
2 parents 85fea3d + 0a1855b commit d25be15
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
8 changes: 7 additions & 1 deletion boards/arm/cxd56xx/spresense/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
17 changes: 16 additions & 1 deletion boards/arm/cxd56xx/spresense/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ enum board_power_device
#define BOARD_POWEROFF_DEEP (0)
#define BOARD_POWEROFF_COLD (1)

/* Power domain definitions **********************************************/
/* Power domain definitions *************************************************/

#define BOARD_PM_IDLE (0)
#define BOARD_PM_APPS (1)
Expand Down Expand Up @@ -244,6 +244,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
Expand Down

0 comments on commit d25be15

Please sign in to comment.