sifive_prci: Delay attachment until after clk_fixed

This avoids noisy output from early attempts to attach before clk_fixed
has attached to the parent clocks.

Reviewed by:	kp, mhorne
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31023
This commit is contained in:
Jessica Clarke 2021-08-07 19:27:29 +01:00
parent 589d8a78a5
commit dcbea9a2f4

View File

@ -638,5 +638,9 @@ static driver_t prci_driver = {
static devclass_t prci_devclass;
/*
* hfclk and rtcclk appear later in the device tree than prci, so we must
* attach late.
*/
EARLY_DRIVER_MODULE(sifive_prci, simplebus, prci_driver, prci_devclass, 0, 0,
BUS_PASS_BUS);
BUS_PASS_BUS + BUS_PASS_ORDER_LATE);