summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/xload-mmc.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: at91: Move mach header files to include/mach/at91Sascha Hauer2023-03-061-6/+6
| | | | | | | | | | Currently arch specific headers can be included with longer possible as there won't be a single mach anymore. Move all at91 specific header files to include/mach/at91/ to prepare for multi-arch support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pbl: factor out pbl_bio API into pbl/bio.hAhmad Fatoum2022-08-081-1/+1
| | | | | | | | | | | We'll be adding more PBL driver interface definitions into include/pbl, so move the block I/O stuff there as well. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220805082137.2202560-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arch: add SPDX-License-Identifier to all .c filesAhmad 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-11-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: xload-mmc: fix typo in sama5d3_atmci_start_image()Oleksij Rempel2021-06-021-1/+1
| | | | | | | | Use SAMA5D3_ID_PIOD instead of SAMA5D2_ID_PIOD Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.barebox.org/20210601084233.7948-1-o.rempel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: xload-mmc: add sama5d3_atmci_start_image() helperOleksij Rempel2021-05-121-0/+51
| | | | | | | | This helper should be called from the xloader Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.barebox.org/20210423142829.29468-3-o.rempel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: pass along bootsource to netbooted bareboxAhmad Fatoum2020-08-031-7/+1
| | | | | | | | | | | | ROM-Code passes boot source information in r4. First stage does likewise when invoking second stage. When net booting second stage, r4 has no definite value. Fix this and pass the original boot source along. This gives us a valid $bootsource value in net booted barebox, which is important, so the same environment is loaded. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: add helpers for chain-loading barebox from SD-cardAhmad Fatoum2020-07-111-0/+90
With PBL FAT support implemented, provide an sama5d2_sdhci_start_image helper that can be called from the PBL to chainload a barebox.bin file from the first FAT partition. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>