bugfix: disable output before programming a new delay

This avoids locking the board by programming a bogus delay
plus disable repeatedly
parent ffc202bf
......@@ -527,6 +527,7 @@ static void __fd_zio_output(struct fd_dev *fd, int index1_4, uint32_t *attrs)
dcr |= FD_DCR_NO_FINE;;
fd_ch_writel(fd, ch, dcr, FD_REG_DCR);
fd_ch_writel(fd, ch, dcr | FD_DCR_UPDATE, FD_REG_DCR);
fd_ch_writel(fd, ch, dcr | FD_DCR_ENABLE, FD_REG_DCR);
if (mode == FD_OUT_MODE_PULSE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment