mirror of
https://github.com/xboot/xfel.git
synced 2024-11-23 17:53:31 +08:00
[r128]update jtag payload
This commit is contained in:
parent
ddf7451239
commit
a647a243e6
15
chips/r128.c
15
chips/r128.c
@ -56,10 +56,11 @@ static int chip_sid(struct xfel_ctx_t * ctx, char * sid)
|
||||
static int chip_jtag(struct xfel_ctx_t * ctx)
|
||||
{
|
||||
static const uint8_t payload[] = {
|
||||
0xff, 0xe7, 0x00, 0xf0, 0x01, 0xf8, 0x70, 0x47, 0x06, 0x4a, 0x13, 0x68,
|
||||
0x23, 0xf0, 0x0f, 0x03, 0x43, 0xf0, 0x08, 0x03, 0x13, 0x60, 0x13, 0x68,
|
||||
0x23, 0xf0, 0xf0, 0x03, 0x43, 0xf0, 0x80, 0x03, 0x13, 0x60, 0x70, 0x47,
|
||||
0x08, 0xa4, 0x04, 0x40
|
||||
0x00, 0xf0, 0x00, 0xb8, 0x4d, 0xf8, 0x04, 0xed, 0x00, 0xf0, 0x04, 0xf8,
|
||||
0x5d, 0xf8, 0x04, 0xeb, 0xf7, 0x46, 0x00, 0x00, 0x08, 0x4a, 0xd2, 0xf8,
|
||||
0x08, 0x34, 0x23, 0xf0, 0x0f, 0x03, 0x43, 0xf0, 0x08, 0x03, 0xc2, 0xf8,
|
||||
0x08, 0x34, 0xd2, 0xf8, 0x08, 0x34, 0x23, 0xf0, 0xf0, 0x03, 0x43, 0xf0,
|
||||
0x80, 0x03, 0xc2, 0xf8, 0x08, 0x34, 0x70, 0x47, 0x00, 0xa0, 0x04, 0x40
|
||||
};
|
||||
fel_write(ctx, 0x040b0000, (void *)&payload[0], sizeof(payload));
|
||||
fel_exec(ctx, 0x040b0000);
|
||||
@ -5815,19 +5816,19 @@ static int chip_ddr(struct xfel_ctx_t * ctx, const char * type)
|
||||
if(strcmp(type, "r128-s1") == 0)
|
||||
{
|
||||
fel_write(ctx, 0x040b0000, (void *)&r128_s1_payload[0], sizeof(r128_s1_payload));
|
||||
fel_exec(ctx, 0x040b03c8);
|
||||
fel_exec(ctx, 0x040b0000);
|
||||
return 1;
|
||||
}
|
||||
else if(strcmp(type, "r128-s2") == 0)
|
||||
{
|
||||
fel_write(ctx, 0x040b0000, (void *)&r128_s2_payload[0], sizeof(r128_s2_payload));
|
||||
fel_exec(ctx, 0x040b03c8);
|
||||
fel_exec(ctx, 0x040b0000);
|
||||
return 1;
|
||||
}
|
||||
else if(strcmp(type, "r128-s3") == 0)
|
||||
{
|
||||
fel_write(ctx, 0x040b0000, (void *)&r128_s3_payload[0], sizeof(r128_s3_payload));
|
||||
fel_exec(ctx, 0x040b03c8);
|
||||
fel_exec(ctx, 0x040b0000);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
@ -26,10 +26,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
.thumb
|
||||
.syntax unified
|
||||
|
||||
.global _start
|
||||
_start:
|
||||
b reset
|
||||
b.w reset
|
||||
|
||||
reset:
|
||||
push.w { lr }
|
||||
bl sys_jtag_init
|
||||
bx lr
|
||||
pop.w { lr }
|
||||
mov pc, lr
|
||||
|
Loading…
Reference in New Issue
Block a user