summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stm32mp/include/mach/bbu.h
Commit message (Collapse)AuthorAgeFilesLines
* ARM: stm32mp: Move mach header files to include/mach/stm32mpSascha Hauer2023-03-061-32/+0
| | | | | | | | | | Currently arch specific headers can be included with longer possible as there won't be a single mach anymore. Move all stm32mp specific header files to include/mach/stm32mp/ to prepare for multi-arch support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: stm32mp: bbu: add FIP update handlerAhmad Fatoum2022-06-031-0/+16
| | | | | | | | | | | | | | | | | BootROM boots from GPT partition fsbl1 or fsbl2 on SD-Card and from boot partition on eMMC. Recent TF-A without legacy image support will then look in a GPT partition named fip in the user area. With recent patches[1], TF-A will also check offset SZ_256K in the boot partition to see if the FIP is there. Add a barebox_update handler that covers these scenarios. [1]: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/15332 Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220602090133.3190450-7-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: differentiate between STM32MP FSBL and SSBL imagesAhmad Fatoum2022-06-031-1/+1
| | | | | | | | | | | | | | We have some special handling for legacy (non-FIP) STM32 images: We have a bootm handler for chainloading and an update handler for use with GPT ssbl partitions. Both aren't applicable to the TF-A image used as FSBL. As barebox always has 0x00000000 at offset 0xfc and TF-A alrways has 0x10000000, we can use that to differentiate between the two images to make sure we refuse TF-A images when barebox images are expected. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220602090133.3190450-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arch: add SPDX-License-Identifier to all headersAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | Record GPL-2.0-only as license for all files lacking an explicit license statement. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-9-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: stm32mp: dk2: add barebox SD-Card update handlerAhmad Fatoum2019-11-061-0/+14
Now with the SD/MMC controller supported, lets add a bbu handler, so we can use it to update the second stage boot loader partition. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>