From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Goldschmidt Date: Mon, 7 Jan 2019 22:14:19 +0100 Subject: [U-Boot] [PATCH v1 0/4] arm: socfgpa: support of-platdata Message-ID: <20190107211423.10151-1-simon.k.r.goldschmidt@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. 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 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 -- 2.17.1