[spi]remove some spi interface

This commit is contained in:
Jianjun Jiang 2021-06-10 23:28:17 +08:00
parent e4fa6d2ddc
commit 67de7ac2c1
5 changed files with 0 additions and 76 deletions

View File

@ -25,21 +25,6 @@ static int chip_spi_init(struct xfel_ctx_t * ctx)
return 0;
}
static int chip_spi_exit(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_select(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_deselect(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_xfer(struct xfel_ctx_t * ctx, void * txbuf, uint32_t txlen, void * rxbuf, uint32_t rxlen)
{
return 0;
@ -53,8 +38,5 @@ struct chip_t a40i = {
.jtag = chip_jtag,
.ddr = chip_ddr,
.spi_init = chip_spi_init,
.spi_exit = chip_spi_exit,
.spi_select = chip_spi_select,
.spi_deselect = chip_spi_deselect,
.spi_xfer = chip_spi_xfer,
};

View File

@ -1574,21 +1574,6 @@ static int chip_spi_init(struct xfel_ctx_t * ctx)
return 0;
}
static int chip_spi_exit(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_select(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_deselect(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_xfer(struct xfel_ctx_t * ctx, void * txbuf, uint32_t txlen, void * rxbuf, uint32_t rxlen)
{
return 0;
@ -1602,8 +1587,5 @@ struct chip_t d1 = {
.jtag = chip_jtag,
.ddr = chip_ddr,
.spi_init = chip_spi_init,
.spi_exit = chip_spi_exit,
.spi_select = chip_spi_select,
.spi_deselect = chip_spi_deselect,
.spi_xfer = chip_spi_xfer,
};

View File

@ -25,21 +25,6 @@ static int chip_spi_init(struct xfel_ctx_t * ctx)
return 0;
}
static int chip_spi_exit(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_select(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_deselect(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_xfer(struct xfel_ctx_t * ctx, void * txbuf, uint32_t txlen, void * rxbuf, uint32_t rxlen)
{
return 0;
@ -53,8 +38,5 @@ struct chip_t r329 = {
.jtag = chip_jtag,
.ddr = chip_ddr,
.spi_init = chip_spi_init,
.spi_exit = chip_spi_exit,
.spi_select = chip_spi_select,
.spi_deselect = chip_spi_deselect,
.spi_xfer = chip_spi_xfer,
};

View File

@ -25,21 +25,6 @@ static int chip_spi_init(struct xfel_ctx_t * ctx)
return 0;
}
static int chip_spi_exit(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_select(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_deselect(struct xfel_ctx_t * ctx)
{
return 0;
}
static int chip_spi_xfer(struct xfel_ctx_t * ctx, void * txbuf, uint32_t txlen, void * rxbuf, uint32_t rxlen)
{
return 0;
@ -53,8 +38,5 @@ struct chip_t t507 = {
.jtag = chip_jtag,
.ddr = chip_ddr,
.spi_init = chip_spi_init,
.spi_exit = chip_spi_exit,
.spi_select = chip_spi_select,
.spi_deselect = chip_spi_deselect,
.spi_xfer = chip_spi_xfer,
};

4
fel.h
View File

@ -38,10 +38,6 @@ struct chip_t {
int (*ddr)(struct xfel_ctx_t * ctx, const char * type);
int (*spi_init)(struct xfel_ctx_t * ctx);
int (*spi_xfer)(struct xfel_ctx_t * ctx, void * txbuf, uint32_t txlen, void * rxbuf, uint32_t rxlen);
int (*spi_exit)(struct xfel_ctx_t * ctx);
int (*spi_select)(struct xfel_ctx_t * ctx);
int (*spi_deselect)(struct xfel_ctx_t * ctx);
};
/*