Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards: spresense: Add LCD support on LTE board #17

Merged
merged 1 commit into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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