From: Heiko Schocher Date: Mon, 24 Aug 2015 09:36:39 +0000 (+0200) Subject: video, lg4573: make spi bus and cs configurable X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=c4e498d9a34794e96aa358b2f20bac3e00ac618d;p=u-boot.git 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: Heiko Schocher Acked-by: Anatolij Gustschin --- diff --git a/drivers/video/lg4573.c b/drivers/video/lg4573.c index 43670fc320..11fef279a9 100644 --- a/drivers/video/lg4573.c +++ b/drivers/video/lg4573.c @@ -220,7 +220,8 @@ err_claim_bus: static int do_lgset(cmd_tbl_t *cmdtp, int flag, int argc, 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; } diff --git a/include/configs/aristainetos2.h b/include/configs/aristainetos2.h index faeafe2dda..dd090c58fe 100644 --- a/include/configs/aristainetos2.h +++ b/include/configs/aristainetos2.h @@ -45,6 +45,8 @@ /* Framebuffer */ #define CONFIG_SYS_LDB_CLOCK 33246000 #define CONFIG_LG4573 +#define CONFIG_LG4573_BUS 0 +#define CONFIG_LG4573_CS 0 #define CONFIG_CMD_BMP