Skip to content

Commit

Permalink
[A50]add a50 chip support
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjunjiang committed Apr 25, 2023
1 parent b49c489 commit 8bcc384
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
49 changes: 49 additions & 0 deletions chips/a50.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#include <fel.h>

static int chip_detect(struct xfel_ctx_t * ctx, uint32_t id)
{
if(id == 0x00175500)
return 1;
return 0;
}

static int chip_reset(struct xfel_ctx_t * ctx)
{
return 0;
}

static int chip_sid(struct xfel_ctx_t * ctx, char * sid)
{
return 0;
}

static int chip_jtag(struct xfel_ctx_t * ctx)
{
return 0;
}

static int chip_ddr(struct xfel_ctx_t * ctx, const char * type)
{
return 0;
}

static int chip_spi_init(struct xfel_ctx_t * ctx, uint32_t * swapbuf, uint32_t * swaplen, uint32_t * cmdlen)
{
return 0;
}

static int chip_spi_run(struct xfel_ctx_t * ctx, uint8_t * cbuf, uint32_t clen)
{
return 0;
}

struct chip_t a50 = {
.name = "A50",
.detect = chip_detect,
.reset = chip_reset,
.sid = chip_sid,
.jtag = chip_jtag,
.ddr = chip_ddr,
.spi_init = chip_spi_init,
.spi_run = chip_spi_run,
};
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ usage:
| R16 | Quad-Core ARM Cortex-A7 @ 1.2GHz | 0x00166700 ||||||||
| A40i | Quad-Core ARM Cortex-A7 @ 1.2 GHz | 0x00170100 ||||||||
| R40 | Quad-Core ARM Cortex-A7 @ 1.2 GHz | 0x00170100 ||||||||
| A50 | Quad-Core ARM Cortex-A7 @ 1.8GHz | 0x00175500 ||||||||
| A64 | Quad-Core ARM Cortex-A53 | 0x00168900 ||||||||
| A80 | Octa-core big.LITTLE Cortex-A15/7 | 0x00163900 ||||||||
| A83T | Octa-core Cortex-A7 @ 1.6GHz | 0x00167300 ||||||||
Expand Down
1 change: 1 addition & 0 deletions docs/zh-cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ usage:
| R16 | Quad-Core ARM Cortex-A7 @ 1.2GHz | 0x00166700 ||||||||
| A40i | Quad-Core ARM Cortex-A7 @ 1.2 GHz | 0x00170100 ||||||||
| R40 | Quad-Core ARM Cortex-A7 @ 1.2 GHz | 0x00170100 ||||||||
| A50 | Quad-Core ARM Cortex-A7 @ 1.8GHz | 0x00175500 ||||||||
| A64 | Quad-Core ARM Cortex-A53 | 0x00168900 ||||||||
| A80 | Octa-core big.LITTLE Cortex-A15/7 | 0x00163900 ||||||||
| A83T | Octa-core Cortex-A7 @ 1.6GHz | 0x00167300 ||||||||
Expand Down
2 changes: 2 additions & 0 deletions fel.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ extern struct chip_t a23;
extern struct chip_t a31;
extern struct chip_t a33_r16;
extern struct chip_t a40i_r40;
extern struct chip_t a50;
extern struct chip_t a64;
extern struct chip_t a80;
extern struct chip_t a83t;
Expand All @@ -33,6 +34,7 @@ static struct chip_t * chips[] = {
&a31,
&a33_r16,
&a40i_r40,
&a50,
&a64,
&a80,
&a83t,
Expand Down

0 comments on commit 8bcc384

Please sign in to comment.