Add support for the PCIe controller on the Qualcomm SC8280XP. Thankfully
authorpatrick <patrick@openbsd.org>
Mon, 7 Nov 2022 20:15:44 +0000 (20:15 +0000)
committerpatrick <patrick@openbsd.org>
Mon, 7 Nov 2022 20:15:44 +0000 (20:15 +0000)
commita848a3cb9519d5b1af313d52b0cefadefdc7fa6b
treea94535eb205d59c1d3b087537239dd9b1aa629d7
parent90c9070de639fd416deb3e56b177481e69c29ad6
Add support for the PCIe controller on the Qualcomm SC8280XP.  Thankfully
UEFI already initializes those, so we can simply just make use of that.

That said, the ctrl/dbi region isn't the first in the register list, so
instead try and look it up first and use it if available.  Furthermore,
the ATU region isn't part of the ctrl/dbi region, so if we are able to
retrieve a separate reg for the ATU, use that instead.  Some reshuffling
is necessary to make that work.

Tested on my Lenovo x13s and the MacchiatoBin
ok kettenis@
sys/dev/fdt/dwpcie.c