]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix PCIe window decoding on Armada 38x
authorzbb <zbb@FreeBSD.org>
Thu, 8 Jun 2017 16:51:46 +0000 (16:51 +0000)
committerzbb <zbb@FreeBSD.org>
Thu, 8 Jun 2017 16:51:46 +0000 (16:51 +0000)
commit1326a8a13d9c15b6bccd1f8039bbf8417d664d06
treea72aa2637a9fa9b8c093ab2d052ebfce4e3a21d8
parent553d3e55f3c7478a0531f47f4a50d437c7b03f80
Fix PCIe window decoding on Armada 38x

Original PCIe nodes for Marvell SoCs consists of ports' nodes
under main controller node. In order to properly parse
this kind of representation in DT a mechanism for traversing
through the tree required an update. Moreover, processing FDT
data consisting of more than 2 cells had to be fixed,
because the 'reg' property of mrvl,pcie node have additional
parameter in front of 64-bit address. It should be skipped
by default. This commit works properly with old mrvl,pcie
representation for Kirkwood and ArmadaXP SoCs.

Submitted by: Wojciech Macek <wma@semihalf.com>
Michal Mazur <mkm@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield, Netgate
Differential revision: https://reviews.freebsd.org/D10905
sys/arm/mv/mv_common.c