[U-Boot] [PATCH v3 00/12] U-Boot MMC SPL for OMAP4

Aneesh V
2011-07-16T12:53:10Z

This series adds mmc SPL support for OMAP4. This is essentially
an up-streaming effort for TI's x-loader for OMAP4 using the SPL
framework

This work partly draws upon previous work done for x-loader by:
Santosh Shilimkar <santosh.shilimkar@ti.com>
Rajendra Nayak <rnayak@ti.com>
and many others

This series depends on the following series for the new SPL framework:
http://marc.info/?l=u-boot&m=131056990001719&w=2

Features supported:
* Clock init - DPLL locking, clock domains/modules enabling
* SDRAM/DMM initialization
* Mux initialization
* MMC raw read support
* MMC FAT read support

Improvments over x-loader:
* Code completely revamped
* DPLL programming that works for all SYS_CLK frequencies
* Automatic SDRAM identification and initialization
* Board dependent parts(especially mux) deferred to u-boot. So, same
SPL will work for Panda and SDP and most likely on any other board
that comes along
* Flexible about the payload. Any image with a mkimage header can be
loaded.
* The core SPL logic is generic and available for OMAP3/4. So, OMAP3
platforms can easily extend this work to add SPL support for the
respective boards.

V2:
* Some fixes in SDRAM init, clock init
* Use of pre-calculated M & N values for DPLL locking instead
run-time calculation
* Change in make files to allow reuse of common rules
between boards
* Console initialization moved further earlier in the boot
allowing traces from even clock initialization code
* Reuse utility macros from a previous series

V3:
* Moved to the new SPL framework
* struct based register access for clock init
* Squashed together related patches as per Wolfgang's suggestions
* Re-organization of code in sdram init for better readability
* SPL loading the payload using mkimage header
* Avoided using custom bit-field accessor macros
* Several other minor changes(documented in respective patches)

Aneesh V (11):
omap4: utility function to identify the context of hw init
omap4: cleanup pin mux data
omap4: add OMAP4430 revision check
omap4: add clock support
omap4: add sdram init support
omap4: calculate EMIF register values
omap4: automatic sdram detection
armv7: start.S: fixes and enhancements for SPL
omap: add basic SPL support
Correct ih_os for u-boot.img
omap: add MMC and FAT support to SPL

John Rigby (1):
mkimage: Add OMAP boot image support

Makefile | 2 +-
arch/arm/cpu/armv7/Makefile | 7 +-
arch/arm/cpu/armv7/cpu.c | 7 +
arch/arm/cpu/armv7/omap-common/Makefile | 5 +
arch/arm/cpu/armv7/omap-common/spl.c | 272 ++++
arch/arm/cpu/armv7/omap-common/u-boot-spl.lds | 62 +
arch/arm/cpu/armv7/omap-common/utils.c | 57 +
arch/arm/cpu/armv7/omap4/Makefile | 6 +
arch/arm/cpu/armv7/omap4/board.c | 161 +++-
arch/arm/cpu/armv7/omap4/clocks.c | 842 +++++++++++++
.../panda => arch/arm/cpu/armv7/omap4}/config.mk | 25 +-
arch/arm/cpu/armv7/omap4/emif.c | 1305 ++++++++++++++++++++
arch/arm/cpu/armv7/omap4/lowlevel_init.S | 31 +
arch/arm/cpu/armv7/omap4/omap4_mux_data.h | 76 ++
arch/arm/cpu/armv7/omap4/sdram_elpida.c | 282 +++++
arch/arm/cpu/armv7/start.S | 51 +-
arch/arm/cpu/armv7/u-boot.lds | 2 +
arch/arm/include/asm/arch-omap4/clocks.h | 664 ++++++++++
arch/arm/include/asm/arch-omap4/emif.h | 1034 ++++++++++++++++
arch/arm/include/asm/arch-omap4/omap4.h | 52 +-
arch/arm/include/asm/arch-omap4/sys_proto.h | 72 ++-
arch/arm/include/asm/armv7.h | 5 +
arch/arm/include/asm/omap_common.h | 56 +
board/ti/panda/Makefile | 2 +
board/ti/panda/panda.c | 25 +-
board/ti/{sdp4430/sdp.h => panda/panda_mux_data.h} | 76 +-
board/ti/sdp4430/Makefile | 2 +
board/ti/sdp4430/config.mk | 31 -
board/ti/sdp4430/sdp.c | 25 +-
.../{panda/panda.h => sdp4430/sdp4430_mux_data.h} | 128 +--
common/image.c | 9 +-
include/configs/omap4_panda.h | 37 +
include/configs/omap4_sdp4430.h | 37 +
include/image.h | 1 +
spl/Makefile | 6 +
tools/Makefile | 2 +
tools/mkimage.c | 2 +
tools/mkimage.h | 1 +
tools/omap/clocks_get_m_n.c | 197 +++
tools/omapimage.c | 224 ++++
tools/omapimage.h | 50 +
41 files changed, 5668 insertions(+), 263 deletions(-)
create mode 100644 arch/arm/cpu/armv7/omap-common/spl.c
create mode 100644 arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
create mode 100644 arch/arm/cpu/armv7/omap-common/utils.c
create mode 100644 arch/arm/cpu/armv7/omap4/clocks.c
rename {board/ti/panda => arch/arm/cpu/armv7/omap4}/config.mk (64%)
create mode 100644 arch/arm/cpu/armv7/omap4/emif.c
create mode 100644 arch/arm/cpu/armv7/omap4/omap4_mux_data.h
create mode 100644 arch/arm/cpu/armv7/omap4/sdram_elpida.c
create mode 100644 arch/arm/include/asm/arch-omap4/clocks.h
create mode 100644 arch/arm/include/asm/arch-omap4/emif.h
create mode 100644 arch/arm/include/asm/omap_common.h
rename board/ti/{sdp4430/sdp.h => panda/panda_mux_data.h} (76%)
delete mode 100644 board/ti/sdp4430/config.mk
rename board/ti/{panda/panda.h => sdp4430/sdp4430_mux_data.h} (67%)
create mode 100644 tools/omap/clocks_get_m_n.c
create mode 100644 tools/omapimage.c
create mode 100644 tools/omapimage.h