clock: Always wait 2us before deasserting reset

This commit is contained in:
CTCaer
2019-12-04 21:32:51 +02:00
parent 0b1eebefe1
commit dd8ec0d28b
2 changed files with 10 additions and 6 deletions

View File

@@ -91,6 +91,8 @@ void clock_enable(const clock_t *clk)
CLOCK(clk->source) = clk->clk_div | (clk->clk_src << 29);
// Enable.
CLOCK(clk->enable) = (CLOCK(clk->enable) & ~(1 << clk->index)) | (1 << clk->index);
usleep(2);
// Take clock off reset.
CLOCK(clk->reset) &= ~(1 << clk->index);
}