Page MenuHomeFreeBSD

a10_ahci: grab the target-supply regulator and enable it
ClosedPublic

Authored by kevans on Jan 9 2020, 8:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 11:56 PM
Unknown Object (File)
Aug 21 2023, 8:17 AM
Unknown Object (File)
Aug 2 2023, 6:22 PM
Unknown Object (File)
Jul 15 2023, 10:21 PM
Subscribers

Details

Summary

This regulator is marked regulator-boot-on, but we'll shut it down (IIRC) if we don't reference it in this way. This should hopefully fix SATA on the Cubieboard2, as reported by Ray White.

Test Plan

This is completely untested.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I've since realized that the cubieboard1 does in-fact have SATA, I just don't have it broken out. Test-booted, and now I get:

ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 19 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahci0: Caps: NCQ SNTF ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports
ahcich0: not probed (disabled)
regulator: shutting down ahci-5v... busy

The cubieboard1 also needs this to boot: https://people.freebsd.org/~kevans/cubie-ldo3.diff -> because ldo3 is essential, but I don't know if this is sufficient information to try upstreaming it.

This revision is now accepted and ready to land.Jan 10 2020, 10:42 AM