]> git.sur5r.net Git - u-boot/commit
omap4: utility function to identify the context of hw init
authorAneesh V <aneesh@ti.com>
Thu, 21 Jul 2011 13:09:59 +0000 (09:09 -0400)
committerU-Boot <uboot@aari01-12.(none)>
Wed, 3 Aug 2011 10:49:19 +0000 (12:49 +0200)
commitd2f18c275eef1eaca58919fb34ea0abf3bfbddcd
treefabf0165cbcdee72523cb7557236237ddbad5b64
parent732590b397ac608369767b2579fdca0937f8adcd
omap4: utility function to identify the context of hw init

The basic hardware init of OMAP4(s_init()) can happen in 4
different contexts:
 1. SPL running from SRAM
 2. U-Boot running from FLASH
 3. Non-XIP U-Boot loaded to SDRAM by SPL
 4. Non-XIP U-Boot loaded to SDRAM by ROM code using the
    Configuration Header feature

What level of hw initialization gets done depends on this
context. Add a utility function to find this context.

Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
arch/arm/include/asm/arch-omap4/sys_proto.h
arch/arm/include/asm/omap_common.h [new file with mode: 0644]