Fix another reset issue in spi_rxtx
authorAnton Blanchard <anton@linux.ibm.com>
Sun, 3 Jan 2021 19:04:02 +0000 (06:04 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Sun, 3 Jan 2021 19:04:02 +0000 (06:04 +1100)
counter was X state after reset, initialize it.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
spi_rxtx.vhdl

index acb5becb23323f0483fff26238fc6e948de7399e..13acdf367b3e2a4981502b88f12ecd26e152187d 100644 (file)
@@ -177,6 +177,7 @@ begin
                 sck_send <= '0';
                 sck_recv <= '0';
                 clk_div  <= 0;
+                counter := 0;
             elsif counter = clk_div then
                 counter := 0;