From: Ahmad Fatoum <ahmad@a3f.at>
To: barebox@lists.infradead.org
Cc: lst@pengutronix.de
Subject: [RFC PATCH 0/5] fs: fat: extend for in-PBL support
Date: Mon, 6 Jan 2020 18:35:35 +0100 [thread overview]
Message-ID: <20200106173540.20367-1-ahmad@a3f.at> (raw)
The AT91 BootROM loads a boot.bin file from the first FAT partition
into SRAM, when booting from MMC. SoCs like the Zynq do likewise.
To avoid the need for a different configuration for each of the bootloader
stages, add PBL support for reading from FAT.
This way each stage need only have a different PBL entry point.
The first two commits are valid as-is. The rest makes use of them for
the sama5d2. The sama5d2 first stage support is not yet complete (and
won't be for a while if it's up to me), but Lucas asked about it for
the Zynq, so here it is.
Feedback welcome.
Cheers,
Ahmad Fatoum (5):
pbl: add block I/O API
fs: fat: extend for in-PBL support
mci: add first-stage at91-sdhci driver
ARM: at91: add helpers for MCI barebox chain-loading
[WIP] ARM: at91: sama5d27-som1: add first stage entry point
arch/arm/boards/sama5d27-som1/lowlevel.c | 16 +
arch/arm/mach-at91/Kconfig | 6 +
arch/arm/mach-at91/Makefile | 1 +
arch/arm/mach-at91/include/mach/xload.h | 12 +
arch/arm/mach-at91/xload-mmc.c | 51 +++
drivers/mci/Kconfig | 4 +
drivers/mci/Makefile | 1 +
drivers/mci/atmel-sdhci-common.c | 279 ++++++++++++++
drivers/mci/atmel-sdhci-pbl.c | 440 +++++++++++++++++++++++
drivers/mci/atmel-sdhci.h | 38 ++
drivers/mci/sdhci.h | 17 +
fs/Makefile | 2 +-
fs/fat/Kconfig | 7 +
fs/fat/Makefile | 4 +-
fs/fat/diskio.h | 7 +-
fs/fat/fat-pbl.c | 148 ++++++++
fs/fat/ff.c | 104 +++---
fs/fat/ff.h | 17 +-
images/Makefile.at91 | 4 +
include/pbl.h | 7 +
20 files changed, 1112 insertions(+), 53 deletions(-)
create mode 100644 arch/arm/mach-at91/include/mach/xload.h
create mode 100644 arch/arm/mach-at91/xload-mmc.c
create mode 100644 drivers/mci/atmel-sdhci-common.c
create mode 100644 drivers/mci/atmel-sdhci-pbl.c
create mode 100644 drivers/mci/atmel-sdhci.h
create mode 100644 fs/fat/fat-pbl.c
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2020-01-06 17:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-06 17:35 Ahmad Fatoum [this message]
2020-01-06 17:35 ` [RFC PATCH 1/5] pbl: add block I/O API Ahmad Fatoum
2020-01-06 17:35 ` [RFC PATCH 2/5] fs: fat: extend for in-PBL support Ahmad Fatoum
2020-01-08 11:14 ` Sascha Hauer
2020-01-06 17:35 ` [RFC PATCH 3/5] mci: add first-stage at91-sdhci driver Ahmad Fatoum
2020-01-08 11:23 ` Sascha Hauer
2020-01-06 17:35 ` [RFC PATCH 4/5] ARM: at91: add helpers for MCI barebox chain-loading Ahmad Fatoum
2020-01-06 17:35 ` [RFC PATCH 5/5] [WIP] ARM: at91: sama5d27-som1: add first stage entry point Ahmad Fatoum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200106173540.20367-1-ahmad@a3f.at \
--to=ahmad@a3f.at \
--cc=barebox@lists.infradead.org \
--cc=lst@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox