EasyManua.ls Logo

Phytec i.MX 93 - Page 80

Default Icon
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
Name Bank Word Memory oset at
0x47510000
Description
BOOT_CFG0 3 0 0x60 boot fuse settings
BOOT_CFG1 3 1 0x64 boot fuse settings
BOOT_CFG2 3 2 0x68 boot fuse settings
BOOT_CFG3 3 3 0x6c boot fuse settings
MAC1_ADDR39 3 0x4ec contains lower 32 bits of ENET0 MAC address
MAC1/2_ADDR39 4 0x4f0 contains upper 16 bits of ENET0 MAC address and the
lower 16 bits of ENET1 MAC address
MAC2_ADDR39 5 0x4f4 contains upper 32 bits of ENET1 MAC address
A complete list and a detailed mapping between the fuses in the OCOTP_CTRL and the boot/mac/…
conguration are available in the section “Fuse Map” of the i.MX 93 Security Reference Manual.
7.23.1 Reading Fuse Values in uBoot
MAC1_ADDR:
u-boot=> fuse read 39 3
7.23.2 Reading Fuse Values in Linux
To access the content of the fuses in Linux NXP provides the NVMEM_IMX_OCOTP module. All fuse
content of the memory-mapped shadow registers is accessible via sysfs:
target:~$ hexdump /sys/devices/platform/soc\@0/47510000.efuse/fsb_s400_fuse0/nvmem
7.23.3 Burning MAC addresses
Let’s say we want to burn the following MAC addresses:
MAC1 12:34:56:78:90:Aa
MAC2 Bb:Cc:Dd:Ee:Ff:D0
We would execute this in u-boot:
u-boot=> fuse prog 39 3 0x567890Aa
u-boot=> fuse prog 39 4 0xFfD01234
u-boot=> fuse prog 39 5 0xBbCcDdEe
7.23.4 Burning Boot Fuses
Warning
Fuses can only be written once! You can brick your board easily by burning the wrong boot conguration.
It cannot be reversed!
Which fuse bank/word should be used to program the BOOT_CFGX can be checked in i.MX 93 Applications
Processor Reference Manual attached spreadsheet named i.MX93_Fusemap.xlsx.
Accessing Peripherals 76