Skip to content

Commit

Permalink
[r328]add r328 sid command support
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjunjiang committed Jun 28, 2021
1 parent d7e0492 commit 33e06a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion chips/r328.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ static int chip_reset(struct xfel_ctx_t * ctx)

static int chip_sid(struct xfel_ctx_t * ctx, char * sid)
{
return 0;
uint32_t id[4];

id[0] = R32(0x03006200 + 0x0);
id[1] = R32(0x03006200 + 0x4);
id[2] = R32(0x03006200 + 0x8);
id[3] = R32(0x03006200 + 0xc);
sprintf(sid, "%08x%08x%08x%08x", id[0], id[1], id[2], id[3]);
return 1;
}

static int chip_jtag(struct xfel_ctx_t * ctx)
Expand Down

0 comments on commit 33e06a4

Please sign in to comment.