From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 5 Jun 2019 18:05:45 +0800 Subject: [U-Boot] [PATCH 2/4 v2] drivers: pci: add map_bar support for Enhanced Allocation In-Reply-To: <20190604124628.31882-2-alexm.osslist@gmail.com> References: <20190604124628.31882-1-alexm.osslist@gmail.com> <20190604124628.31882-2-alexm.osslist@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jun 4, 2019 at 8:46 PM Alex Marginean wrote: > > Makes dm_pci_map_bar API available for integrated PCI devices that > support Enhanced Allocation instead of the original PCI BAR mechanism. > > Signed-off-by: Alex Marginean > --- > > Changes in v2: > - fixed parsing for BAR1+ > - fixed an issue with EA entry size > - don't look up EA capability structure twice > - use phys_addr_t for EA addresses > - use kernel MACROS for EA registers > > drivers/pci/pci-uclass.c | 46 ++++++++++++++++++++++++++++++++++++++++ > include/pci.h | 13 ++++++++++++ > 2 files changed, 59 insertions(+) > Reviewed-by: Bin Meng