diff options
author | wdenk <wdenk> | 2003-05-20 20:49:01 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-05-20 20:49:01 +0000 |
commit | 82226bf4d2fe87076d7f5d7e2677fdd5d0e35fc2 (patch) | |
tree | 5d03167fc333d401f2eea37dcad640b77516d4d3 /board/trab/trab.c | |
parent | 7f70e85309c6367138c0ebd14abdd49964b8d50a (diff) | |
download | u-boot-imx-82226bf4d2fe87076d7f5d7e2677fdd5d0e35fc2.zip u-boot-imx-82226bf4d2fe87076d7f5d7e2677fdd5d0e35fc2.tar.gz u-boot-imx-82226bf4d2fe87076d7f5d7e2677fdd5d0e35fc2.tar.bz2 |
* Add support for arbitrary bitmaps for TRAB's VFD command
* Patch by Christian Geißinger, 19 May 2002:
On TRAB: wait until the dummy byte has been completely sent
Diffstat (limited to 'board/trab/trab.c')
-rw-r--r-- | board/trab/trab.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/trab/trab.c b/board/trab/trab.c index e3e8553..6c9971f 100644 --- a/board/trab/trab.c +++ b/board/trab/trab.c @@ -33,7 +33,7 @@ #ifdef CFG_BRIGHTNESS static void spi_init(void); static void wait_transmit_done(void); -static void tsc2000_write(unsigned int page, unsigned int reg, +static void tsc2000_write(unsigned int page, unsigned int reg, unsigned int data); static void tsc2000_set_brightness(void); #endif @@ -328,6 +328,7 @@ static void spi_init(void) for (i = 0; i < 10; i++) { rSPTDAT = 0xFF; } + wait_transmit_done(); } static void wait_transmit_done(void) @@ -335,7 +336,7 @@ static void wait_transmit_done(void) while (!(rSPSTA & 0x01)); /* wait until transfer is done */ } -static void tsc2000_write(unsigned int page, unsigned int reg, +static void tsc2000_write(unsigned int page, unsigned int reg, unsigned int data) { unsigned int command; |