* 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
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 @@
for (i = 0; i < 10; i++) {
rSPTDAT = 0xFF;
}
+ wait_transmit_done();
}
static void wait_transmit_done(void)
@@ -335,7 +336,7 @@
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;