Skip to content

Commit

Permalink
Update amlogic-usbdl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Pro-me3us authored May 25, 2022
1 parent 54c6448 commit 20d7b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amlogic-usbdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define AM_REQ_WR_LARGE_MEM 0x11

#define LOAD_ADDR 0xFFFA0000
#define RUN_ADDR 0xFFFA1000 //0xFFFA1000 for Bl2 payload to jump 0x1000 header, set RUN_ADDR LOAD_ADDR for all other payloads
#define RUN_ADDR LOAD_ADDR //set to 0xFFFA1000 for Bl2 payload to jump 0x1000 header, set to LOAD_ADDR for all other payloads
#define TARGET_RA_PTR 0xFFFE3678 //0xFFFE3678 specific to S922X, changed from 0xFFFE3688 for S905D3
#define BULK_TRANSFER_SIZE 0xFE //minimum size is 0x6 with max payload 65530 bytes
#define MAX_PAYLOAD_SIZE 0x10000 - BULK_TRANSFER_SIZE // we need the last transfer to overwrite return address
Expand Down

0 comments on commit 20d7b89

Please sign in to comment.