Skip to content

Commit

Permalink
[efuse]fix efuse write file command
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjunjiang committed Jul 12, 2023
1 parent 7525fbc commit 688f420
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion chips/d1_f133.c
Original file line number Diff line number Diff line change
Expand Up @@ -3255,7 +3255,7 @@ static int chip_extra(struct xfel_ctx_t * ctx, int argc, char * argv[])
efuse_write(ctx, offset, value);
return 1;
}
else if(!strcmp(argv[0], "write") && (argc == 2))
else if(!strcmp(argv[0], "write") && (argc == 3))
{
uint32_t offset = strtoul(argv[1], NULL, 0);
uint64_t len;
Expand All @@ -3282,6 +3282,7 @@ static int chip_extra(struct xfel_ctx_t * ctx, int argc, char * argv[])
efuse_write(ctx, offset + o, v);
}
free(buf);
return 1;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion chips/r528_t113.c
Original file line number Diff line number Diff line change
Expand Up @@ -4556,7 +4556,7 @@ static int chip_extra(struct xfel_ctx_t * ctx, int argc, char * argv[])
efuse_write(ctx, offset, value);
return 1;
}
else if(!strcmp(argv[0], "write") && (argc == 2))
else if(!strcmp(argv[0], "write") && (argc == 3))
{
uint32_t offset = strtoul(argv[1], NULL, 0);
uint64_t len;
Expand All @@ -4583,6 +4583,7 @@ static int chip_extra(struct xfel_ctx_t * ctx, int argc, char * argv[])
efuse_write(ctx, offset + o, v);
}
free(buf);
return 1;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion chips/v851_v853.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ static int chip_extra(struct xfel_ctx_t * ctx, int argc, char * argv[])
efuse_write(ctx, offset, value);
return 1;
}
else if(!strcmp(argv[0], "write") && (argc == 2))
else if(!strcmp(argv[0], "write") && (argc == 3))
{
uint32_t offset = strtoul(argv[1], NULL, 0);
uint64_t len;
Expand All @@ -1746,6 +1746,7 @@ static int chip_extra(struct xfel_ctx_t * ctx, int argc, char * argv[])
efuse_write(ctx, offset + o, v);
}
free(buf);
return 1;
}
}
}
Expand Down

0 comments on commit 688f420

Please sign in to comment.