summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2016-01-20 01:41:47 +0100
committerSteve Markgraf <steve@steve-m.de>2016-01-20 01:41:47 +0100
commitce3c88e075ee5d5e97f8497c0143aeedf3ad0f8c (patch)
treee167c4d1e440ac1afb72b37e5cee196e299a3caf
parentbec943f0b7b46680c107d9ee634a6e281222aa20 (diff)
fw: fix SPCA552 write timing
With GCC 4.9.3 the timing was broken and initializing the SPCA552 on the Pirelli DP-L10 did not work. Add a small delay which fixes that. Signed-off-by: Steve Markgraf <steve@steve-m.de>
-rw-r--r--src/target/firmware/fb/fb_s6b33b1x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/firmware/fb/fb_s6b33b1x.c b/src/target/firmware/fb/fb_s6b33b1x.c
index 3629a10..788ada7 100644
--- a/src/target/firmware/fb/fb_s6b33b1x.c
+++ b/src/target/firmware/fb/fb_s6b33b1x.c
@@ -99,6 +99,7 @@ static void fb_s6b33b1x_send_cmdlist(const struct s6b33b1x_cmdlist *p)
static void fb_spca_write(uint16_t addr, uint16_t val)
{
writew(addr, nCS4_ADDR);
+ delay_ms(1);
writew(val , nCS4_ADDR | 2);
}