OSDN Git Service

PCI: keystone: Cleanup outbound window configuration
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Oct 2018 07:41:08 +0000 (13:11 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 17 Oct 2018 08:48:14 +0000 (09:48 +0100)
commite75043ad9792596916ed0e1910b44f34b181c3b7
tree3ab8c25d0608e7cdad391208b0877ebdae5a3eff
parentb4f1af8352fda6926831b52caff37709bc895d05
PCI: keystone: Cleanup outbound window configuration

Outbound translation window is configured in order to access the
PCIe card's MEM space. Cleanup outbound translation configuration
here by using BIT() macros, adding a macro for window size and
using lower_32_bits/upper_32_bits macros for configuring the 64 bit
offset in the outbound translation region.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pci-keystone.c