]> git.sur5r.net Git - u-boot/commitdiff
ARM: mvebu: a38x: move definition of PEX_CFG_DIRECT_ACCESS
authorChris Packham <judge.packham@gmail.com>
Thu, 10 May 2018 01:28:26 +0000 (13:28 +1200)
committerStefan Roese <sr@denx.de>
Mon, 14 May 2018 08:01:56 +0000 (10:01 +0200)
PEX_CFG_DIRECT_ACCESS was defined in ddr3_hws_hw_training_def.h despite
only being used in the serdes code. Move this definition to ctrl_pex.h
where all the other PEX defines are. Also remove the duplicate
definition of PEX_DEVICE_AND_VENDOR_ID which is already defined in
ctrl_pex.h.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h
drivers/ddr/marvell/a38x/ddr3_hws_hw_training_def.h

index 53ed4eab320395803204a0354f3d88171c5551e7..3f30b6bf972e1551c0afaac42c617fcfa120402f 100644 (file)
@@ -46,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
index c99437be22aa1785ef176b6fb56e235ae8e9d2f0..a87fc404cb7d9f62d43583619e23749ae6ca7abb 100644 (file)
 
 /* Power Management Clock Gating Control Register */
 #define POWER_MNG_CTRL_REG                     0x18220
-#define PEX_DEVICE_AND_VENDOR_ID               0x000
-#define PEX_CFG_DIRECT_ACCESS(if, reg) (PEX_IF_REGS_BASE(if) + (reg))
 #define PMC_PEXSTOPCLOCK_OFFS(p)       ((p) < 8 ? (5 + (p)) : (18 + (p)))
 #define PMC_PEXSTOPCLOCK_MASK(p)       (1 << PMC_PEXSTOPCLOCK_OFFS(p))
 #define PMC_PEXSTOPCLOCK_EN(p)         (1 << PMC_PEXSTOPCLOCK_OFFS(p))