Skip to content

arm: socfgpa: support of-platdata

Lukasz Majewski u-boot 1 version New

Get series with b4
b4 am 20190107225944.57df11a8@jawa

Versions newest first

  1. v1 Latest3 of 4 patches 0 repliesNew

3 of 4 patches are in this archive. The cover letter announces 4.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
3/4serial: add an of-platdata driver for "snps, dw-apb-uart"+0 -01 reply
3/4serial: add an of-platdata driver for "snps, dw-apb-uart"+0 -01 reply
3/4serial: add an of-platdata driver for "snps, dw-apb-uart"+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH v1 0/4] arm: socfgpa: support of-platdata

Hi Simon,

Quoted 11 lines

This is an initial attempt to support OF_PLATDATA for socfpga gen5.

There are two motivations for this:
a) reduce code size to eventually support secure boot (where SPL has to authenticate the next stage by loading/checking U-Boot from a FIT image)
b) to support the cyclone 5 boot ROM's CRC check on the SPL in SRAM (on warm-restart), all bytes to check need to be in one piece. With OF_SEPARATE, this is not the case (.bss is between .rodata and the DTB). Since OF_EMBEDDED has been discouraged, OF_PLATDATA seems to be a good solution.

I'm not an expert with SOCFPGA nor your application, but maybe
selecting: "SPL_SEPARATE_BSS" would fix your issue?

This option allows putting on IMX6 SPL the DTB blob into OCRAM (internal RAM), before the DDR is setup (so it would be possible to calculate CRC).

I've stumbled upon such issue when I wanted to switch from OF_EMBEDDED to OF_SEPARATE.

Quoted 18 lines

This series enables booting from MMC with OF_PLATDATA. Booting from SPI does not yet work (I'm working on that, but it's tougher than expected).

Tested on the socrates board. To use it:
- use socfpga_socrates_defconfig
- disable CONFIG_SPL_SPI_FLASH_SUPPORT, CONFIG_SPL_SPI_SUPPORT and CONFIG_SPL_DM_RESET (those don't work yet)
- enable CONFIG_DESIGNWARE_SERIAL (required for console)

Simon Goldschmidt (4):
arm: socfpga: imply SPL config instead of select
arm: socfpga: fix compiling with OF_PLATDATA
serial: add an of-platdata driver for "snps,dw-apb-uart"
mmc: socfpga: support of-platdata

Quoted 9 lines
 arch/arm/Kconfig               |  4 ++--
 arch/arm/mach-socfpga/misc.c   |  2 +-
 drivers/mmc/socfpga_dw_mmc.c   | 28 ++++++++++++++++++++---
 drivers/serial/Kconfig         | 10 ++++++++
 drivers/serial/Makefile        |  1 +
 drivers/serial/serial_dw_apb.c | 42

++++++++++++++++++++++++++++++++++ 6 files changed, 81 insertions(+), 6 deletions(-) create mode 100644 drivers/serial/serial_dw_apb.c

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190107/5504b18d/attachment.sig>