The four ISWGRP_HANDOFF_* macro definitions expand to undefined macros. In preparation for using one of them, fix them so they expand to the address of the respective handoff register. No functional change as the macros are yet unused. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/mach/socfpga/cyclone5-system-manager.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/mach/socfpga/cyclone5-system-manager.h b/include/mach/socfpga/cyclone5-system-manager.h index 7cec60937b84..341eaaac7e53 100644 --- a/include/mach/socfpga/cyclone5-system-manager.h +++ b/include/mach/socfpga/cyclone5-system-manager.h @@ -28,10 +28,15 @@ void socfpga_sysmgr_pinmux_init(unsigned long *sys_mgr_init_table, int num); /* EMAC interface selection */ #define CONFIG_SYSMGR_EMAC_CTRL (CYCLONE5_SYSMGR_ADDRESS + 0x60) -#define ISWGRP_HANDOFF_AXIBRIDGE SYSMGR_ISWGRP_HANDOFF0 -#define ISWGRP_HANDOFF_L3REMAP SYSMGR_ISWGRP_HANDOFF1 -#define ISWGRP_HANDOFF_FPGAINTF SYSMGR_ISWGRP_HANDOFF2 -#define ISWGRP_HANDOFF_FPGA2SDR SYSMGR_ISWGRP_HANDOFF3 +#define SYSMGR_ISWGRP_HANDOFF 0x80 + +#define SYSMGR_ISWGRP_HANDOFF_ADDR(i) \ + IOMEM(CYCLONE5_SYSMGR_ADDRESS + SYSMGR_ISWGRP_HANDOFF + ((i) * sizeof(u32))) + +#define ISWGRP_HANDOFF_AXIBRIDGE SYSMGR_ISWGRP_HANDOFF_ADDR(0) +#define ISWGRP_HANDOFF_L3REMAP SYSMGR_ISWGRP_HANDOFF_ADDR(1) +#define ISWGRP_HANDOFF_FPGAINTF SYSMGR_ISWGRP_HANDOFF_ADDR(2) +#define ISWGRP_HANDOFF_FPGA2SDR SYSMGR_ISWGRP_HANDOFF_ADDR(3) /* pin mux */ #define SYSMGR_PINMUXGRP (CYCLONE5_SYSMGR_ADDRESS + 0x400) -- 2.39.2