diff options
author | Stefan Roese <sr@denx.de> | 2015-06-08 17:01:26 +0200 |
---|---|---|
committer | Luka Perkov <luka.perkov@sartura.hr> | 2015-07-23 10:39:25 +0200 |
commit | ad6ac7aa0002915bf2a285c85a8e96a0f8c2b6aa (patch) | |
tree | 8ceed19dd62a69a713bbb152e99b40c46f52a154 /arch | |
parent | f1df9364459425abba75488a148ddd98fabf40d7 (diff) |
arm: mvebu: a38x: Use correct PEX register access macros
Remove the incorrect PEX macros from the DDR header. And insert the
correct ones in ctrl_pex.h instead.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h b/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h index 50327595fc..df395bf9eb 100644 --- a/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h +++ b/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h @@ -19,6 +19,10 @@ #define MV_MISC_REGS_BASE MISC_REGS_OFFSET #define SOC_CTRL_REG (MV_MISC_REGS_BASE + 0x4) +#define PEX_IF_REGS_OFFSET(if) ((if) > 0 ? \ + (0x40000 + ((if) - 1) * 0x4000) : \ + 0x80000) +#define PEX_IF_REGS_BASE(if) (PEX_IF_REGS_OFFSET(if)) #define PEX_CAPABILITIES_REG(if) ((PEX_IF_REGS_BASE(if)) + 0x60) #define PEX_LINK_CTRL_STATUS2_REG(if) ((PEX_IF_REGS_BASE(if)) + 0x90) #define PEX_CTRL_REG(if) ((PEX_IF_REGS_BASE(if)) + 0x1a00) |