From 9a8e5dcdf02572f89b6a8d74d4f5da265bddece2 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 24 Jul 2012 13:31:57 -0700 Subject: [PATCH] Flip sense of capture clock on SGPIO, which seems to solve the RX data corruption issues. TODO: I wish I had more than empirical evidence that this fix is correct... --- firmware/sgpio-rx/sgpio-rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/sgpio-rx/sgpio-rx.c b/firmware/sgpio-rx/sgpio-rx.c index 1b443a01..c2e00ee3 100644 --- a/firmware/sgpio-rx/sgpio-rx.c +++ b/firmware/sgpio-rx/sgpio-rx.c @@ -262,7 +262,7 @@ void configure_sgpio_test_rx() { (0L << 4) | // DATA_CAPTURE_MODE = 0 (detect rising edge) (0L << 3) | // INV_OUT_CLK = X (1L << 2) | // CLKGEN_MODE = 1 (use external pin clock) - (0L << 1) | // CLK_CAPTURE_MODE = 0 (use rising clock edge) + (1L << 1) | // CLK_CAPTURE_MODE = 1 (use falling clock edge) (0L << 0); // MATCH_MODE = 0 (do not match data) SGPIO_PRESET(SGPIO_SLICE_A) = 0;