| 1 | --- a/src/board_easy50712.c |
| 2 | +++ b/src/board_easy50712.c |
| 3 | @@ -32,7 +32,9 @@ |
| 4 | #ifdef OLD_BSP |
| 5 | #include "asm/danube/port.h" |
| 6 | #else |
| 7 | - #include "asm/ifx/ifx_gpio.h" |
| 8 | +#ifdef FXO |
| 9 | +# include "asm/ifx/ifx_gpio.h" |
| 10 | +#endif |
| 11 | #endif |
| 12 | |
| 13 | /* ============================= */ |
| 14 | --- a/src/board_easy508xx.c |
| 15 | +++ b/src/board_easy508xx.c |
| 16 | @@ -32,8 +32,6 @@ |
| 17 | #endif /* FXO */ |
| 18 | #include "pcm.h" |
| 19 | |
| 20 | -#include "asm/ifx/ifx_gpio.h" |
| 21 | - |
| 22 | #ifdef TD_DECT |
| 23 | #include "td_dect.h" |
| 24 | #endif /* TD_DECT */ |
| 25 | --- a/src/common.c |
| 26 | +++ b/src/common.c |
| 27 | @@ -7117,7 +7117,7 @@ IFX_return_t Common_GPIO_ClosePort(IFX_c |
| 28 | IFX_return_t Common_GPIO_ReservePin(IFX_int32_t nFd, IFX_int32_t nPort, |
| 29 | IFX_int32_t nPin, IFX_int32_t nModule) |
| 30 | { |
| 31 | -#ifndef OLD_BSP |
| 32 | +#if !defined(OLD_BSP) && defined(IFX_GPIO_IOC_PIN_RESERVE) |
| 33 | TD_PARAMETER_CHECK((NO_GPIO_FD >= nFd), nFd, IFX_ERROR); |
| 34 | |
| 35 | IFX_return_t nRet; |
| 36 | @@ -7155,7 +7155,7 @@ IFX_return_t Common_GPIO_ReservePin(IFX_ |
| 37 | IFX_return_t Common_GPIO_FreePin(IFX_int32_t nFd, IFX_int32_t nPort, |
| 38 | IFX_int32_t nPin, IFX_int32_t nModule) |
| 39 | { |
| 40 | -#ifndef OLD_BSP |
| 41 | +#if !defined(OLD_BSP) && defined(IFX_GPIO_IOC_PIN_RESERVE) |
| 42 | TD_PARAMETER_CHECK((NO_GPIO_FD >= nFd), nFd, IFX_ERROR); |
| 43 | |
| 44 | IFX_return_t nRet; |
| 45 | --- a/src/common.h |
| 46 | +++ b/src/common.h |
| 47 | @@ -79,12 +79,12 @@ |
| 48 | #ifdef OLD_BSP |
| 49 | #include "asm/danube/port.h" |
| 50 | #else |
| 51 | - #include "asm/ifx/ifx_gpio.h" |
| 52 | + /*#include "asm/ifx/ifx_gpio.h"*/ |
| 53 | #endif |
| 54 | #endif |
| 55 | |
| 56 | #if (defined(AR9) || defined(VR9)) |
| 57 | - #include "asm/ifx/ifx_gpio.h" |
| 58 | + /*#include "asm/ifx/ifx_gpio.h"*/ |
| 59 | #endif |
| 60 | |
| 61 | #ifdef TD_DECT |
| 62 | |