This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7-Q1: modify sec-cfg.yaml

Part Number: AM62A7-Q1

Tool/software:

HI, TI

      I want to read data from otp extended region via Acore.

My way, according to TISCI User Guide

1. modify sec-cfg.yaml in u-boot/board/ti/am62x/sec-cfg.yaml

otp_config:
subhdr:
magic: 0x4081
size: 69
write_host_id : 0
otp_entry:
- #1
host_id: 128
host_perms: 2
- #2
host_id: 128
host_perms: 2
Set to 128 if the MMR must be accesible to all hosts
Set to 10b - non-secure, any other value secure
2. Modiy u-boot source code

#define TISCI_MSG_READ_OTP_MMR 0x9022

struct ti_sci_msg_req_read_otp_mmr {
struct ti_sci_msg_hdr hdr;
u8 mmr_idx;
} __packed;

struct ti_sci_msg_resp_read_otp_mmr {
struct ti_sci_msg_hdr hdr;
u32 mmr_val;
} __packed;
call ti_sci_setup_one_xfer and ti_sci_do_xfer to read MMR register in u-boot.img
But, It fails
log info:
ti_sci system-controller@44043000: Message not acknowledgedret -19
ti_sci system-controller@44043000: Message not acknowledgedret -19
Please support us to solve this problem

Thanks