]> git.dujemihanovic.xyz Git - u-boot.git/commit
stm32mp1: use OTP to configure MAC address and serial number
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 17 May 2018 13:24:07 +0000 (15:24 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 26 May 2018 22:19:18 +0000 (18:19 -0400)
commit7f7deb0c72f559ab892c5f9013078c885120a64c
treef34ca250df5599ed7e9f55357893917cf28c4c90
parentc3600e1f92b772f8e50d81c4f1c233839b48f2cf
stm32mp1: use OTP to configure MAC address and serial number

Use OTP57 and 58 for MAC address
- OTP57 = MAC address  bits [31:0]
- OTP58 = MAC address  bit  [47:32] stored in OTP  LSB's

Use manufacture information in OTP13 to OTP15 to build unique
chip id saved in env variable "serial#"
(used for USB device enumeration)

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/mach-stm32mp/cpu.c