Commit 11e805da authored by Lucas Russo's avatar Lucas Russo

src/sm_io/modules/*: remove afc_diag SMIO from ML605 board compilation

parent a5f0a528
ifeq ($(BOARD),afcv3)
sm_io_afc_diag_DIR = $(SRC_DIR)/sm_io/modules/afc_diag
sm_io_afc_diag_OBJS = $(sm_io_afc_diag_DIR)/sm_io_afc_diag_core.o \
......@@ -6,3 +7,8 @@ sm_io_afc_diag_OBJS = $(sm_io_afc_diag_DIR)/sm_io_afc_diag_core.o \
$(sm_io_afc_diag_DIR)/sm_io_afc_diag_defaults.o
sm_io_afc_diag_INCLUDE_DIRS = $(sm_io_afc_diag_DIR)
else
sm_io_afc_diag_DIR =
sm_io_afc_diag_OBJS =
sm_io_afc_diag_INCLUDE_DIRS =
endif
......@@ -12,33 +12,49 @@
#include "sm_io_dsp_exp.h"
#include "sm_io_swap_exp.h"
#include "sm_io_rffe_exp.h"
#if defined (__BOARD_AFCV3__)
#include "sm_io_afc_diag_exp.h"
#endif
/* Table of all known modules we can handle */
const smio_mod_dispatch_t smio_mod_dispatch[MOD_DISPATCH_END] = {
[0] = { .id = FMC130M_4CH_SDB_DEVID,
.name = FMC130M_4CH_SDB_NAME,
.bootstrap_ops = &fmc130m_4ch_bootstrap_ops
const smio_mod_dispatch_t smio_mod_dispatch [] = {
{
.id = FMC130M_4CH_SDB_DEVID,
.name = FMC130M_4CH_SDB_NAME,
.bootstrap_ops = &fmc130m_4ch_bootstrap_ops
},
{
.id = ACQ_SDB_DEVID,
.name = ACQ_SDB_NAME,
.bootstrap_ops = &acq_bootstrap_ops
},
[1] = { .id = ACQ_SDB_DEVID,
.name = ACQ_SDB_NAME,
.bootstrap_ops = &acq_bootstrap_ops
{
.id = DSP_SDB_DEVID,
.name = DSP_SDB_NAME,
.bootstrap_ops = &dsp_bootstrap_ops
},
[2] = { .id = DSP_SDB_DEVID,
.name = DSP_SDB_NAME,
.bootstrap_ops = &dsp_bootstrap_ops
{
.id = SWAP_SDB_DEVID,
.name = SWAP_SDB_NAME,
.bootstrap_ops = &swap_bootstrap_ops
},
[3] = { .id = SWAP_SDB_DEVID,
.name = SWAP_SDB_NAME,
.bootstrap_ops = &swap_bootstrap_ops
{
.id = RFFE_DEVID, /* No SDB as this is not an FPGA module */
.name = RFFE_NAME,
.bootstrap_ops = &rffe_bootstrap_ops
},
[4] = { .id = RFFE_DEVID, /* No SDB as this is not an FPGA module */
.name = RFFE_NAME,
.bootstrap_ops = &rffe_bootstrap_ops
#if defined (__BOARD_AFCV3__)
{
.id = AFC_DIAG_DEVID,
.name = AFC_DIAG_NAME,
.bootstrap_ops = &afc_diag_bootstrap_ops
},
[5] = { .id = AFC_DIAG_DEVID,
.name = AFC_DIAG_NAME,
.bootstrap_ops = &afc_diag_bootstrap_ops
#endif
{
.id = SMIO_DISPATCH_END_ID,
.name = "SMIO_DISPATCH_END",
.bootstrap_ops = NULL
}
};
......@@ -10,10 +10,7 @@
#include <inttypes.h>
/* #include "sm_io_bootstrap.h" */
/* Number of known specific modules that we can handle */
#define MOD_DISPATCH_END 6
#define SMIO_DISPATCH_END_ID 0xdeaddead
struct _smio_bootstrap_ops_t;
......@@ -26,6 +23,6 @@ struct _smio_mod_dispatch_t {
typedef struct _smio_mod_dispatch_t smio_mod_dispatch_t;
extern const smio_mod_dispatch_t
smio_mod_dispatch[MOD_DISPATCH_END];
smio_mod_dispatch [];
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment