]> git.sur5r.net Git - u-boot/blobdiff - drivers/video/lg4573.c
ARM: socfpga: Pull DRAM size from DT
[u-boot] / drivers / video / lg4573.c
index 43670fc320b7c3ed646a87155a092e1789657843..46d9ec83ce41cf9a998f61b1ee14ccee6a4cd8da 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * LCD: LG4573, TFT 4.3", 480x800, RGB24
  * LCD initialization via SPI
  *
- * SPDX-License-Identifier:    GPL-2.0
- *
  */
 #include <common.h>
 #include <errno.h>
@@ -220,7 +219,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;
 }