]> git.sur5r.net Git - u-boot/commitdiff
video, lg4573: make spi bus and cs configurable
authorHeiko Schocher <hs@denx.de>
Mon, 24 Aug 2015 09:36:39 +0000 (11:36 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 2 Sep 2015 13:38:16 +0000 (15:38 +0200)
make the spi bus and the spi chipselect configurable
for the lg4573 driver. Use it on the aristainetos
boards.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
drivers/video/lg4573.c
include/configs/aristainetos2.h

index 43670fc320b7c3ed646a87155a092e1789657843..11fef279a90d7101846d0a61563649ad69c1340a 100644 (file)
@@ -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;
 }
 
index faeafe2dda25b7ed8af05a73d070dd82c2c63d60..dd090c58feca9fb11f43369049fe0ef01a3d1f87 100644 (file)
@@ -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