Skip to content
Snippets Groups Projects
Commit 1c6e9de5 authored by Heiko Schocher's avatar Heiko Schocher Committed by Anatolij Gustschin
Browse files

video, formike: change tag/val write


write first the "tag" 8 bit value and then the "val" 8-bit
to the display.

Tested on the rut board.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
parent 45ae2546
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,11 @@ static int spi_write_tag_val(struct spi_slave *spi, unsigned char tag, ...@@ -27,10 +27,11 @@ static int spi_write_tag_val(struct spi_slave *spi, unsigned char tag,
int ret; int ret;
buf[0] = tag; buf[0] = tag;
buf[1] = val; ret = spi_xfer(spi, 8, buf, NULL, flags);
flags |= SPI_XFER_END; buf[0] = val;
flags = SPI_XFER_END;
ret = spi_xfer(spi, 8, buf, NULL, flags);
ret = spi_xfer(spi, 16, buf, NULL, flags);
#ifdef KWH043ST20_F01_SPI_DEBUG #ifdef KWH043ST20_F01_SPI_DEBUG
printf("spi_write_tag_val: tag=%02X, val=%02X ret: %d\n", printf("spi_write_tag_val: tag=%02X, val=%02X ret: %d\n",
tag, val, ret); tag, val, ret);
......
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