arc: hsdk: add lvgl support for hsdk board
The ARC HSDK board provides an Arduino shield interface, we can use it for TFT TOUCH SHIELD. Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
parent
75a65a0ad1
commit
fd17b86b94
5 changed files with 119 additions and 0 deletions
|
@ -8,4 +8,47 @@ if BOARD_HSDK
|
|||
config BOARD
|
||||
default "hsdk"
|
||||
|
||||
if GPIO
|
||||
|
||||
config GPIO_DW
|
||||
default y
|
||||
|
||||
if GPIO_DW
|
||||
|
||||
config GPIO_DW_0
|
||||
default y
|
||||
|
||||
endif # GPIO_DW
|
||||
|
||||
endif # GPIO
|
||||
|
||||
if SPI
|
||||
|
||||
config SPI_DW
|
||||
default y
|
||||
|
||||
if SPI_DW
|
||||
|
||||
config SPI_DW_FIFO_DEPTH
|
||||
default 32
|
||||
|
||||
config SPI_DW_ARC_AUX_REGS
|
||||
default n
|
||||
|
||||
config SPI_DW_ACCESS_WORD_ONLY
|
||||
default y
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
|
||||
config SPI_2
|
||||
default y
|
||||
|
||||
endif # SPI_DW
|
||||
|
||||
endif # SPI
|
||||
|
||||
endif # BOARD_HSDK
|
||||
|
|
|
@ -27,3 +27,23 @@
|
|||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
interrupts = <56 1>;
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
clock-frequency = <33333333>;
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
status = "okay";
|
||||
clock-frequency = <33333333>;
|
||||
};
|
||||
|
||||
&spi2 {
|
||||
status = "okay";
|
||||
clock-frequency = <33333333>;
|
||||
};
|
||||
|
|
|
@ -15,3 +15,5 @@ CONFIG_UART_CONSOLE=y
|
|||
CONFIG_SERIAL=y
|
||||
CONFIG_PINMUX=y
|
||||
CONFIG_PINMUX_HSDK=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue