summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2013-10-22 11:06:24 +0200
committerAnatolij Gustschin <agust@denx.de>2013-10-30 10:48:41 +0100
commit1c6e9de53ba47afacd26fb784818aeb63a01baad (patch)
tree2b2b1bdab4ca1fc3082091be083c92a1bba67537 /drivers
parent45ae2546ef157b647d8684845c6554283b80be92 (diff)
downloadu-boot-imx-1c6e9de53ba47afacd26fb784818aeb63a01baad.zip
u-boot-imx-1c6e9de53ba47afacd26fb784818aeb63a01baad.tar.gz
u-boot-imx-1c6e9de53ba47afacd26fb784818aeb63a01baad.tar.bz2
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: Heiko Schocher <hs@denx.de> Cc: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/formike.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/formike.c b/drivers/video/formike.c
index b9b6822..1383158 100644
--- a/drivers/video/formike.c
+++ b/drivers/video/formike.c
@@ -27,10 +27,11 @@ static int spi_write_tag_val(struct spi_slave *spi, unsigned char tag,
int ret;
buf[0] = tag;
- buf[1] = val;
- flags |= SPI_XFER_END;
+ ret = spi_xfer(spi, 8, buf, NULL, flags);
+ 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
printf("spi_write_tag_val: tag=%02X, val=%02X ret: %d\n",
tag, val, ret);