mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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 <hs@denx.de> Acked-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
2738948a05
commit
c4e498d9a3
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue