mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] fs: fat: extend for in-PBL support
@ 2020-01-06 17:35 Ahmad Fatoum
  2020-01-06 17:35 ` [RFC PATCH 1/5] pbl: add block I/O API Ahmad Fatoum
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Ahmad Fatoum @ 2020-01-06 17:35 UTC (permalink / raw)
  To: barebox; +Cc: lst

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-08 11:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 17:35 [RFC PATCH 0/5] fs: fat: extend for in-PBL support Ahmad Fatoum
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox