mirror of
https://github.com/xboot/xfel.git
synced 2024-11-23 17:53:31 +08:00
[spi]remove some spi interface
This commit is contained in:
parent
e4fa6d2ddc
commit
67de7ac2c1
18
chips/a40i.c
18
chips/a40i.c
@ -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,
|
||||
};
|
||||
|
18
chips/d1.c
18
chips/d1.c
@ -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,
|
||||
};
|
||||
|
18
chips/r329.c
18
chips/r329.c
@ -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,
|
||||
};
|
||||
|
18
chips/t507.c
18
chips/t507.c
@ -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
4
fel.h
@ -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);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user