Skip to content
Snippets Groups Projects
Commit c4e498d9 authored by Heiko Schocher's avatar Heiko Schocher Committed by Stefano Babic
Browse files

video, lg4573: make spi bus and cs configurable


make the spi bus and the spi chipselect configurable
for the lg4573 driver. Use it on the aristainetos
boards.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Acked-by: default avatarAnatolij Gustschin <agust@denx.de>
parent 2738948a
No related branches found
No related tags found
No related merge requests found
...@@ -220,7 +220,8 @@ err_claim_bus: ...@@ -220,7 +220,8 @@ err_claim_bus:
static int do_lgset(cmd_tbl_t *cmdtp, int flag, int argc, static int do_lgset(cmd_tbl_t *cmdtp, int flag, int argc,
char * const argv[]) char * const argv[])
{ {
lg4573_spi_startup(0, 0, 10000000, SPI_MODE_0); lg4573_spi_startup(CONFIG_LG4573_BUS, CONFIG_LG4573_CS, 10000000,
SPI_MODE_0);
return 0; return 0;
} }
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
/* Framebuffer */ /* Framebuffer */
#define CONFIG_SYS_LDB_CLOCK 33246000 #define CONFIG_SYS_LDB_CLOCK 33246000
#define CONFIG_LG4573 #define CONFIG_LG4573
#define CONFIG_LG4573_BUS 0
#define CONFIG_LG4573_CS 0
#define CONFIG_CMD_BMP #define CONFIG_CMD_BMP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment