From e0f2230210bfa3141f6761cb24697e461ea57ab7 Mon Sep 17 00:00:00 2001 From: Punnaiah Choudary Kalluri Date: Mon, 2 Feb 2015 19:45:15 +0530 Subject: [PATCH] emacps: Correct the BD alignment for Gem module id 2 Corrected the BD alignment for Gem module id 2 Signed-off-by: Punnaiah Choudary Kalluri --- XilinxProcessorIPLib/drivers/emacps/src/xemacps_hw.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/XilinxProcessorIPLib/drivers/emacps/src/xemacps_hw.h b/XilinxProcessorIPLib/drivers/emacps/src/xemacps_hw.h index e1676c75..a35ed337 100644 --- a/XilinxProcessorIPLib/drivers/emacps/src/xemacps_hw.h +++ b/XilinxProcessorIPLib/drivers/emacps/src/xemacps_hw.h @@ -77,8 +77,14 @@ extern "C" { supported */ #define XEMACPS_MAX_TYPE_ID 4U /**< Maxmum number of type id supported */ +#ifdef __aarch64__ #define XEMACPS_BD_ALIGNMENT 64U /**< Minimum buffer descriptor alignment on the local bus */ +#else + +#define XEMACPS_BD_ALIGNMENT 4U /**< Minimum buffer descriptor alignment + on the local bus */ +#endif #define XEMACPS_RX_BUF_ALIGNMENT 4U /**< Minimum buffer alignment when using options that impose alignment restrictions on the buffer data on