ARM: stm32mp: implement SoC and boot source identification
The BSEC OTP holds information about SoC type and package.
The Tamp registers hold information from the BootROM about boot
source. Add support for both.

Additionally, the tamp registers can also hold a request from the
operating system about what mode to enter after boot, e.g.
boot-into-recovery. A global function is exported for this, but
unused so far.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3bf910d commit 530fb27a57d18128e47cd1530470425436a697d1
@Ahmad Fatoum Ahmad Fatoum authored on 27 Oct 2019
Sascha Hauer committed on 6 Nov 2019
Showing 4 changed files
View
arch/arm/mach-stm32mp/Makefile
View
arch/arm/mach-stm32mp/include/mach/bootsource.h 0 → 100644
View
arch/arm/mach-stm32mp/include/mach/revision.h 0 → 100644
View
arch/arm/mach-stm32mp/init.c 0 → 100644