try and cope with not having the firmware/boot loader init the hardware.
authordlg <dlg@openbsd.org>
Sat, 8 Apr 2023 02:32:38 +0000 (02:32 +0000)
committerdlg <dlg@openbsd.org>
Sat, 8 Apr 2023 02:32:38 +0000 (02:32 +0000)
commitcc608470f3234f1696d26db6b569c942f86bd2ce
treed8efae789a26cb9bb1e7809782282dc3a34a826f
parent85396ad1558c5fe5fd9882c676b366907ab7ac78
try and cope with not having the firmware/boot loader init the hardware.

more specifically, spin up the clocks and phy, and if the device
tree has a "ports-implemented" property use it to initialise the
AHCI_REG_PI register.

this gets sata working on a banana pi bpi-r2 pro.

help from jared mcneill
ok jmatthew@ kettenis@
sys/dev/fdt/ahci_fdt.c