
From: Dinh Nguyen dinguyen@opensource.altera.com
Hello,
This patchset adds all the SPL code that is necessary to support the SoCFPGA platform. With this patch series, one should be able to configure the SDRAM controller and run u-boot.
I have pushed a branch to git://git.rocketboards.org/u-boot-socfpga-next.git socfpga_for_next_spl_v1 for testing and reviewing.
Thanks, Dinh
Dinh Nguyen (22): arm: socfpga: spl: Add main sdram code arm: socfpga: enable saveenv to mmc partition arm: socfpga: Add sdram initialization code arm: socfpga: spl: Add SRAM section arm: socfpga: spl: put SPL in sram arm: socfpga: add functions to bring sdram, timer, and uart out of reset arm: socfpga: spl: enable sdram, timer and uart arm: socfpga: spl: Add call to timer_init arm: socfpga: spl: allow bootrom to enable IOs after warm reset arm: socfpga: spl: add sdram init and calibration arm: socfpga: spl: printout sdram size arm: socfpga: spl: Use common lowlevel_init arm: socfpga: spl: Add s_init arm: socfpga: spl: update lowlevel_init arm: socfpga: spl: add relocate_stack_to_sdram to lowlevel_init.S arm: socfpga: spl: add the stack in OCRAM arm: socfpga: spl: add CONFIG_SPL_STACK to socfpga_common.h arm: socfpga: add sdram stack to SPL arm: socfpga: spl: set SPL_MALLOC_SIZE arm: socfpga: spl: add a malloc section in sram arm: socfpga: spl: Add SDRAM check arm: socfpga: spl: update pll_config for dev kit
arch/arm/cpu/armv7/Makefile | 2 +- arch/arm/cpu/armv7/socfpga/Makefile | 4 +- arch/arm/cpu/armv7/socfpga/config.mk | 3 +- arch/arm/cpu/armv7/socfpga/lowlevel_init.S | 89 +- arch/arm/cpu/armv7/socfpga/reset_manager.c | 24 + arch/arm/cpu/armv7/socfpga/s_init.c | 49 + arch/arm/cpu/armv7/socfpga/sdram.c | 1311 ++++ arch/arm/cpu/armv7/socfpga/spl.c | 33 + arch/arm/cpu/armv7/socfpga/system_manager.c | 9 + arch/arm/cpu/armv7/socfpga/u-boot-spl.lds | 29 +- arch/arm/include/asm/arch-socfpga/reset_manager.h | 37 + arch/arm/include/asm/arch-socfpga/sdram.h | 434 ++ arch/arm/include/asm/arch-socfpga/system_manager.h | 20 +- board/altera/socfpga/Makefile | 1 + board/altera/socfpga/pll_config.h | 8 +- board/altera/socfpga/sdram/Makefile | 12 + board/altera/socfpga/sdram/sdram_config.h | 100 + board/altera/socfpga/sdram/sdram_io.h | 44 + board/altera/socfpga/sdram/sequencer.c | 7993 ++++++++++++++++++++ board/altera/socfpga/sdram/sequencer.h | 504 ++ board/altera/socfpga/sdram/sequencer_auto.h | 216 + .../altera/socfpga/sdram/sequencer_auto_ac_init.c | 88 + .../socfpga/sdram/sequencer_auto_inst_init.c | 273 + board/altera/socfpga/sdram/sequencer_defines.h | 154 + board/altera/socfpga/sdram/system.h | 15 + include/configs/socfpga_common.h | 16 +- include/configs/socfpga_cyclone5.h | 1 + 27 files changed, 11422 insertions(+), 47 deletions(-) create mode 100644 arch/arm/cpu/armv7/socfpga/s_init.c create mode 100644 arch/arm/cpu/armv7/socfpga/sdram.c create mode 100644 arch/arm/include/asm/arch-socfpga/sdram.h create mode 100644 board/altera/socfpga/sdram/Makefile create mode 100644 board/altera/socfpga/sdram/sdram_config.h create mode 100644 board/altera/socfpga/sdram/sdram_io.h create mode 100644 board/altera/socfpga/sdram/sequencer.c create mode 100644 board/altera/socfpga/sdram/sequencer.h create mode 100644 board/altera/socfpga/sdram/sequencer_auto.h create mode 100644 board/altera/socfpga/sdram/sequencer_auto_ac_init.c create mode 100644 board/altera/socfpga/sdram/sequencer_auto_inst_init.c create mode 100644 board/altera/socfpga/sdram/sequencer_defines.h create mode 100644 board/altera/socfpga/sdram/system.h