Merge tag 'mips-pull-2018-11-30' of git://git.denx.de/u-boot-mips
[oweals/u-boot.git] / arch / arm / mach-mvebu / serdes / a38x / ctrl_pex.h
index ca8a4d206a36119939812d56dae8525da502e925..3f30b6bf972e1551c0afaac42c617fcfa120402f 100644 (file)
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Copyright (C) Marvell International Ltd. and its affiliates
- *
- * SPDX-License-Identifier:    GPL-2.0
  */
 
 #ifndef _CTRL_PEX_H
@@ -47,6 +46,7 @@
 
 /* Controller revision info */
 #define PEX_DEVICE_AND_VENDOR_ID       0x000
+#define PEX_CFG_DIRECT_ACCESS(if, reg) (PEX_IF_REGS_BASE(if) + (reg))
 
 /* PCI Express Configuration Address Register */
 #define PXCAR_REG_NUM_OFFS             2